@aws-sdk/client-apigatewayv2 3.301.0 → 3.303.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,88 +2,74 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TooManyRequestsException = exports.NotFoundException = exports.ConflictException = exports.BadRequestException = exports.AccessDeniedException = exports.VpcLinkVersion = exports.VpcLinkStatus = exports.LoggingLevel = exports.AuthorizationType = exports.PassthroughBehavior = exports.IntegrationType = exports.ContentHandlingStrategy = exports.ConnectionType = exports.SecurityPolicy = exports.EndpointType = exports.DomainNameStatus = exports.DeploymentStatus = exports.AuthorizerType = exports.ProtocolType = void 0;
4
4
  const ApiGatewayV2ServiceException_1 = require("./ApiGatewayV2ServiceException");
5
- var ProtocolType;
6
- (function (ProtocolType) {
7
- ProtocolType["HTTP"] = "HTTP";
8
- ProtocolType["WEBSOCKET"] = "WEBSOCKET";
9
- })(ProtocolType = exports.ProtocolType || (exports.ProtocolType = {}));
10
- var AuthorizerType;
11
- (function (AuthorizerType) {
12
- AuthorizerType["JWT"] = "JWT";
13
- AuthorizerType["REQUEST"] = "REQUEST";
14
- })(AuthorizerType = exports.AuthorizerType || (exports.AuthorizerType = {}));
15
- var DeploymentStatus;
16
- (function (DeploymentStatus) {
17
- DeploymentStatus["DEPLOYED"] = "DEPLOYED";
18
- DeploymentStatus["FAILED"] = "FAILED";
19
- DeploymentStatus["PENDING"] = "PENDING";
20
- })(DeploymentStatus = exports.DeploymentStatus || (exports.DeploymentStatus = {}));
21
- var DomainNameStatus;
22
- (function (DomainNameStatus) {
23
- DomainNameStatus["AVAILABLE"] = "AVAILABLE";
24
- DomainNameStatus["PENDING_CERTIFICATE_REIMPORT"] = "PENDING_CERTIFICATE_REIMPORT";
25
- DomainNameStatus["PENDING_OWNERSHIP_VERIFICATION"] = "PENDING_OWNERSHIP_VERIFICATION";
26
- DomainNameStatus["UPDATING"] = "UPDATING";
27
- })(DomainNameStatus = exports.DomainNameStatus || (exports.DomainNameStatus = {}));
28
- var EndpointType;
29
- (function (EndpointType) {
30
- EndpointType["EDGE"] = "EDGE";
31
- EndpointType["REGIONAL"] = "REGIONAL";
32
- })(EndpointType = exports.EndpointType || (exports.EndpointType = {}));
33
- var SecurityPolicy;
34
- (function (SecurityPolicy) {
35
- SecurityPolicy["TLS_1_0"] = "TLS_1_0";
36
- SecurityPolicy["TLS_1_2"] = "TLS_1_2";
37
- })(SecurityPolicy = exports.SecurityPolicy || (exports.SecurityPolicy = {}));
38
- var ConnectionType;
39
- (function (ConnectionType) {
40
- ConnectionType["INTERNET"] = "INTERNET";
41
- ConnectionType["VPC_LINK"] = "VPC_LINK";
42
- })(ConnectionType = exports.ConnectionType || (exports.ConnectionType = {}));
43
- var ContentHandlingStrategy;
44
- (function (ContentHandlingStrategy) {
45
- ContentHandlingStrategy["CONVERT_TO_BINARY"] = "CONVERT_TO_BINARY";
46
- ContentHandlingStrategy["CONVERT_TO_TEXT"] = "CONVERT_TO_TEXT";
47
- })(ContentHandlingStrategy = exports.ContentHandlingStrategy || (exports.ContentHandlingStrategy = {}));
48
- var IntegrationType;
49
- (function (IntegrationType) {
50
- IntegrationType["AWS"] = "AWS";
51
- IntegrationType["AWS_PROXY"] = "AWS_PROXY";
52
- IntegrationType["HTTP"] = "HTTP";
53
- IntegrationType["HTTP_PROXY"] = "HTTP_PROXY";
54
- IntegrationType["MOCK"] = "MOCK";
55
- })(IntegrationType = exports.IntegrationType || (exports.IntegrationType = {}));
56
- var PassthroughBehavior;
57
- (function (PassthroughBehavior) {
58
- PassthroughBehavior["NEVER"] = "NEVER";
59
- PassthroughBehavior["WHEN_NO_MATCH"] = "WHEN_NO_MATCH";
60
- PassthroughBehavior["WHEN_NO_TEMPLATES"] = "WHEN_NO_TEMPLATES";
61
- })(PassthroughBehavior = exports.PassthroughBehavior || (exports.PassthroughBehavior = {}));
62
- var AuthorizationType;
63
- (function (AuthorizationType) {
64
- AuthorizationType["AWS_IAM"] = "AWS_IAM";
65
- AuthorizationType["CUSTOM"] = "CUSTOM";
66
- AuthorizationType["JWT"] = "JWT";
67
- AuthorizationType["NONE"] = "NONE";
68
- })(AuthorizationType = exports.AuthorizationType || (exports.AuthorizationType = {}));
69
- var LoggingLevel;
70
- (function (LoggingLevel) {
71
- LoggingLevel["ERROR"] = "ERROR";
72
- LoggingLevel["INFO"] = "INFO";
73
- LoggingLevel["OFF"] = "OFF";
74
- })(LoggingLevel = exports.LoggingLevel || (exports.LoggingLevel = {}));
75
- var VpcLinkStatus;
76
- (function (VpcLinkStatus) {
77
- VpcLinkStatus["AVAILABLE"] = "AVAILABLE";
78
- VpcLinkStatus["DELETING"] = "DELETING";
79
- VpcLinkStatus["FAILED"] = "FAILED";
80
- VpcLinkStatus["INACTIVE"] = "INACTIVE";
81
- VpcLinkStatus["PENDING"] = "PENDING";
82
- })(VpcLinkStatus = exports.VpcLinkStatus || (exports.VpcLinkStatus = {}));
83
- var VpcLinkVersion;
84
- (function (VpcLinkVersion) {
85
- VpcLinkVersion["V2"] = "V2";
86
- })(VpcLinkVersion = exports.VpcLinkVersion || (exports.VpcLinkVersion = {}));
5
+ exports.ProtocolType = {
6
+ HTTP: "HTTP",
7
+ WEBSOCKET: "WEBSOCKET",
8
+ };
9
+ exports.AuthorizerType = {
10
+ JWT: "JWT",
11
+ REQUEST: "REQUEST",
12
+ };
13
+ exports.DeploymentStatus = {
14
+ DEPLOYED: "DEPLOYED",
15
+ FAILED: "FAILED",
16
+ PENDING: "PENDING",
17
+ };
18
+ exports.DomainNameStatus = {
19
+ AVAILABLE: "AVAILABLE",
20
+ PENDING_CERTIFICATE_REIMPORT: "PENDING_CERTIFICATE_REIMPORT",
21
+ PENDING_OWNERSHIP_VERIFICATION: "PENDING_OWNERSHIP_VERIFICATION",
22
+ UPDATING: "UPDATING",
23
+ };
24
+ exports.EndpointType = {
25
+ EDGE: "EDGE",
26
+ REGIONAL: "REGIONAL",
27
+ };
28
+ exports.SecurityPolicy = {
29
+ TLS_1_0: "TLS_1_0",
30
+ TLS_1_2: "TLS_1_2",
31
+ };
32
+ exports.ConnectionType = {
33
+ INTERNET: "INTERNET",
34
+ VPC_LINK: "VPC_LINK",
35
+ };
36
+ exports.ContentHandlingStrategy = {
37
+ CONVERT_TO_BINARY: "CONVERT_TO_BINARY",
38
+ CONVERT_TO_TEXT: "CONVERT_TO_TEXT",
39
+ };
40
+ exports.IntegrationType = {
41
+ AWS: "AWS",
42
+ AWS_PROXY: "AWS_PROXY",
43
+ HTTP: "HTTP",
44
+ HTTP_PROXY: "HTTP_PROXY",
45
+ MOCK: "MOCK",
46
+ };
47
+ exports.PassthroughBehavior = {
48
+ NEVER: "NEVER",
49
+ WHEN_NO_MATCH: "WHEN_NO_MATCH",
50
+ WHEN_NO_TEMPLATES: "WHEN_NO_TEMPLATES",
51
+ };
52
+ exports.AuthorizationType = {
53
+ AWS_IAM: "AWS_IAM",
54
+ CUSTOM: "CUSTOM",
55
+ JWT: "JWT",
56
+ NONE: "NONE",
57
+ };
58
+ exports.LoggingLevel = {
59
+ ERROR: "ERROR",
60
+ INFO: "INFO",
61
+ OFF: "OFF",
62
+ };
63
+ exports.VpcLinkStatus = {
64
+ AVAILABLE: "AVAILABLE",
65
+ DELETING: "DELETING",
66
+ FAILED: "FAILED",
67
+ INACTIVE: "INACTIVE",
68
+ PENDING: "PENDING",
69
+ };
70
+ exports.VpcLinkVersion = {
71
+ V2: "V2",
72
+ };
87
73
  class AccessDeniedException extends ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException {
88
74
  constructor(opts) {
89
75
  super({
@@ -1,86 +1,72 @@
1
1
  import { ApiGatewayV2ServiceException as __BaseException } from "./ApiGatewayV2ServiceException";
2
- export var ProtocolType;
3
- (function (ProtocolType) {
4
- ProtocolType["HTTP"] = "HTTP";
5
- ProtocolType["WEBSOCKET"] = "WEBSOCKET";
6
- })(ProtocolType || (ProtocolType = {}));
7
- export var AuthorizerType;
8
- (function (AuthorizerType) {
9
- AuthorizerType["JWT"] = "JWT";
10
- AuthorizerType["REQUEST"] = "REQUEST";
11
- })(AuthorizerType || (AuthorizerType = {}));
12
- export var DeploymentStatus;
13
- (function (DeploymentStatus) {
14
- DeploymentStatus["DEPLOYED"] = "DEPLOYED";
15
- DeploymentStatus["FAILED"] = "FAILED";
16
- DeploymentStatus["PENDING"] = "PENDING";
17
- })(DeploymentStatus || (DeploymentStatus = {}));
18
- export var DomainNameStatus;
19
- (function (DomainNameStatus) {
20
- DomainNameStatus["AVAILABLE"] = "AVAILABLE";
21
- DomainNameStatus["PENDING_CERTIFICATE_REIMPORT"] = "PENDING_CERTIFICATE_REIMPORT";
22
- DomainNameStatus["PENDING_OWNERSHIP_VERIFICATION"] = "PENDING_OWNERSHIP_VERIFICATION";
23
- DomainNameStatus["UPDATING"] = "UPDATING";
24
- })(DomainNameStatus || (DomainNameStatus = {}));
25
- export var EndpointType;
26
- (function (EndpointType) {
27
- EndpointType["EDGE"] = "EDGE";
28
- EndpointType["REGIONAL"] = "REGIONAL";
29
- })(EndpointType || (EndpointType = {}));
30
- export var SecurityPolicy;
31
- (function (SecurityPolicy) {
32
- SecurityPolicy["TLS_1_0"] = "TLS_1_0";
33
- SecurityPolicy["TLS_1_2"] = "TLS_1_2";
34
- })(SecurityPolicy || (SecurityPolicy = {}));
35
- export var ConnectionType;
36
- (function (ConnectionType) {
37
- ConnectionType["INTERNET"] = "INTERNET";
38
- ConnectionType["VPC_LINK"] = "VPC_LINK";
39
- })(ConnectionType || (ConnectionType = {}));
40
- export var ContentHandlingStrategy;
41
- (function (ContentHandlingStrategy) {
42
- ContentHandlingStrategy["CONVERT_TO_BINARY"] = "CONVERT_TO_BINARY";
43
- ContentHandlingStrategy["CONVERT_TO_TEXT"] = "CONVERT_TO_TEXT";
44
- })(ContentHandlingStrategy || (ContentHandlingStrategy = {}));
45
- export var IntegrationType;
46
- (function (IntegrationType) {
47
- IntegrationType["AWS"] = "AWS";
48
- IntegrationType["AWS_PROXY"] = "AWS_PROXY";
49
- IntegrationType["HTTP"] = "HTTP";
50
- IntegrationType["HTTP_PROXY"] = "HTTP_PROXY";
51
- IntegrationType["MOCK"] = "MOCK";
52
- })(IntegrationType || (IntegrationType = {}));
53
- export var PassthroughBehavior;
54
- (function (PassthroughBehavior) {
55
- PassthroughBehavior["NEVER"] = "NEVER";
56
- PassthroughBehavior["WHEN_NO_MATCH"] = "WHEN_NO_MATCH";
57
- PassthroughBehavior["WHEN_NO_TEMPLATES"] = "WHEN_NO_TEMPLATES";
58
- })(PassthroughBehavior || (PassthroughBehavior = {}));
59
- export var AuthorizationType;
60
- (function (AuthorizationType) {
61
- AuthorizationType["AWS_IAM"] = "AWS_IAM";
62
- AuthorizationType["CUSTOM"] = "CUSTOM";
63
- AuthorizationType["JWT"] = "JWT";
64
- AuthorizationType["NONE"] = "NONE";
65
- })(AuthorizationType || (AuthorizationType = {}));
66
- export var LoggingLevel;
67
- (function (LoggingLevel) {
68
- LoggingLevel["ERROR"] = "ERROR";
69
- LoggingLevel["INFO"] = "INFO";
70
- LoggingLevel["OFF"] = "OFF";
71
- })(LoggingLevel || (LoggingLevel = {}));
72
- export var VpcLinkStatus;
73
- (function (VpcLinkStatus) {
74
- VpcLinkStatus["AVAILABLE"] = "AVAILABLE";
75
- VpcLinkStatus["DELETING"] = "DELETING";
76
- VpcLinkStatus["FAILED"] = "FAILED";
77
- VpcLinkStatus["INACTIVE"] = "INACTIVE";
78
- VpcLinkStatus["PENDING"] = "PENDING";
79
- })(VpcLinkStatus || (VpcLinkStatus = {}));
80
- export var VpcLinkVersion;
81
- (function (VpcLinkVersion) {
82
- VpcLinkVersion["V2"] = "V2";
83
- })(VpcLinkVersion || (VpcLinkVersion = {}));
2
+ export const ProtocolType = {
3
+ HTTP: "HTTP",
4
+ WEBSOCKET: "WEBSOCKET",
5
+ };
6
+ export const AuthorizerType = {
7
+ JWT: "JWT",
8
+ REQUEST: "REQUEST",
9
+ };
10
+ export const DeploymentStatus = {
11
+ DEPLOYED: "DEPLOYED",
12
+ FAILED: "FAILED",
13
+ PENDING: "PENDING",
14
+ };
15
+ export const DomainNameStatus = {
16
+ AVAILABLE: "AVAILABLE",
17
+ PENDING_CERTIFICATE_REIMPORT: "PENDING_CERTIFICATE_REIMPORT",
18
+ PENDING_OWNERSHIP_VERIFICATION: "PENDING_OWNERSHIP_VERIFICATION",
19
+ UPDATING: "UPDATING",
20
+ };
21
+ export const EndpointType = {
22
+ EDGE: "EDGE",
23
+ REGIONAL: "REGIONAL",
24
+ };
25
+ export const SecurityPolicy = {
26
+ TLS_1_0: "TLS_1_0",
27
+ TLS_1_2: "TLS_1_2",
28
+ };
29
+ export const ConnectionType = {
30
+ INTERNET: "INTERNET",
31
+ VPC_LINK: "VPC_LINK",
32
+ };
33
+ export const ContentHandlingStrategy = {
34
+ CONVERT_TO_BINARY: "CONVERT_TO_BINARY",
35
+ CONVERT_TO_TEXT: "CONVERT_TO_TEXT",
36
+ };
37
+ export const IntegrationType = {
38
+ AWS: "AWS",
39
+ AWS_PROXY: "AWS_PROXY",
40
+ HTTP: "HTTP",
41
+ HTTP_PROXY: "HTTP_PROXY",
42
+ MOCK: "MOCK",
43
+ };
44
+ export const PassthroughBehavior = {
45
+ NEVER: "NEVER",
46
+ WHEN_NO_MATCH: "WHEN_NO_MATCH",
47
+ WHEN_NO_TEMPLATES: "WHEN_NO_TEMPLATES",
48
+ };
49
+ export const AuthorizationType = {
50
+ AWS_IAM: "AWS_IAM",
51
+ CUSTOM: "CUSTOM",
52
+ JWT: "JWT",
53
+ NONE: "NONE",
54
+ };
55
+ export const LoggingLevel = {
56
+ ERROR: "ERROR",
57
+ INFO: "INFO",
58
+ OFF: "OFF",
59
+ };
60
+ export const VpcLinkStatus = {
61
+ AVAILABLE: "AVAILABLE",
62
+ DELETING: "DELETING",
63
+ FAILED: "FAILED",
64
+ INACTIVE: "INACTIVE",
65
+ PENDING: "PENDING",
66
+ };
67
+ export const VpcLinkVersion = {
68
+ V2: "V2",
69
+ };
84
70
  export class AccessDeniedException extends __BaseException {
85
71
  constructor(opts) {
86
72
  super({
@@ -32,11 +32,16 @@ export interface Cors {
32
32
  }
33
33
  /**
34
34
  * @public
35
+ * @enum
35
36
  */
36
- export declare enum ProtocolType {
37
- HTTP = "HTTP",
38
- WEBSOCKET = "WEBSOCKET"
39
- }
37
+ export declare const ProtocolType: {
38
+ readonly HTTP: "HTTP";
39
+ readonly WEBSOCKET: "WEBSOCKET";
40
+ };
41
+ /**
42
+ * @public
43
+ */
44
+ export type ProtocolType = (typeof ProtocolType)[keyof typeof ProtocolType];
40
45
  /**
41
46
  * @public
42
47
  * <p>Represents an API.</p>
@@ -131,11 +136,16 @@ export interface ApiMapping {
131
136
  }
132
137
  /**
133
138
  * @public
139
+ * @enum
134
140
  */
135
- export declare enum AuthorizerType {
136
- JWT = "JWT",
137
- REQUEST = "REQUEST"
138
- }
141
+ export declare const AuthorizerType: {
142
+ readonly JWT: "JWT";
143
+ readonly REQUEST: "REQUEST";
144
+ };
145
+ /**
146
+ * @public
147
+ */
148
+ export type AuthorizerType = (typeof AuthorizerType)[keyof typeof AuthorizerType];
139
149
  /**
140
150
  * @public
141
151
  * <p>Represents the configuration of a JWT authorizer. Required for the JWT authorizer type. Supported only for HTTP APIs.</p>
@@ -204,12 +214,17 @@ export interface Authorizer {
204
214
  }
205
215
  /**
206
216
  * @public
217
+ * @enum
207
218
  */
208
- export declare enum DeploymentStatus {
209
- DEPLOYED = "DEPLOYED",
210
- FAILED = "FAILED",
211
- PENDING = "PENDING"
212
- }
219
+ export declare const DeploymentStatus: {
220
+ readonly DEPLOYED: "DEPLOYED";
221
+ readonly FAILED: "FAILED";
222
+ readonly PENDING: "PENDING";
223
+ };
224
+ /**
225
+ * @public
226
+ */
227
+ export type DeploymentStatus = (typeof DeploymentStatus)[keyof typeof DeploymentStatus];
213
228
  /**
214
229
  * @public
215
230
  * <p>An immutable representation of an API that can be called by users. A Deployment must be associated with a Stage for it to be callable over the internet.</p>
@@ -242,27 +257,42 @@ export interface Deployment {
242
257
  }
243
258
  /**
244
259
  * @public
260
+ * @enum
245
261
  */
246
- export declare enum DomainNameStatus {
247
- AVAILABLE = "AVAILABLE",
248
- PENDING_CERTIFICATE_REIMPORT = "PENDING_CERTIFICATE_REIMPORT",
249
- PENDING_OWNERSHIP_VERIFICATION = "PENDING_OWNERSHIP_VERIFICATION",
250
- UPDATING = "UPDATING"
251
- }
262
+ export declare const DomainNameStatus: {
263
+ readonly AVAILABLE: "AVAILABLE";
264
+ readonly PENDING_CERTIFICATE_REIMPORT: "PENDING_CERTIFICATE_REIMPORT";
265
+ readonly PENDING_OWNERSHIP_VERIFICATION: "PENDING_OWNERSHIP_VERIFICATION";
266
+ readonly UPDATING: "UPDATING";
267
+ };
252
268
  /**
253
269
  * @public
254
270
  */
255
- export declare enum EndpointType {
256
- EDGE = "EDGE",
257
- REGIONAL = "REGIONAL"
258
- }
271
+ export type DomainNameStatus = (typeof DomainNameStatus)[keyof typeof DomainNameStatus];
259
272
  /**
260
273
  * @public
274
+ * @enum
261
275
  */
262
- export declare enum SecurityPolicy {
263
- TLS_1_0 = "TLS_1_0",
264
- TLS_1_2 = "TLS_1_2"
265
- }
276
+ export declare const EndpointType: {
277
+ readonly EDGE: "EDGE";
278
+ readonly REGIONAL: "REGIONAL";
279
+ };
280
+ /**
281
+ * @public
282
+ */
283
+ export type EndpointType = (typeof EndpointType)[keyof typeof EndpointType];
284
+ /**
285
+ * @public
286
+ * @enum
287
+ */
288
+ export declare const SecurityPolicy: {
289
+ readonly TLS_1_0: "TLS_1_0";
290
+ readonly TLS_1_2: "TLS_1_2";
291
+ };
292
+ /**
293
+ * @public
294
+ */
295
+ export type SecurityPolicy = (typeof SecurityPolicy)[keyof typeof SecurityPolicy];
266
296
  /**
267
297
  * @public
268
298
  * <p>The domain name configuration.</p>
@@ -354,36 +384,56 @@ export interface DomainName {
354
384
  }
355
385
  /**
356
386
  * @public
387
+ * @enum
357
388
  */
358
- export declare enum ConnectionType {
359
- INTERNET = "INTERNET",
360
- VPC_LINK = "VPC_LINK"
361
- }
389
+ export declare const ConnectionType: {
390
+ readonly INTERNET: "INTERNET";
391
+ readonly VPC_LINK: "VPC_LINK";
392
+ };
362
393
  /**
363
394
  * @public
364
395
  */
365
- export declare enum ContentHandlingStrategy {
366
- CONVERT_TO_BINARY = "CONVERT_TO_BINARY",
367
- CONVERT_TO_TEXT = "CONVERT_TO_TEXT"
368
- }
396
+ export type ConnectionType = (typeof ConnectionType)[keyof typeof ConnectionType];
369
397
  /**
370
398
  * @public
399
+ * @enum
371
400
  */
372
- export declare enum IntegrationType {
373
- AWS = "AWS",
374
- AWS_PROXY = "AWS_PROXY",
375
- HTTP = "HTTP",
376
- HTTP_PROXY = "HTTP_PROXY",
377
- MOCK = "MOCK"
378
- }
401
+ export declare const ContentHandlingStrategy: {
402
+ readonly CONVERT_TO_BINARY: "CONVERT_TO_BINARY";
403
+ readonly CONVERT_TO_TEXT: "CONVERT_TO_TEXT";
404
+ };
379
405
  /**
380
406
  * @public
381
407
  */
382
- export declare enum PassthroughBehavior {
383
- NEVER = "NEVER",
384
- WHEN_NO_MATCH = "WHEN_NO_MATCH",
385
- WHEN_NO_TEMPLATES = "WHEN_NO_TEMPLATES"
386
- }
408
+ export type ContentHandlingStrategy = (typeof ContentHandlingStrategy)[keyof typeof ContentHandlingStrategy];
409
+ /**
410
+ * @public
411
+ * @enum
412
+ */
413
+ export declare const IntegrationType: {
414
+ readonly AWS: "AWS";
415
+ readonly AWS_PROXY: "AWS_PROXY";
416
+ readonly HTTP: "HTTP";
417
+ readonly HTTP_PROXY: "HTTP_PROXY";
418
+ readonly MOCK: "MOCK";
419
+ };
420
+ /**
421
+ * @public
422
+ */
423
+ export type IntegrationType = (typeof IntegrationType)[keyof typeof IntegrationType];
424
+ /**
425
+ * @public
426
+ * @enum
427
+ */
428
+ export declare const PassthroughBehavior: {
429
+ readonly NEVER: "NEVER";
430
+ readonly WHEN_NO_MATCH: "WHEN_NO_MATCH";
431
+ readonly WHEN_NO_TEMPLATES: "WHEN_NO_TEMPLATES";
432
+ };
433
+ /**
434
+ * @public
435
+ */
436
+ export type PassthroughBehavior = (typeof PassthroughBehavior)[keyof typeof PassthroughBehavior];
387
437
  /**
388
438
  * @public
389
439
  * <p>The TLS configuration for a private integration. If you specify a TLS configuration, private integration traffic uses the HTTPS protocol. Supported only for HTTP APIs.</p>
@@ -543,13 +593,18 @@ export interface Model {
543
593
  }
544
594
  /**
545
595
  * @public
596
+ * @enum
546
597
  */
547
- export declare enum AuthorizationType {
548
- AWS_IAM = "AWS_IAM",
549
- CUSTOM = "CUSTOM",
550
- JWT = "JWT",
551
- NONE = "NONE"
552
- }
598
+ export declare const AuthorizationType: {
599
+ readonly AWS_IAM: "AWS_IAM";
600
+ readonly CUSTOM: "CUSTOM";
601
+ readonly JWT: "JWT";
602
+ readonly NONE: "NONE";
603
+ };
604
+ /**
605
+ * @public
606
+ */
607
+ export type AuthorizationType = (typeof AuthorizationType)[keyof typeof AuthorizationType];
553
608
  /**
554
609
  * @public
555
610
  * <p>Validation constraints imposed on parameters of a request (path, query string, headers).</p>
@@ -660,12 +715,17 @@ export interface AccessLogSettings {
660
715
  }
661
716
  /**
662
717
  * @public
718
+ * @enum
663
719
  */
664
- export declare enum LoggingLevel {
665
- ERROR = "ERROR",
666
- INFO = "INFO",
667
- OFF = "OFF"
668
- }
720
+ export declare const LoggingLevel: {
721
+ readonly ERROR: "ERROR";
722
+ readonly INFO: "INFO";
723
+ readonly OFF: "OFF";
724
+ };
725
+ /**
726
+ * @public
727
+ */
728
+ export type LoggingLevel = (typeof LoggingLevel)[keyof typeof LoggingLevel];
669
729
  /**
670
730
  * @public
671
731
  * <p>Represents a collection of route settings.</p>
@@ -756,20 +816,30 @@ export interface Stage {
756
816
  }
757
817
  /**
758
818
  * @public
819
+ * @enum
759
820
  */
760
- export declare enum VpcLinkStatus {
761
- AVAILABLE = "AVAILABLE",
762
- DELETING = "DELETING",
763
- FAILED = "FAILED",
764
- INACTIVE = "INACTIVE",
765
- PENDING = "PENDING"
766
- }
821
+ export declare const VpcLinkStatus: {
822
+ readonly AVAILABLE: "AVAILABLE";
823
+ readonly DELETING: "DELETING";
824
+ readonly FAILED: "FAILED";
825
+ readonly INACTIVE: "INACTIVE";
826
+ readonly PENDING: "PENDING";
827
+ };
767
828
  /**
768
829
  * @public
769
830
  */
770
- export declare enum VpcLinkVersion {
771
- V2 = "V2"
772
- }
831
+ export type VpcLinkStatus = (typeof VpcLinkStatus)[keyof typeof VpcLinkStatus];
832
+ /**
833
+ * @public
834
+ * @enum
835
+ */
836
+ export declare const VpcLinkVersion: {
837
+ readonly V2: "V2";
838
+ };
839
+ /**
840
+ * @public
841
+ */
842
+ export type VpcLinkVersion = (typeof VpcLinkVersion)[keyof typeof VpcLinkVersion];
773
843
  /**
774
844
  * @public
775
845
  * <p>Represents a VPC link.</p>
@@ -8,10 +8,11 @@ export interface Cors {
8
8
  ExposeHeaders?: string[];
9
9
  MaxAge?: number;
10
10
  }
11
- export declare enum ProtocolType {
12
- HTTP = "HTTP",
13
- WEBSOCKET = "WEBSOCKET",
14
- }
11
+ export declare const ProtocolType: {
12
+ readonly HTTP: "HTTP";
13
+ readonly WEBSOCKET: "WEBSOCKET";
14
+ };
15
+ export type ProtocolType = (typeof ProtocolType)[keyof typeof ProtocolType];
15
16
  export interface Api {
16
17
  ApiEndpoint?: string;
17
18
  ApiGatewayManaged?: boolean;
@@ -36,10 +37,12 @@ export interface ApiMapping {
36
37
  ApiMappingKey?: string;
37
38
  Stage: string | undefined;
38
39
  }
39
- export declare enum AuthorizerType {
40
- JWT = "JWT",
41
- REQUEST = "REQUEST",
42
- }
40
+ export declare const AuthorizerType: {
41
+ readonly JWT: "JWT";
42
+ readonly REQUEST: "REQUEST";
43
+ };
44
+ export type AuthorizerType =
45
+ (typeof AuthorizerType)[keyof typeof AuthorizerType];
43
46
  export interface JWTConfiguration {
44
47
  Audience?: string[];
45
48
  Issuer?: string;
@@ -57,11 +60,13 @@ export interface Authorizer {
57
60
  JwtConfiguration?: JWTConfiguration;
58
61
  Name: string | undefined;
59
62
  }
60
- export declare enum DeploymentStatus {
61
- DEPLOYED = "DEPLOYED",
62
- FAILED = "FAILED",
63
- PENDING = "PENDING",
64
- }
63
+ export declare const DeploymentStatus: {
64
+ readonly DEPLOYED: "DEPLOYED";
65
+ readonly FAILED: "FAILED";
66
+ readonly PENDING: "PENDING";
67
+ };
68
+ export type DeploymentStatus =
69
+ (typeof DeploymentStatus)[keyof typeof DeploymentStatus];
65
70
  export interface Deployment {
66
71
  AutoDeployed?: boolean;
67
72
  CreatedDate?: Date;
@@ -70,20 +75,25 @@ export interface Deployment {
70
75
  DeploymentStatusMessage?: string;
71
76
  Description?: string;
72
77
  }
73
- export declare enum DomainNameStatus {
74
- AVAILABLE = "AVAILABLE",
75
- PENDING_CERTIFICATE_REIMPORT = "PENDING_CERTIFICATE_REIMPORT",
76
- PENDING_OWNERSHIP_VERIFICATION = "PENDING_OWNERSHIP_VERIFICATION",
77
- UPDATING = "UPDATING",
78
- }
79
- export declare enum EndpointType {
80
- EDGE = "EDGE",
81
- REGIONAL = "REGIONAL",
82
- }
83
- export declare enum SecurityPolicy {
84
- TLS_1_0 = "TLS_1_0",
85
- TLS_1_2 = "TLS_1_2",
86
- }
78
+ export declare const DomainNameStatus: {
79
+ readonly AVAILABLE: "AVAILABLE";
80
+ readonly PENDING_CERTIFICATE_REIMPORT: "PENDING_CERTIFICATE_REIMPORT";
81
+ readonly PENDING_OWNERSHIP_VERIFICATION: "PENDING_OWNERSHIP_VERIFICATION";
82
+ readonly UPDATING: "UPDATING";
83
+ };
84
+ export type DomainNameStatus =
85
+ (typeof DomainNameStatus)[keyof typeof DomainNameStatus];
86
+ export declare const EndpointType: {
87
+ readonly EDGE: "EDGE";
88
+ readonly REGIONAL: "REGIONAL";
89
+ };
90
+ export type EndpointType = (typeof EndpointType)[keyof typeof EndpointType];
91
+ export declare const SecurityPolicy: {
92
+ readonly TLS_1_0: "TLS_1_0";
93
+ readonly TLS_1_2: "TLS_1_2";
94
+ };
95
+ export type SecurityPolicy =
96
+ (typeof SecurityPolicy)[keyof typeof SecurityPolicy];
87
97
  export interface DomainNameConfiguration {
88
98
  ApiGatewayDomainName?: string;
89
99
  CertificateArn?: string;
@@ -108,26 +118,34 @@ export interface DomainName {
108
118
  MutualTlsAuthentication?: MutualTlsAuthentication;
109
119
  Tags?: Record<string, string>;
110
120
  }
111
- export declare enum ConnectionType {
112
- INTERNET = "INTERNET",
113
- VPC_LINK = "VPC_LINK",
114
- }
115
- export declare enum ContentHandlingStrategy {
116
- CONVERT_TO_BINARY = "CONVERT_TO_BINARY",
117
- CONVERT_TO_TEXT = "CONVERT_TO_TEXT",
118
- }
119
- export declare enum IntegrationType {
120
- AWS = "AWS",
121
- AWS_PROXY = "AWS_PROXY",
122
- HTTP = "HTTP",
123
- HTTP_PROXY = "HTTP_PROXY",
124
- MOCK = "MOCK",
125
- }
126
- export declare enum PassthroughBehavior {
127
- NEVER = "NEVER",
128
- WHEN_NO_MATCH = "WHEN_NO_MATCH",
129
- WHEN_NO_TEMPLATES = "WHEN_NO_TEMPLATES",
130
- }
121
+ export declare const ConnectionType: {
122
+ readonly INTERNET: "INTERNET";
123
+ readonly VPC_LINK: "VPC_LINK";
124
+ };
125
+ export type ConnectionType =
126
+ (typeof ConnectionType)[keyof typeof ConnectionType];
127
+ export declare const ContentHandlingStrategy: {
128
+ readonly CONVERT_TO_BINARY: "CONVERT_TO_BINARY";
129
+ readonly CONVERT_TO_TEXT: "CONVERT_TO_TEXT";
130
+ };
131
+ export type ContentHandlingStrategy =
132
+ (typeof ContentHandlingStrategy)[keyof typeof ContentHandlingStrategy];
133
+ export declare const IntegrationType: {
134
+ readonly AWS: "AWS";
135
+ readonly AWS_PROXY: "AWS_PROXY";
136
+ readonly HTTP: "HTTP";
137
+ readonly HTTP_PROXY: "HTTP_PROXY";
138
+ readonly MOCK: "MOCK";
139
+ };
140
+ export type IntegrationType =
141
+ (typeof IntegrationType)[keyof typeof IntegrationType];
142
+ export declare const PassthroughBehavior: {
143
+ readonly NEVER: "NEVER";
144
+ readonly WHEN_NO_MATCH: "WHEN_NO_MATCH";
145
+ readonly WHEN_NO_TEMPLATES: "WHEN_NO_TEMPLATES";
146
+ };
147
+ export type PassthroughBehavior =
148
+ (typeof PassthroughBehavior)[keyof typeof PassthroughBehavior];
131
149
  export interface TlsConfig {
132
150
  ServerNameToVerify?: string;
133
151
  }
@@ -168,12 +186,14 @@ export interface Model {
168
186
  Name: string | undefined;
169
187
  Schema?: string;
170
188
  }
171
- export declare enum AuthorizationType {
172
- AWS_IAM = "AWS_IAM",
173
- CUSTOM = "CUSTOM",
174
- JWT = "JWT",
175
- NONE = "NONE",
176
- }
189
+ export declare const AuthorizationType: {
190
+ readonly AWS_IAM: "AWS_IAM";
191
+ readonly CUSTOM: "CUSTOM";
192
+ readonly JWT: "JWT";
193
+ readonly NONE: "NONE";
194
+ };
195
+ export type AuthorizationType =
196
+ (typeof AuthorizationType)[keyof typeof AuthorizationType];
177
197
  export interface ParameterConstraints {
178
198
  Required?: boolean;
179
199
  }
@@ -203,11 +223,12 @@ export interface AccessLogSettings {
203
223
  DestinationArn?: string;
204
224
  Format?: string;
205
225
  }
206
- export declare enum LoggingLevel {
207
- ERROR = "ERROR",
208
- INFO = "INFO",
209
- OFF = "OFF",
210
- }
226
+ export declare const LoggingLevel: {
227
+ readonly ERROR: "ERROR";
228
+ readonly INFO: "INFO";
229
+ readonly OFF: "OFF";
230
+ };
231
+ export type LoggingLevel = (typeof LoggingLevel)[keyof typeof LoggingLevel];
211
232
  export interface RouteSettings {
212
233
  DataTraceEnabled?: boolean;
213
234
  DetailedMetricsEnabled?: boolean;
@@ -231,16 +252,19 @@ export interface Stage {
231
252
  StageVariables?: Record<string, string>;
232
253
  Tags?: Record<string, string>;
233
254
  }
234
- export declare enum VpcLinkStatus {
235
- AVAILABLE = "AVAILABLE",
236
- DELETING = "DELETING",
237
- FAILED = "FAILED",
238
- INACTIVE = "INACTIVE",
239
- PENDING = "PENDING",
240
- }
241
- export declare enum VpcLinkVersion {
242
- V2 = "V2",
243
- }
255
+ export declare const VpcLinkStatus: {
256
+ readonly AVAILABLE: "AVAILABLE";
257
+ readonly DELETING: "DELETING";
258
+ readonly FAILED: "FAILED";
259
+ readonly INACTIVE: "INACTIVE";
260
+ readonly PENDING: "PENDING";
261
+ };
262
+ export type VpcLinkStatus = (typeof VpcLinkStatus)[keyof typeof VpcLinkStatus];
263
+ export declare const VpcLinkVersion: {
264
+ readonly V2: "V2";
265
+ };
266
+ export type VpcLinkVersion =
267
+ (typeof VpcLinkVersion)[keyof typeof VpcLinkVersion];
244
268
  export interface VpcLink {
245
269
  CreatedDate?: Date;
246
270
  Name: string | undefined;
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.301.0",
4
+ "version": "3.303.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",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",