@aws-sdk/client-api-gateway 3.1170.0 → 3.1171.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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  AWS SDK for JavaScript APIGateway Client for Node.js, Browser and React Native.
8
8
 
9
9
  <fullname>Amazon API Gateway</fullname>
10
- <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>
10
+ <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of Amazon Web Services.</p>
11
11
 
12
12
  ## Installing
13
13
 
package/dist-cjs/index.js CHANGED
@@ -70,7 +70,7 @@ const commonParams = {
70
70
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
71
71
  };
72
72
 
73
- var version = "3.1169.0";
73
+ var version = "3.1170.0";
74
74
  var packageInfo = {
75
75
  version: version};
76
76
 
@@ -457,6 +457,11 @@ const _IDPR = "ImportDocumentationPartsRequest";
457
457
  const _IR = "IntegrationResponse";
458
458
  const _IRA = "ImportRestApi";
459
459
  const _IRAR = "ImportRestApiRequest";
460
+ const _JAC = "JwtAdditionalClaim";
461
+ const _JC = "JwtConfiguration";
462
+ const _JCI = "JwtConfigurationInput";
463
+ const _JI = "JwtIssuer";
464
+ const _JII = "JwtIssuerInput";
460
465
  const _LEE = "LimitExceededException";
461
466
  const _LOA = "ListOfAuthorizer";
462
467
  const _LOAK = "ListOfApiKey";
@@ -469,6 +474,9 @@ const _LODNAA = "ListOfDomainNameAccessAssociation";
469
474
  const _LODP = "ListOfDocumentationPart";
470
475
  const _LODV = "ListOfDocumentationVersion";
471
476
  const _LOGR = "ListOfGatewayResponse";
477
+ const _LOJAC = "ListOfJwtAdditionalClaim";
478
+ const _LOJI = "ListOfJwtIssuer";
479
+ const _LOJII = "ListOfJwtIssuerInput";
472
480
  const _LOM = "ListOfModel";
473
481
  const _LOPO = "ListOfPatchOperation";
474
482
  const _LOR = "ListOfResource";
@@ -602,7 +610,8 @@ const _a = "accepts";
602
610
  const _aAS = "accessAssociationSource";
603
611
  const _aAST = "accessAssociationSourceType";
604
612
  const _aC = "authorizerCredentials";
605
- const _aCd = "additionalContext";
613
+ const _aCd = "additionalClaims";
614
+ const _aCdd = "additionalContext";
606
615
  const _aI = "apiId";
607
616
  const _aIu = "authorizerId";
608
617
  const _aK = "apiKey";
@@ -619,7 +628,8 @@ const _aSu = "authorizationScopes";
619
628
  const _aT = "authType";
620
629
  const _aTu = "authorizationType";
621
630
  const _aU = "authorizerUri";
622
- const _au = "authorization";
631
+ const _au = "audiences";
632
+ const _aut = "authorization";
623
633
  const _b = "body";
624
634
  const _bL = "burstLimit";
625
635
  const _bMT = "binaryMediaTypes";
@@ -643,6 +653,7 @@ const _cIo = "connectionId";
643
653
  const _cKP = "cacheKeyParameters";
644
654
  const _cN = "certificateName";
645
655
  const _cNa = "cacheNamespace";
656
+ const _cNl = "claimName";
646
657
  const _cP = "configurationProperties";
647
658
  const _cPK = "certificatePrivateKey";
648
659
  const _cRA = "cloudwatchRoleArn";
@@ -656,6 +667,7 @@ const _cl = "claims";
656
667
  const _cr = "credentials";
657
668
  const _d = "description";
658
669
  const _dA = "destinationArn";
670
+ const _dAe = "defaultAlgorithms";
659
671
  const _dDN = "distributionDomainName";
660
672
  const _dEAE = "disableExecuteApiEndpoint";
661
673
  const _dHZI = "distributionHostedZoneId";
@@ -677,6 +689,7 @@ const _eC = "endpointConfiguration";
677
689
  const _eD = "expirationDate";
678
690
  const _eDn = "endDate";
679
691
  const _eT = "exportType";
692
+ const _eV = "expectedValues";
680
693
  const _em = "embed";
681
694
  const _en = "enabled";
682
695
  const _f = "format";
@@ -705,9 +718,13 @@ const _iV = "includeValue";
705
718
  const _iVE = "identityValidationExpression";
706
719
  const _iVn = "includeValues";
707
720
  const _id = "ids";
721
+ const _is = "issuers";
722
+ const _iss = "issuer";
708
723
  const _it = "items";
709
724
  const _ite = "item";
725
+ const _jC = "jwtConfiguration";
710
726
  const _jN = "jsonName";
727
+ const _jU = "jwksUri";
711
728
  const _kI = "keyId";
712
729
  const _kT = "keyType";
713
730
  const _l = "location";
@@ -905,8 +922,8 @@ var ApiStage$ = [3, n0, _AS,
905
922
  ];
906
923
  var Authorizer$ = [3, n0, _Au,
907
924
  0,
908
- [_i, _n, _ty, _pARN, _aT, _aU, _aC, _iS, _iVE, _aRTIS],
909
- [0, 0, 0, 64 | 0, 0, 0, 0, 0, 0, 1]
925
+ [_i, _n, _ty, _pARN, _aT, _aU, _aC, _iS, _iVE, _aRTIS, _jC],
926
+ [0, 0, 0, 64 | 0, 0, 0, 0, 0, 0, 1, () => JwtConfiguration$]
910
927
  ];
911
928
  var Authorizers$ = [3, n0, _Aut,
912
929
  0,
@@ -945,8 +962,8 @@ var CreateApiKeyRequest$ = [3, n0, _CAKR,
945
962
  ];
946
963
  var CreateAuthorizerRequest$ = [3, n0, _CAR,
947
964
  0,
948
- [_rAI, _n, _ty, _pARN, _aT, _aU, _aC, _iS, _iVE, _aRTIS],
949
- [[0, 1], 0, 0, 64 | 0, 0, 0, 0, 0, 0, 1], 3
965
+ [_rAI, _n, _ty, _pARN, _aT, _aU, _aC, _iS, _iVE, _aRTIS, _jC],
966
+ [[0, 1], 0, 0, 64 | 0, 0, 0, 0, 0, 0, 1, () => JwtConfigurationInput$], 3
950
967
  ];
951
968
  var CreateBasePathMappingRequest$ = [3, n0, _CBPMR,
952
969
  0,
@@ -1488,6 +1505,31 @@ var IntegrationResponse$ = [3, n0, _IR,
1488
1505
  [_sC, _sPe, _rP, _rTe, _cH],
1489
1506
  [0, 0, 128 | 0, 128 | 0, 0]
1490
1507
  ];
1508
+ var JwtAdditionalClaim$ = [3, n0, _JAC,
1509
+ 0,
1510
+ [_cNl, _f, _r, _eV],
1511
+ [0, 0, 2, 64 | 0], 2
1512
+ ];
1513
+ var JwtConfiguration$ = [3, n0, _JC,
1514
+ 0,
1515
+ [_is, _dAe],
1516
+ [() => ListOfJwtIssuer, 64 | 0]
1517
+ ];
1518
+ var JwtConfigurationInput$ = [3, n0, _JCI,
1519
+ 0,
1520
+ [_is, _dAe],
1521
+ [() => ListOfJwtIssuerInput, 64 | 0], 2
1522
+ ];
1523
+ var JwtIssuer$ = [3, n0, _JI,
1524
+ 0,
1525
+ [_iss, _au, _aCd, _jU],
1526
+ [0, 64 | 0, () => ListOfJwtAdditionalClaim, 0]
1527
+ ];
1528
+ var JwtIssuerInput$ = [3, n0, _JII,
1529
+ 0,
1530
+ [_iss, _au, _aCd],
1531
+ [0, 64 | 0, () => ListOfJwtAdditionalClaim], 2
1532
+ ];
1491
1533
  var Method$ = [3, n0, _M,
1492
1534
  0,
1493
1535
  [_hM, _aTu, _aIu, _aKR, _rVI, _oN, _rPe, _rMe, _mR, _mI, _aSu],
@@ -1655,12 +1697,12 @@ var Template$ = [3, n0, _Te,
1655
1697
  ];
1656
1698
  var TestInvokeAuthorizerRequest$ = [3, n0, _TIAR,
1657
1699
  0,
1658
- [_rAI, _aIu, _h, _mVH, _pWQS, _b, _sV, _aCd],
1700
+ [_rAI, _aIu, _h, _mVH, _pWQS, _b, _sV, _aCdd],
1659
1701
  [[0, 1], [0, 1], 128 | 0, [2, n0, _MOSTL, 0, 0, 64 | 0], 0, 0, 128 | 0, 128 | 0], 2
1660
1702
  ];
1661
1703
  var TestInvokeAuthorizerResponse$ = [3, n0, _TIARe,
1662
1704
  0,
1663
- [_cSl, _lo, _la, _pIr, _po, _au, _cl],
1705
+ [_cSl, _lo, _la, _pIr, _po, _aut, _cl],
1664
1706
  [1, 0, 1, 0, 0, [2, n0, _MOSTL, 0, 0, 64 | 0], 128 | 0]
1665
1707
  ];
1666
1708
  var TestInvokeMethodRequest$ = [3, n0, _TIMR,
@@ -1867,6 +1909,15 @@ var ListOfDomainNameAccessAssociation = [1, n0, _LODNAA,
1867
1909
  var ListOfGatewayResponse = [1, n0, _LOGR,
1868
1910
  0, () => GatewayResponse$
1869
1911
  ];
1912
+ var ListOfJwtAdditionalClaim = [1, n0, _LOJAC,
1913
+ 0, () => JwtAdditionalClaim$
1914
+ ];
1915
+ var ListOfJwtIssuer = [1, n0, _LOJI,
1916
+ 0, () => JwtIssuer$
1917
+ ];
1918
+ var ListOfJwtIssuerInput = [1, n0, _LOJII,
1919
+ 0, () => JwtIssuerInput$
1920
+ ];
1870
1921
  var ListOfModel = [1, n0, _LOM,
1871
1922
  0, () => Model$
1872
1923
  ];
@@ -3005,8 +3056,20 @@ const ApiStatus = {
3005
3056
  PENDING: "PENDING",
3006
3057
  UPDATING: "UPDATING",
3007
3058
  };
3059
+ const JwtSigningAlgorithm = {
3060
+ ES256: "ES256",
3061
+ ES384: "ES384",
3062
+ ES512: "ES512",
3063
+ RS256: "RS256",
3064
+ RS384: "RS384",
3065
+ RS512: "RS512",
3066
+ };
3067
+ const JwtClaimFormat = {
3068
+ SINGLE_STRING: "SINGLE_STRING",
3069
+ };
3008
3070
  const AuthorizerType = {
3009
3071
  COGNITO_USER_POOLS: "COGNITO_USER_POOLS",
3072
+ JWT: "JWT",
3010
3073
  REQUEST: "REQUEST",
3011
3074
  TOKEN: "TOKEN",
3012
3075
  };
@@ -3491,6 +3554,13 @@ exports.Integration$ = Integration$;
3491
3554
  exports.IntegrationResponse$ = IntegrationResponse$;
3492
3555
  exports.IntegrationType = IntegrationType;
3493
3556
  exports.IpAddressType = IpAddressType;
3557
+ exports.JwtAdditionalClaim$ = JwtAdditionalClaim$;
3558
+ exports.JwtClaimFormat = JwtClaimFormat;
3559
+ exports.JwtConfiguration$ = JwtConfiguration$;
3560
+ exports.JwtConfigurationInput$ = JwtConfigurationInput$;
3561
+ exports.JwtIssuer$ = JwtIssuer$;
3562
+ exports.JwtIssuerInput$ = JwtIssuerInput$;
3563
+ exports.JwtSigningAlgorithm = JwtSigningAlgorithm;
3494
3564
  exports.LimitExceededException = LimitExceededException;
3495
3565
  exports.LimitExceededException$ = LimitExceededException$;
3496
3566
  exports.LocationStatusType = LocationStatusType;
@@ -14,8 +14,20 @@ export const ApiStatus = {
14
14
  PENDING: "PENDING",
15
15
  UPDATING: "UPDATING",
16
16
  };
17
+ export const JwtSigningAlgorithm = {
18
+ ES256: "ES256",
19
+ ES384: "ES384",
20
+ ES512: "ES512",
21
+ RS256: "RS256",
22
+ RS384: "RS384",
23
+ RS512: "RS512",
24
+ };
25
+ export const JwtClaimFormat = {
26
+ SINGLE_STRING: "SINGLE_STRING",
27
+ };
17
28
  export const AuthorizerType = {
18
29
  COGNITO_USER_POOLS: "COGNITO_USER_POOLS",
30
+ JWT: "JWT",
19
31
  REQUEST: "REQUEST",
20
32
  TOKEN: "TOKEN",
21
33
  };
@@ -217,6 +217,11 @@ const _IDPR = "ImportDocumentationPartsRequest";
217
217
  const _IR = "IntegrationResponse";
218
218
  const _IRA = "ImportRestApi";
219
219
  const _IRAR = "ImportRestApiRequest";
220
+ const _JAC = "JwtAdditionalClaim";
221
+ const _JC = "JwtConfiguration";
222
+ const _JCI = "JwtConfigurationInput";
223
+ const _JI = "JwtIssuer";
224
+ const _JII = "JwtIssuerInput";
220
225
  const _LEE = "LimitExceededException";
221
226
  const _LOA = "ListOfAuthorizer";
222
227
  const _LOAK = "ListOfApiKey";
@@ -229,6 +234,9 @@ const _LODNAA = "ListOfDomainNameAccessAssociation";
229
234
  const _LODP = "ListOfDocumentationPart";
230
235
  const _LODV = "ListOfDocumentationVersion";
231
236
  const _LOGR = "ListOfGatewayResponse";
237
+ const _LOJAC = "ListOfJwtAdditionalClaim";
238
+ const _LOJI = "ListOfJwtIssuer";
239
+ const _LOJII = "ListOfJwtIssuerInput";
232
240
  const _LOM = "ListOfModel";
233
241
  const _LOPO = "ListOfPatchOperation";
234
242
  const _LOR = "ListOfResource";
@@ -362,7 +370,8 @@ const _a = "accepts";
362
370
  const _aAS = "accessAssociationSource";
363
371
  const _aAST = "accessAssociationSourceType";
364
372
  const _aC = "authorizerCredentials";
365
- const _aCd = "additionalContext";
373
+ const _aCd = "additionalClaims";
374
+ const _aCdd = "additionalContext";
366
375
  const _aI = "apiId";
367
376
  const _aIu = "authorizerId";
368
377
  const _aK = "apiKey";
@@ -379,7 +388,8 @@ const _aSu = "authorizationScopes";
379
388
  const _aT = "authType";
380
389
  const _aTu = "authorizationType";
381
390
  const _aU = "authorizerUri";
382
- const _au = "authorization";
391
+ const _au = "audiences";
392
+ const _aut = "authorization";
383
393
  const _b = "body";
384
394
  const _bL = "burstLimit";
385
395
  const _bMT = "binaryMediaTypes";
@@ -403,6 +413,7 @@ const _cIo = "connectionId";
403
413
  const _cKP = "cacheKeyParameters";
404
414
  const _cN = "certificateName";
405
415
  const _cNa = "cacheNamespace";
416
+ const _cNl = "claimName";
406
417
  const _cP = "configurationProperties";
407
418
  const _cPK = "certificatePrivateKey";
408
419
  const _cRA = "cloudwatchRoleArn";
@@ -416,6 +427,7 @@ const _cl = "claims";
416
427
  const _cr = "credentials";
417
428
  const _d = "description";
418
429
  const _dA = "destinationArn";
430
+ const _dAe = "defaultAlgorithms";
419
431
  const _dDN = "distributionDomainName";
420
432
  const _dEAE = "disableExecuteApiEndpoint";
421
433
  const _dHZI = "distributionHostedZoneId";
@@ -437,6 +449,7 @@ const _eC = "endpointConfiguration";
437
449
  const _eD = "expirationDate";
438
450
  const _eDn = "endDate";
439
451
  const _eT = "exportType";
452
+ const _eV = "expectedValues";
440
453
  const _em = "embed";
441
454
  const _en = "enabled";
442
455
  const _f = "format";
@@ -465,9 +478,13 @@ const _iV = "includeValue";
465
478
  const _iVE = "identityValidationExpression";
466
479
  const _iVn = "includeValues";
467
480
  const _id = "ids";
481
+ const _is = "issuers";
482
+ const _iss = "issuer";
468
483
  const _it = "items";
469
484
  const _ite = "item";
485
+ const _jC = "jwtConfiguration";
470
486
  const _jN = "jsonName";
487
+ const _jU = "jwksUri";
471
488
  const _kI = "keyId";
472
489
  const _kT = "keyType";
473
490
  const _l = "location";
@@ -668,8 +685,8 @@ export var ApiStage$ = [3, n0, _AS,
668
685
  ];
669
686
  export var Authorizer$ = [3, n0, _Au,
670
687
  0,
671
- [_i, _n, _ty, _pARN, _aT, _aU, _aC, _iS, _iVE, _aRTIS],
672
- [0, 0, 0, 64 | 0, 0, 0, 0, 0, 0, 1]
688
+ [_i, _n, _ty, _pARN, _aT, _aU, _aC, _iS, _iVE, _aRTIS, _jC],
689
+ [0, 0, 0, 64 | 0, 0, 0, 0, 0, 0, 1, () => JwtConfiguration$]
673
690
  ];
674
691
  export var Authorizers$ = [3, n0, _Aut,
675
692
  0,
@@ -708,8 +725,8 @@ export var CreateApiKeyRequest$ = [3, n0, _CAKR,
708
725
  ];
709
726
  export var CreateAuthorizerRequest$ = [3, n0, _CAR,
710
727
  0,
711
- [_rAI, _n, _ty, _pARN, _aT, _aU, _aC, _iS, _iVE, _aRTIS],
712
- [[0, 1], 0, 0, 64 | 0, 0, 0, 0, 0, 0, 1], 3
728
+ [_rAI, _n, _ty, _pARN, _aT, _aU, _aC, _iS, _iVE, _aRTIS, _jC],
729
+ [[0, 1], 0, 0, 64 | 0, 0, 0, 0, 0, 0, 1, () => JwtConfigurationInput$], 3
713
730
  ];
714
731
  export var CreateBasePathMappingRequest$ = [3, n0, _CBPMR,
715
732
  0,
@@ -1251,6 +1268,31 @@ export var IntegrationResponse$ = [3, n0, _IR,
1251
1268
  [_sC, _sPe, _rP, _rTe, _cH],
1252
1269
  [0, 0, 128 | 0, 128 | 0, 0]
1253
1270
  ];
1271
+ export var JwtAdditionalClaim$ = [3, n0, _JAC,
1272
+ 0,
1273
+ [_cNl, _f, _r, _eV],
1274
+ [0, 0, 2, 64 | 0], 2
1275
+ ];
1276
+ export var JwtConfiguration$ = [3, n0, _JC,
1277
+ 0,
1278
+ [_is, _dAe],
1279
+ [() => ListOfJwtIssuer, 64 | 0]
1280
+ ];
1281
+ export var JwtConfigurationInput$ = [3, n0, _JCI,
1282
+ 0,
1283
+ [_is, _dAe],
1284
+ [() => ListOfJwtIssuerInput, 64 | 0], 2
1285
+ ];
1286
+ export var JwtIssuer$ = [3, n0, _JI,
1287
+ 0,
1288
+ [_iss, _au, _aCd, _jU],
1289
+ [0, 64 | 0, () => ListOfJwtAdditionalClaim, 0]
1290
+ ];
1291
+ export var JwtIssuerInput$ = [3, n0, _JII,
1292
+ 0,
1293
+ [_iss, _au, _aCd],
1294
+ [0, 64 | 0, () => ListOfJwtAdditionalClaim], 2
1295
+ ];
1254
1296
  export var Method$ = [3, n0, _M,
1255
1297
  0,
1256
1298
  [_hM, _aTu, _aIu, _aKR, _rVI, _oN, _rPe, _rMe, _mR, _mI, _aSu],
@@ -1418,12 +1460,12 @@ export var Template$ = [3, n0, _Te,
1418
1460
  ];
1419
1461
  export var TestInvokeAuthorizerRequest$ = [3, n0, _TIAR,
1420
1462
  0,
1421
- [_rAI, _aIu, _h, _mVH, _pWQS, _b, _sV, _aCd],
1463
+ [_rAI, _aIu, _h, _mVH, _pWQS, _b, _sV, _aCdd],
1422
1464
  [[0, 1], [0, 1], 128 | 0, [2, n0, _MOSTL, 0, 0, 64 | 0], 0, 0, 128 | 0, 128 | 0], 2
1423
1465
  ];
1424
1466
  export var TestInvokeAuthorizerResponse$ = [3, n0, _TIARe,
1425
1467
  0,
1426
- [_cSl, _lo, _la, _pIr, _po, _au, _cl],
1468
+ [_cSl, _lo, _la, _pIr, _po, _aut, _cl],
1427
1469
  [1, 0, 1, 0, 0, [2, n0, _MOSTL, 0, 0, 64 | 0], 128 | 0]
1428
1470
  ];
1429
1471
  export var TestInvokeMethodRequest$ = [3, n0, _TIMR,
@@ -1632,6 +1674,16 @@ var ListOfEndpointType = 64 | 0;
1632
1674
  var ListOfGatewayResponse = [1, n0, _LOGR,
1633
1675
  0, () => GatewayResponse$
1634
1676
  ];
1677
+ var ListOfJwtAdditionalClaim = [1, n0, _LOJAC,
1678
+ 0, () => JwtAdditionalClaim$
1679
+ ];
1680
+ var ListOfJwtIssuer = [1, n0, _LOJI,
1681
+ 0, () => JwtIssuer$
1682
+ ];
1683
+ var ListOfJwtIssuerInput = [1, n0, _LOJII,
1684
+ 0, () => JwtIssuerInput$
1685
+ ];
1686
+ var ListOfJwtSigningAlgorithm = 64 | 0;
1635
1687
  var ListOfLong = 64 | 1;
1636
1688
  var ListOfModel = [1, n0, _LOM,
1637
1689
  0, () => Model$
@@ -974,7 +974,7 @@ export interface APIGateway {
974
974
  }
975
975
  /**
976
976
  * <fullname>Amazon API Gateway</fullname>
977
- * <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>
977
+ * <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of Amazon Web Services.</p>
978
978
  * @public
979
979
  */
980
980
  export declare class APIGateway extends APIGatewayClient implements APIGateway {
@@ -294,7 +294,7 @@ export interface APIGatewayClientResolvedConfig extends APIGatewayClientResolved
294
294
  }
295
295
  /**
296
296
  * <fullname>Amazon API Gateway</fullname>
297
- * <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>
297
+ * <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of Amazon Web Services.</p>
298
298
  * @public
299
299
  */
300
300
  export declare class APIGatewayClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, APIGatewayClientResolvedConfig> {
@@ -36,7 +36,7 @@ declare const CreateAuthorizerCommand_base: {
36
36
  * const input = { // CreateAuthorizerRequest
37
37
  * restApiId: "STRING_VALUE", // required
38
38
  * name: "STRING_VALUE", // required
39
- * type: "TOKEN" || "REQUEST" || "COGNITO_USER_POOLS", // required
39
+ * type: "TOKEN" || "REQUEST" || "COGNITO_USER_POOLS" || "JWT", // required
40
40
  * providerARNs: [ // ListOfARNs
41
41
  * "STRING_VALUE",
42
42
  * ],
@@ -46,13 +46,36 @@ declare const CreateAuthorizerCommand_base: {
46
46
  * identitySource: "STRING_VALUE",
47
47
  * identityValidationExpression: "STRING_VALUE",
48
48
  * authorizerResultTtlInSeconds: Number("int"),
49
+ * jwtConfiguration: { // JwtConfigurationInput
50
+ * issuers: [ // ListOfJwtIssuerInput // required
51
+ * { // JwtIssuerInput
52
+ * issuer: "STRING_VALUE", // required
53
+ * audiences: [ // ListOfString // required
54
+ * "STRING_VALUE",
55
+ * ],
56
+ * additionalClaims: [ // ListOfJwtAdditionalClaim
57
+ * { // JwtAdditionalClaim
58
+ * claimName: "STRING_VALUE", // required
59
+ * format: "SINGLE_STRING", // required
60
+ * required: true || false,
61
+ * expectedValues: [
62
+ * "STRING_VALUE",
63
+ * ],
64
+ * },
65
+ * ],
66
+ * },
67
+ * ],
68
+ * defaultAlgorithms: [ // ListOfJwtSigningAlgorithm // required
69
+ * "RS256" || "RS384" || "RS512" || "ES256" || "ES384" || "ES512",
70
+ * ],
71
+ * },
49
72
  * };
50
73
  * const command = new CreateAuthorizerCommand(input);
51
74
  * const response = await client.send(command);
52
75
  * // { // Authorizer
53
76
  * // id: "STRING_VALUE",
54
77
  * // name: "STRING_VALUE",
55
- * // type: "TOKEN" || "REQUEST" || "COGNITO_USER_POOLS",
78
+ * // type: "TOKEN" || "REQUEST" || "COGNITO_USER_POOLS" || "JWT",
56
79
  * // providerARNs: [ // ListOfARNs
57
80
  * // "STRING_VALUE",
58
81
  * // ],
@@ -62,6 +85,30 @@ declare const CreateAuthorizerCommand_base: {
62
85
  * // identitySource: "STRING_VALUE",
63
86
  * // identityValidationExpression: "STRING_VALUE",
64
87
  * // authorizerResultTtlInSeconds: Number("int"),
88
+ * // jwtConfiguration: { // JwtConfiguration
89
+ * // issuers: [ // ListOfJwtIssuer
90
+ * // { // JwtIssuer
91
+ * // issuer: "STRING_VALUE",
92
+ * // audiences: [ // ListOfString
93
+ * // "STRING_VALUE",
94
+ * // ],
95
+ * // additionalClaims: [ // ListOfJwtAdditionalClaim
96
+ * // { // JwtAdditionalClaim
97
+ * // claimName: "STRING_VALUE", // required
98
+ * // format: "SINGLE_STRING", // required
99
+ * // required: true || false,
100
+ * // expectedValues: [
101
+ * // "STRING_VALUE",
102
+ * // ],
103
+ * // },
104
+ * // ],
105
+ * // jwksUri: "STRING_VALUE",
106
+ * // },
107
+ * // ],
108
+ * // defaultAlgorithms: [ // ListOfJwtSigningAlgorithm
109
+ * // "RS256" || "RS384" || "RS512" || "ES256" || "ES384" || "ES512",
110
+ * // ],
111
+ * // },
65
112
  * // };
66
113
  *
67
114
  * ```
@@ -25,7 +25,7 @@ declare const DeleteDomainNameAccessAssociationCommand_base: {
25
25
  };
26
26
  /**
27
27
  * <p> Deletes the DomainNameAccessAssociation resource.</p>
28
- * <p>Only the AWS account that created the DomainNameAccessAssociation resource can delete it. To stop an access association source in another AWS account from accessing your private custom domain name, use the RejectDomainNameAccessAssociation operation.</p>
28
+ * <p>Only the Amazon Web Services account that created the DomainNameAccessAssociation resource can delete it. To stop an access association source in another Amazon Web Services account from accessing your private custom domain name, use the RejectDomainNameAccessAssociation operation.</p>
29
29
  * @example
30
30
  * Use a bare-bones client and the command you need to make an API call.
31
31
  * ```javascript
@@ -42,7 +42,7 @@ declare const GetAuthorizerCommand_base: {
42
42
  * // { // Authorizer
43
43
  * // id: "STRING_VALUE",
44
44
  * // name: "STRING_VALUE",
45
- * // type: "TOKEN" || "REQUEST" || "COGNITO_USER_POOLS",
45
+ * // type: "TOKEN" || "REQUEST" || "COGNITO_USER_POOLS" || "JWT",
46
46
  * // providerARNs: [ // ListOfARNs
47
47
  * // "STRING_VALUE",
48
48
  * // ],
@@ -52,6 +52,30 @@ declare const GetAuthorizerCommand_base: {
52
52
  * // identitySource: "STRING_VALUE",
53
53
  * // identityValidationExpression: "STRING_VALUE",
54
54
  * // authorizerResultTtlInSeconds: Number("int"),
55
+ * // jwtConfiguration: { // JwtConfiguration
56
+ * // issuers: [ // ListOfJwtIssuer
57
+ * // { // JwtIssuer
58
+ * // issuer: "STRING_VALUE",
59
+ * // audiences: [ // ListOfString
60
+ * // "STRING_VALUE",
61
+ * // ],
62
+ * // additionalClaims: [ // ListOfJwtAdditionalClaim
63
+ * // { // JwtAdditionalClaim
64
+ * // claimName: "STRING_VALUE", // required
65
+ * // format: "SINGLE_STRING", // required
66
+ * // required: true || false,
67
+ * // expectedValues: [
68
+ * // "STRING_VALUE",
69
+ * // ],
70
+ * // },
71
+ * // ],
72
+ * // jwksUri: "STRING_VALUE",
73
+ * // },
74
+ * // ],
75
+ * // defaultAlgorithms: [ // ListOfJwtSigningAlgorithm
76
+ * // "RS256" || "RS384" || "RS512" || "ES256" || "ES384" || "ES512",
77
+ * // ],
78
+ * // },
55
79
  * // };
56
80
  *
57
81
  * ```
@@ -45,7 +45,7 @@ declare const GetAuthorizersCommand_base: {
45
45
  * // { // Authorizer
46
46
  * // id: "STRING_VALUE",
47
47
  * // name: "STRING_VALUE",
48
- * // type: "TOKEN" || "REQUEST" || "COGNITO_USER_POOLS",
48
+ * // type: "TOKEN" || "REQUEST" || "COGNITO_USER_POOLS" || "JWT",
49
49
  * // providerARNs: [ // ListOfARNs
50
50
  * // "STRING_VALUE",
51
51
  * // ],
@@ -55,6 +55,30 @@ declare const GetAuthorizersCommand_base: {
55
55
  * // identitySource: "STRING_VALUE",
56
56
  * // identityValidationExpression: "STRING_VALUE",
57
57
  * // authorizerResultTtlInSeconds: Number("int"),
58
+ * // jwtConfiguration: { // JwtConfiguration
59
+ * // issuers: [ // ListOfJwtIssuer
60
+ * // { // JwtIssuer
61
+ * // issuer: "STRING_VALUE",
62
+ * // audiences: [ // ListOfString
63
+ * // "STRING_VALUE",
64
+ * // ],
65
+ * // additionalClaims: [ // ListOfJwtAdditionalClaim
66
+ * // { // JwtAdditionalClaim
67
+ * // claimName: "STRING_VALUE", // required
68
+ * // format: "SINGLE_STRING", // required
69
+ * // required: true || false,
70
+ * // expectedValues: [
71
+ * // "STRING_VALUE",
72
+ * // ],
73
+ * // },
74
+ * // ],
75
+ * // jwksUri: "STRING_VALUE",
76
+ * // },
77
+ * // ],
78
+ * // defaultAlgorithms: [ // ListOfJwtSigningAlgorithm
79
+ * // "RS256" || "RS384" || "RS512" || "ES256" || "ES384" || "ES512",
80
+ * // ],
81
+ * // },
58
82
  * // },
59
83
  * // ],
60
84
  * // position: "STRING_VALUE",
@@ -25,7 +25,7 @@ declare const RejectDomainNameAccessAssociationCommand_base: {
25
25
  };
26
26
  /**
27
27
  * <p>Rejects a domain name access association with a private custom domain name.</p>
28
- * <p>To reject a domain name access association with an access association source in another AWS account, use this operation. To remove a domain name access association with an access association source in your own account, use the DeleteDomainNameAccessAssociation operation.</p>
28
+ * <p>To reject a domain name access association with an access association source in another Amazon Web Services account, use this operation. To remove a domain name access association with an access association source in your own account, use the DeleteDomainNameAccessAssociation operation.</p>
29
29
  * @example
30
30
  * Use a bare-bones client and the command you need to make an API call.
31
31
  * ```javascript
@@ -24,7 +24,7 @@ declare const UpdateAuthorizerCommand_base: {
24
24
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
25
  };
26
26
  /**
27
- * <p>Updates an existing Authorizer resource.</p>
27
+ * <p>Updates an existing Authorizer resource. For a <code>JWT</code> authorizer, the only JWT patch operation is <code>replace</code> on the path <code>/jwtConfiguration</code>. Its value is the complete configuration as a JSON string in the <code>JwtConfigurationInput</code> shape. This replaces the entire configuration; nothing from the previous configuration is retained. A <code>replace</code> operation on the path <code>/type</code> is supported in both directions.</p>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
30
30
  * ```javascript
@@ -50,7 +50,7 @@ declare const UpdateAuthorizerCommand_base: {
50
50
  * // { // Authorizer
51
51
  * // id: "STRING_VALUE",
52
52
  * // name: "STRING_VALUE",
53
- * // type: "TOKEN" || "REQUEST" || "COGNITO_USER_POOLS",
53
+ * // type: "TOKEN" || "REQUEST" || "COGNITO_USER_POOLS" || "JWT",
54
54
  * // providerARNs: [ // ListOfARNs
55
55
  * // "STRING_VALUE",
56
56
  * // ],
@@ -60,6 +60,30 @@ declare const UpdateAuthorizerCommand_base: {
60
60
  * // identitySource: "STRING_VALUE",
61
61
  * // identityValidationExpression: "STRING_VALUE",
62
62
  * // authorizerResultTtlInSeconds: Number("int"),
63
+ * // jwtConfiguration: { // JwtConfiguration
64
+ * // issuers: [ // ListOfJwtIssuer
65
+ * // { // JwtIssuer
66
+ * // issuer: "STRING_VALUE",
67
+ * // audiences: [ // ListOfString
68
+ * // "STRING_VALUE",
69
+ * // ],
70
+ * // additionalClaims: [ // ListOfJwtAdditionalClaim
71
+ * // { // JwtAdditionalClaim
72
+ * // claimName: "STRING_VALUE", // required
73
+ * // format: "SINGLE_STRING", // required
74
+ * // required: true || false,
75
+ * // expectedValues: [
76
+ * // "STRING_VALUE",
77
+ * // ],
78
+ * // },
79
+ * // ],
80
+ * // jwksUri: "STRING_VALUE",
81
+ * // },
82
+ * // ],
83
+ * // defaultAlgorithms: [ // ListOfJwtSigningAlgorithm
84
+ * // "RS256" || "RS384" || "RS512" || "ES256" || "ES384" || "ES512",
85
+ * // ],
86
+ * // },
63
87
  * // };
64
88
  *
65
89
  * ```
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * <fullname>Amazon API Gateway</fullname>
3
- * <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>
3
+ * <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of Amazon Web Services.</p>
4
4
  *
5
5
  * @packageDocumentation
6
6
  */
@@ -46,12 +46,40 @@ export declare const ApiStatus: {
46
46
  * @public
47
47
  */
48
48
  export type ApiStatus = (typeof ApiStatus)[keyof typeof ApiStatus];
49
+ /**
50
+ * @public
51
+ * @enum
52
+ */
53
+ export declare const JwtSigningAlgorithm: {
54
+ readonly ES256: "ES256";
55
+ readonly ES384: "ES384";
56
+ readonly ES512: "ES512";
57
+ readonly RS256: "RS256";
58
+ readonly RS384: "RS384";
59
+ readonly RS512: "RS512";
60
+ };
61
+ /**
62
+ * @public
63
+ */
64
+ export type JwtSigningAlgorithm = (typeof JwtSigningAlgorithm)[keyof typeof JwtSigningAlgorithm];
65
+ /**
66
+ * @public
67
+ * @enum
68
+ */
69
+ export declare const JwtClaimFormat: {
70
+ readonly SINGLE_STRING: "SINGLE_STRING";
71
+ };
72
+ /**
73
+ * @public
74
+ */
75
+ export type JwtClaimFormat = (typeof JwtClaimFormat)[keyof typeof JwtClaimFormat];
49
76
  /**
50
77
  * @public
51
78
  * @enum
52
79
  */
53
80
  export declare const AuthorizerType: {
54
81
  readonly COGNITO_USER_POOLS: "COGNITO_USER_POOLS";
82
+ readonly JWT: "JWT";
55
83
  readonly REQUEST: "REQUEST";
56
84
  readonly TOKEN: "TOKEN";
57
85
  };
@@ -1,4 +1,4 @@
1
- import type { AccessAssociationSourceType, ApiKeysFormat, ApiKeySourceType, ApiStatus, AuthorizerType, CacheClusterSize, CacheClusterStatus, ConnectionType, ContentHandlingStrategy, DocumentationPartType, DomainNameStatus, EndpointAccessMode, EndpointType, GatewayResponseType, IntegrationType, IpAddressType, LocationStatusType, Op, PutMode, QuotaPeriodType, ResourceOwner, ResponseTransferMode, RoutingMode, SecurityPolicy, UnauthorizedCacheControlHeaderStrategy, VpcLinkStatus } from "./enums";
1
+ import type { AccessAssociationSourceType, ApiKeysFormat, ApiKeySourceType, ApiStatus, AuthorizerType, CacheClusterSize, CacheClusterStatus, ConnectionType, ContentHandlingStrategy, DocumentationPartType, DomainNameStatus, EndpointAccessMode, EndpointType, GatewayResponseType, IntegrationType, IpAddressType, JwtClaimFormat, JwtSigningAlgorithm, LocationStatusType, Op, PutMode, QuotaPeriodType, ResourceOwner, ResponseTransferMode, RoutingMode, SecurityPolicy, UnauthorizedCacheControlHeaderStrategy, VpcLinkStatus } from "./enums";
2
2
  /**
3
3
  * <p>Access log settings, including the access log format and access log destination ARN.</p>
4
4
  * @public
@@ -32,7 +32,7 @@ export interface ThrottleSettings {
32
32
  rateLimit?: number | undefined;
33
33
  }
34
34
  /**
35
- * <p>Represents an AWS account that is associated with API Gateway.</p>
35
+ * <p>Represents an Amazon Web Services account that is associated with API Gateway.</p>
36
36
  * @public
37
37
  */
38
38
  export interface Account {
@@ -171,6 +171,74 @@ export interface ApiStage {
171
171
  */
172
172
  throttle?: Record<string, ThrottleSettings> | undefined;
173
173
  }
174
+ /**
175
+ * <p>An additional claim rule for an issuer.</p>
176
+ * @public
177
+ */
178
+ export interface JwtAdditionalClaim {
179
+ /**
180
+ * <p>The name of the claim to check. The value cannot be empty and cannot be <code>iss</code>, <code>aud</code>, <code>exp</code>, <code>nbf</code>, <code>iat</code>, <code>scope</code>, or <code>scp</code>.</p>
181
+ * @public
182
+ */
183
+ claimName: string | undefined;
184
+ /**
185
+ * <p>The format of the claim value. The only valid value is <code>SINGLE_STRING</code>.</p>
186
+ * @public
187
+ */
188
+ format: JwtClaimFormat | undefined;
189
+ /**
190
+ * <p>Specifies whether the claim must be present in the token. Defaults to <code>false</code>. When <code>true</code>, the token must contain the claim.</p>
191
+ * @public
192
+ */
193
+ required?: boolean | undefined;
194
+ /**
195
+ * <p>The accepted value for the claim. The value cannot be empty. When a value is specified, the claim must match it exactly, and the match is case-sensitive. When no value is specified, the claim only has to be present.</p>
196
+ * @public
197
+ */
198
+ expectedValues?: string[] | undefined;
199
+ }
200
+ /**
201
+ * <p>A trusted issuer in the returned JWT configuration.</p>
202
+ * @public
203
+ */
204
+ export interface JwtIssuer {
205
+ /**
206
+ * <p>The OpenID Connect (OIDC) issuer URL.</p>
207
+ * @public
208
+ */
209
+ issuer?: string | undefined;
210
+ /**
211
+ * <p>The audiences that the issuer can issue tokens for.</p>
212
+ * @public
213
+ */
214
+ audiences?: string[] | undefined;
215
+ /**
216
+ * <p>The additional claim rules configured for this issuer.</p>
217
+ * @public
218
+ */
219
+ additionalClaims?: JwtAdditionalClaim[] | undefined;
220
+ /**
221
+ * <p>The JSON Web Key Set (JWKS) URI that API Gateway resolved from the issuer's OpenID Connect discovery document. This value is read-only and cannot be set.</p>
222
+ * @public
223
+ */
224
+ jwksUri?: string | undefined;
225
+ }
226
+ /**
227
+ * <p>The JWT configuration returned for a JWT authorizer.</p>
228
+ * @public
229
+ */
230
+ export interface JwtConfiguration {
231
+ /**
232
+ * <p>The trusted issuers configured for the authorizer.</p>
233
+ * @public
234
+ */
235
+ issuers?: JwtIssuer[] | undefined;
236
+ /**
237
+ * <p>The signing algorithms configured for the authorizer.</p>
238
+ * @public
239
+ */
240
+ defaultAlgorithms?: JwtSigningAlgorithm[] | undefined;
241
+ }
174
242
  /**
175
243
  * <p>Represents an authorization layer for methods. If enabled on a method, API Gateway will activate the authorizer when a client calls the method.</p>
176
244
  * @public
@@ -187,12 +255,12 @@ export interface Authorizer {
187
255
  */
188
256
  name?: string | undefined;
189
257
  /**
190
- * <p>The authorizer type. Valid values are <code>TOKEN</code> for a Lambda function using a single authorization token submitted in a custom header, <code>REQUEST</code> for a Lambda function using incoming request parameters, and <code>COGNITO_USER_POOLS</code> for using an Amazon Cognito user pool.</p>
258
+ * <p>The authorizer type. Valid values are <code>TOKEN</code> for a Lambda function using a single authorization token submitted in a custom header, <code>REQUEST</code> for a Lambda function using incoming request parameters, <code>COGNITO_USER_POOLS</code> for using an Amazon Cognito user pool, and <code>JWT</code> for using a native JWT authorizer with the trusted issuers, audiences, and signing algorithms that you declare.</p>
191
259
  * @public
192
260
  */
193
261
  type?: AuthorizerType | undefined;
194
262
  /**
195
- * <p>A list of the Amazon Cognito user pool ARNs for the <code>COGNITO_USER_POOLS</code> authorizer. Each element is of this format: <code>arn:aws:cognito-idp:\{region\}:\{account_id\}:userpool/\{user_pool_id\}</code>. For a <code>TOKEN</code> or <code>REQUEST</code> authorizer, this is not defined. </p>
263
+ * <p>A list of the Amazon Cognito user pool ARNs for the <code>COGNITO_USER_POOLS</code> authorizer. Each element is of this format: <code>arn:aws:cognito-idp:\{region\}:\{account_id\}:userpool/\{user_pool_id\}</code>. For a <code>TOKEN</code> or <code>REQUEST</code> authorizer, this is not defined. This property is not supported for <code>JWT</code> authorizers. </p>
196
264
  * @public
197
265
  */
198
266
  providerARNs?: string[] | undefined;
@@ -202,12 +270,12 @@ export interface Authorizer {
202
270
  */
203
271
  authType?: string | undefined;
204
272
  /**
205
- * <p>Specifies the authorizer's Uniform Resource Identifier (URI). For <code>TOKEN</code> or <code>REQUEST</code> authorizers, this must be a well-formed Lambda function URI, for example, <code>arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:\{account_id\}:function:\{lambda_function_name\}/invocations</code>. In general, the URI has this form <code>arn:aws:apigateway:\{region\}:lambda:path/\{service_api\}</code>, where <code>\{region\}</code> is the same as the region hosting the Lambda function, <code>path</code> indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial <code>/</code>. For Lambda functions, this is usually of the form <code>/2015-03-31/functions/[FunctionARN]/invocations</code>.</p>
273
+ * <p>Specifies the authorizer's Uniform Resource Identifier (URI). For <code>TOKEN</code> or <code>REQUEST</code> authorizers, this must be a well-formed Lambda function URI, for example, <code>arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:\{account_id\}:function:\{lambda_function_name\}/invocations</code>. In general, the URI has this form <code>arn:aws:apigateway:\{region\}:lambda:path/\{service_api\}</code>, where <code>\{region\}</code> is the same as the region hosting the Lambda function, <code>path</code> indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial <code>/</code>. For Lambda functions, this is usually of the form <code>/2015-03-31/functions/[FunctionARN]/invocations</code>. This property is not supported for <code>JWT</code> authorizers.</p>
206
274
  * @public
207
275
  */
208
276
  authorizerUri?: string | undefined;
209
277
  /**
210
- * <p>Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.</p>
278
+ * <p>Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null. This property is not supported for <code>JWT</code> authorizers.</p>
211
279
  * @public
212
280
  */
213
281
  authorizerCredentials?: string | undefined;
@@ -226,20 +294,29 @@ export interface Authorizer {
226
294
  * true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401
227
295
  * Unauthorized response without calling the Lambda function. The valid value is a string of
228
296
  * comma-separated mapping expressions of the specified request parameters. When the
229
- * authorization caching is not enabled, this property is optional. </p>
297
+ * authorization caching is not enabled, this property is optional. For a <code>JWT</code>
298
+ * authorizer, this is required and must be a single request-header mapping expression,
299
+ * <code>method.request.header.<name></code>, for example,
300
+ * <code>method.request.header.Authorization</code>. Query string parameters are not supported,
301
+ * and there is no default. </p>
230
302
  * @public
231
303
  */
232
304
  identitySource?: string | undefined;
233
305
  /**
234
- * <p>A validation expression for the incoming identity token. For <code>TOKEN</code> authorizers, this value is a regular expression. For <code>COGNITO_USER_POOLS</code> authorizers, API Gateway will match the <code>aud</code> field of the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function when there is a match. Otherwise, it will return a 401 Unauthorized response without calling the Lambda function. The validation expression does not apply to the <code>REQUEST</code> authorizer.</p>
306
+ * <p>A validation expression for the incoming identity token. For <code>TOKEN</code> authorizers, this value is a regular expression. For <code>COGNITO_USER_POOLS</code> authorizers, API Gateway will match the <code>aud</code> field of the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function when there is a match. Otherwise, it will return a 401 Unauthorized response without calling the Lambda function. The validation expression does not apply to the <code>REQUEST</code> or <code>JWT</code> authorizer.</p>
235
307
  * @public
236
308
  */
237
309
  identityValidationExpression?: string | undefined;
238
310
  /**
239
- * <p>The TTL in seconds of cached authorizer results. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway will cache authorizer responses. If this field is not set, the default value is 300. The maximum value is 3600, or 1 hour.</p>
311
+ * <p>The TTL in seconds of cached authorizer results. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway will cache authorizer responses. If this field is not set, the default value is 300. The maximum value is 3600, or 1 hour. This property is not supported for <code>JWT</code> authorizers.</p>
240
312
  * @public
241
313
  */
242
314
  authorizerResultTtlInSeconds?: number | undefined;
315
+ /**
316
+ * <p>The configuration returned for a JWT authorizer. This field is present only when <code>type</code> is <code>JWT</code>.</p>
317
+ * @public
318
+ */
319
+ jwtConfiguration?: JwtConfiguration | undefined;
243
320
  }
244
321
  /**
245
322
  * <p>Represents a collection of Authorizer resources.</p>
@@ -319,6 +396,43 @@ export interface CreateApiKeyRequest {
319
396
  */
320
397
  tags?: Record<string, string> | undefined;
321
398
  }
399
+ /**
400
+ * <p>A trusted issuer in the JWT configuration.</p>
401
+ * @public
402
+ */
403
+ export interface JwtIssuerInput {
404
+ /**
405
+ * <p>The OpenID Connect (OIDC) issuer URL. The value must be an absolute <code>https</code> URL that includes a host and has no user information, query, or fragment. It must exactly match the <code>iss</code> claim of the token, and the issuer's OIDC discovery document must name this exact issuer.</p>
406
+ * @public
407
+ */
408
+ issuer: string | undefined;
409
+ /**
410
+ * <p>The audiences that the issuer can issue tokens for. None can be empty. The token's <code>aud</code> claim must contain at least one of these values.</p>
411
+ * @public
412
+ */
413
+ audiences: string[] | undefined;
414
+ /**
415
+ * <p>The additional claim rules for this issuer. Claim names must be unique within the issuer.</p>
416
+ * @public
417
+ */
418
+ additionalClaims?: JwtAdditionalClaim[] | undefined;
419
+ }
420
+ /**
421
+ * <p>The JWT configuration supplied for a JWT authorizer.</p>
422
+ * @public
423
+ */
424
+ export interface JwtConfigurationInput {
425
+ /**
426
+ * <p>The issuers that the authorizer trusts. Issuer URLs must be unique.</p>
427
+ * @public
428
+ */
429
+ issuers: JwtIssuerInput[] | undefined;
430
+ /**
431
+ * <p>The signing algorithms that the authorizer accepts, applied to every issuer. Valid values are <code>RS256</code>, <code>RS384</code>, <code>RS512</code>, <code>ES256</code>, <code>ES384</code>, and <code>ES512</code>.</p>
432
+ * @public
433
+ */
434
+ defaultAlgorithms: JwtSigningAlgorithm[] | undefined;
435
+ }
322
436
  /**
323
437
  * <p>Request to add a new Authorizer to an existing RestApi resource.</p>
324
438
  * @public
@@ -335,12 +449,12 @@ export interface CreateAuthorizerRequest {
335
449
  */
336
450
  name: string | undefined;
337
451
  /**
338
- * <p>The authorizer type. Valid values are <code>TOKEN</code> for a Lambda function using a single authorization token submitted in a custom header, <code>REQUEST</code> for a Lambda function using incoming request parameters, and <code>COGNITO_USER_POOLS</code> for using an Amazon Cognito user pool.</p>
452
+ * <p>The authorizer type. Valid values are <code>TOKEN</code> for a Lambda function using a single authorization token submitted in a custom header, <code>REQUEST</code> for a Lambda function using incoming request parameters, <code>COGNITO_USER_POOLS</code> for using an Amazon Cognito user pool, and <code>JWT</code> for using a native JWT authorizer with the trusted issuers, audiences, and signing algorithms that you declare.</p>
339
453
  * @public
340
454
  */
341
455
  type: AuthorizerType | undefined;
342
456
  /**
343
- * <p>A list of the Amazon Cognito user pool ARNs for the <code>COGNITO_USER_POOLS</code> authorizer. Each element is of this format: <code>arn:aws:cognito-idp:\{region\}:\{account_id\}:userpool/\{user_pool_id\}</code>. For a <code>TOKEN</code> or <code>REQUEST</code> authorizer, this is not defined. </p>
457
+ * <p>A list of the Amazon Cognito user pool ARNs for the <code>COGNITO_USER_POOLS</code> authorizer. Each element is of this format: <code>arn:aws:cognito-idp:\{region\}:\{account_id\}:userpool/\{user_pool_id\}</code>. For a <code>TOKEN</code> or <code>REQUEST</code> authorizer, this is not defined. This property is not supported for <code>JWT</code> authorizers. </p>
344
458
  * @public
345
459
  */
346
460
  providerARNs?: string[] | undefined;
@@ -350,12 +464,12 @@ export interface CreateAuthorizerRequest {
350
464
  */
351
465
  authType?: string | undefined;
352
466
  /**
353
- * <p>Specifies the authorizer's Uniform Resource Identifier (URI). For <code>TOKEN</code> or <code>REQUEST</code> authorizers, this must be a well-formed Lambda function URI, for example, <code>arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:\{account_id\}:function:\{lambda_function_name\}/invocations</code>. In general, the URI has this form <code>arn:aws:apigateway:\{region\}:lambda:path/\{service_api\}</code>, where <code>\{region\}</code> is the same as the region hosting the Lambda function, <code>path</code> indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial <code>/</code>. For Lambda functions, this is usually of the form <code>/2015-03-31/functions/[FunctionARN]/invocations</code>.</p>
467
+ * <p>Specifies the authorizer's Uniform Resource Identifier (URI). For <code>TOKEN</code> or <code>REQUEST</code> authorizers, this must be a well-formed Lambda function URI, for example, <code>arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:\{account_id\}:function:\{lambda_function_name\}/invocations</code>. In general, the URI has this form <code>arn:aws:apigateway:\{region\}:lambda:path/\{service_api\}</code>, where <code>\{region\}</code> is the same as the region hosting the Lambda function, <code>path</code> indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial <code>/</code>. For Lambda functions, this is usually of the form <code>/2015-03-31/functions/[FunctionARN]/invocations</code>. This property is not supported for <code>JWT</code> authorizers.</p>
354
468
  * @public
355
469
  */
356
470
  authorizerUri?: string | undefined;
357
471
  /**
358
- * <p>Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.</p>
472
+ * <p>Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null. This property is not supported for <code>JWT</code> authorizers.</p>
359
473
  * @public
360
474
  */
361
475
  authorizerCredentials?: string | undefined;
@@ -376,20 +490,28 @@ export interface CreateAuthorizerRequest {
376
490
  * function, otherwise, it returns a 401 Unauthorized response without calling the Lambda
377
491
  * function. The valid value is a string of comma-separated mapping expressions of the specified
378
492
  * request parameters. When the authorization caching is not enabled, this property is
379
- * optional.</p>
493
+ * optional. For a <code>JWT</code> authorizer, this is required and must be a single
494
+ * request-header mapping expression, <code>method.request.header.<name></code>, for
495
+ * example, <code>method.request.header.Authorization</code>. Query string parameters are not
496
+ * supported, and there is no default.</p>
380
497
  * @public
381
498
  */
382
499
  identitySource?: string | undefined;
383
500
  /**
384
- * <p>A validation expression for the incoming identity token. For <code>TOKEN</code> authorizers, this value is a regular expression. For <code>COGNITO_USER_POOLS</code> authorizers, API Gateway will match the <code>aud</code> field of the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function when there is a match. Otherwise, it will return a 401 Unauthorized response without calling the Lambda function. The validation expression does not apply to the <code>REQUEST</code> authorizer.</p>
501
+ * <p>A validation expression for the incoming identity token. For <code>TOKEN</code> authorizers, this value is a regular expression. For <code>COGNITO_USER_POOLS</code> authorizers, API Gateway will match the <code>aud</code> field of the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function when there is a match. Otherwise, it will return a 401 Unauthorized response without calling the Lambda function. The validation expression does not apply to the <code>REQUEST</code> or <code>JWT</code> authorizer.</p>
385
502
  * @public
386
503
  */
387
504
  identityValidationExpression?: string | undefined;
388
505
  /**
389
- * <p>The TTL in seconds of cached authorizer results. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway will cache authorizer responses. If this field is not set, the default value is 300. The maximum value is 3600, or 1 hour.</p>
506
+ * <p>The TTL in seconds of cached authorizer results. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway will cache authorizer responses. If this field is not set, the default value is 300. The maximum value is 3600, or 1 hour. This property is not supported for <code>JWT</code> authorizers.</p>
390
507
  * @public
391
508
  */
392
509
  authorizerResultTtlInSeconds?: number | undefined;
510
+ /**
511
+ * <p>The configuration for a JWT authorizer. Required for JWT authorizers.</p>
512
+ * @public
513
+ */
514
+ jwtConfiguration?: JwtConfigurationInput | undefined;
393
515
  }
394
516
  /**
395
517
  * <p>Represents the base path that callers of the API must provide as part of the URL after the domain name.</p>
@@ -523,7 +645,7 @@ export interface CreateDeploymentRequest {
523
645
  */
524
646
  export interface MethodSnapshot {
525
647
  /**
526
- * <p>The method's authorization type. Valid values are <code>NONE</code> for open access, <code>AWS_IAM</code> for using AWS IAM permissions, <code>CUSTOM</code> for using a custom authorizer, or <code>COGNITO_USER_POOLS</code> for using a Cognito user pool.</p>
648
+ * <p>The method's authorization type. Valid values are <code>NONE</code> for open access, <code>AWS_IAM</code> for using Amazon Web Services IAM permissions, <code>CUSTOM</code> for using a custom authorizer, or <code>COGNITO_USER_POOLS</code> for using a Cognito user pool.</p>
527
649
  * @public
528
650
  */
529
651
  authorizationType?: string | undefined;
@@ -892,7 +1014,7 @@ export interface DomainName {
892
1014
  */
893
1015
  regionalDomainName?: string | undefined;
894
1016
  /**
895
- * <p>The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway. </p>
1017
+ * <p>The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and Amazon Web Services Regions and Endpoints for API Gateway. </p>
896
1018
  * @public
897
1019
  */
898
1020
  regionalHostedZoneId?: string | undefined;
@@ -912,7 +1034,7 @@ export interface DomainName {
912
1034
  */
913
1035
  distributionDomainName?: string | undefined;
914
1036
  /**
915
- * <p>The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is <code>Z2FDTNDATAQYW2</code> for all the regions. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway. </p>
1037
+ * <p>The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is <code>Z2FDTNDATAQYW2</code> for all the regions. For more information, see Set up a Regional Custom Domain Name and Amazon Web Services Regions and Endpoints for API Gateway. </p>
916
1038
  * @public
917
1039
  */
918
1040
  distributionHostedZoneId?: string | undefined;
@@ -1286,7 +1408,7 @@ export interface Integration {
1286
1408
  */
1287
1409
  connectionId?: string | undefined;
1288
1410
  /**
1289
- * <p>Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string <code>arn:aws:iam::\*:user/\*</code>. To use resource-based permissions on supported Amazon Web Services services, specify null.</p>
1411
+ * <p>Specifies the credentials required for the integration, if any. For Amazon Web Services integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string <code>arn:aws:iam::\*:user/\*</code>. To use resource-based permissions on supported Amazon Web Services services, specify null.</p>
1290
1412
  * @public
1291
1413
  */
1292
1414
  credentials?: string | undefined;
@@ -1359,7 +1481,7 @@ export interface Integration {
1359
1481
  responseTransferMode?: ResponseTransferMode | undefined;
1360
1482
  /**
1361
1483
  * <p>
1362
- * The ALB or NLB listener to send the request to.
1484
+ * The ALB or NLB ARN to send the request to.
1363
1485
  * </p>
1364
1486
  * @public
1365
1487
  */
@@ -1404,7 +1526,7 @@ export interface Method {
1404
1526
  */
1405
1527
  httpMethod?: string | undefined;
1406
1528
  /**
1407
- * <p>The method's authorization type. Valid values are <code>NONE</code> for open access, <code>AWS_IAM</code> for using AWS IAM permissions, <code>CUSTOM</code> for using a custom authorizer, or <code>COGNITO_USER_POOLS</code> for using a Cognito user pool.</p>
1529
+ * <p>The method's authorization type. Valid values are <code>NONE</code> for open access, <code>AWS_IAM</code> for using Amazon Web Services IAM permissions, <code>CUSTOM</code> for using a custom authorizer, <code>COGNITO_USER_POOLS</code> for using a Cognito user pool, or <code>JWT</code> for using a JWT authorizer.</p>
1408
1530
  * @public
1409
1531
  */
1410
1532
  authorizationType?: string | undefined;
@@ -1449,7 +1571,7 @@ export interface Method {
1449
1571
  */
1450
1572
  methodIntegration?: Integration | undefined;
1451
1573
  /**
1452
- * <p>A list of authorization scopes configured on the method. The scopes are used with a <code>COGNITO_USER_POOLS</code> authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.</p>
1574
+ * <p>A list of authorization scopes configured on the method. The scopes are used with a <code>COGNITO_USER_POOLS</code> authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes. The scopes are also used with a <code>JWT</code> authorizer. When scopes are configured, the <code>scope</code> (or <code>scp</code>) claim of the token must contain at least one of the configured scopes.</p>
1453
1575
  * @public
1454
1576
  */
1455
1577
  authorizationScopes?: string[] | undefined;
@@ -3014,7 +3136,7 @@ export interface GetDomainNameAccessAssociationsRequest {
3014
3136
  limit?: number | undefined;
3015
3137
  /**
3016
3138
  * <p> The owner of the domain name access association. Use <code>SELF</code> to only list the domain name access associations owned by your own account.
3017
- * Use <code>OTHER_ACCOUNTS</code> to list the domain name access associations with your private custom domain names that are owned by other AWS
3139
+ * Use <code>OTHER_ACCOUNTS</code> to list the domain name access associations with your private custom domain names that are owned by other Amazon Web Services
3018
3140
  * accounts.</p>
3019
3141
  * @public
3020
3142
  */
@@ -3909,7 +4031,7 @@ export interface GetUsagePlansRequest {
3909
4031
  limit?: number | undefined;
3910
4032
  }
3911
4033
  /**
3912
- * <p>Represents a collection of usage plans for an AWS account.</p>
4034
+ * <p>Represents a collection of usage plans for an Amazon Web Services account.</p>
3913
4035
  * @public
3914
4036
  */
3915
4037
  export interface UsagePlans {
@@ -4202,7 +4324,7 @@ export interface PutIntegrationRequest {
4202
4324
  responseTransferMode?: ResponseTransferMode | undefined;
4203
4325
  /**
4204
4326
  * <p>
4205
- * The ALB or NLB listener to send the request to.
4327
+ * The ALB or NLB ARN to send the request to.
4206
4328
  * </p>
4207
4329
  * @public
4208
4330
  */
@@ -4277,7 +4399,7 @@ export interface PutMethodRequest {
4277
4399
  */
4278
4400
  httpMethod: string | undefined;
4279
4401
  /**
4280
- * <p>The method's authorization type. Valid values are <code>NONE</code> for open access, <code>AWS_IAM</code> for using AWS IAM permissions, <code>CUSTOM</code> for using a custom authorizer, or <code>COGNITO_USER_POOLS</code> for using a Cognito user pool.</p>
4402
+ * <p>The method's authorization type. Valid values are <code>NONE</code> for open access, <code>AWS_IAM</code> for using Amazon Web Services IAM permissions, <code>CUSTOM</code> for using a custom authorizer, <code>COGNITO_USER_POOLS</code> for using a Cognito user pool, or <code>JWT</code> for using a JWT authorizer.</p>
4281
4403
  * @public
4282
4404
  */
4283
4405
  authorizationType: string | undefined;
@@ -4312,7 +4434,7 @@ export interface PutMethodRequest {
4312
4434
  */
4313
4435
  requestValidatorId?: string | undefined;
4314
4436
  /**
4315
- * <p>A list of authorization scopes configured on the method. The scopes are used with a <code>COGNITO_USER_POOLS</code> authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.</p>
4437
+ * <p>A list of authorization scopes configured on the method. The scopes are used with a <code>COGNITO_USER_POOLS</code> authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes. The scopes are also used with a <code>JWT</code> authorizer. When scopes are configured, the <code>scope</code> (or <code>scp</code>) claim of the token must contain at least one of the configured scopes.</p>
4316
4438
  * @public
4317
4439
  */
4318
4440
  authorizationScopes?: string[] | undefined;
@@ -4376,7 +4498,7 @@ export interface PutRestApiRequest {
4376
4498
  */
4377
4499
  failOnWarnings?: boolean | undefined;
4378
4500
  /**
4379
- * <p>Custom header parameters as part of the request. For example, to exclude DocumentationParts from an imported API, set <code>ignore=documentation</code> as a <code>parameters</code> value, as in the AWS CLI command of <code>aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'</code>.</p>
4501
+ * <p>Custom header parameters as part of the request. For example, to exclude DocumentationParts from an imported API, set <code>ignore=documentation</code> as a <code>parameters</code> value, as in the CLI command of <code>aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'</code>.</p>
4380
4502
  * @public
4381
4503
  */
4382
4504
  parameters?: Record<string, string> | undefined;
@@ -4636,7 +4758,7 @@ export interface PatchOperation {
4636
4758
  path?: string | undefined;
4637
4759
  /**
4638
4760
  * <p>The new target value of the update operation. It is applicable for the add or replace
4639
- * operation. When using AWS CLI to update a property of a JSON value, enclose the JSON
4761
+ * operation. When using CLI to update a property of a JSON value, enclose the JSON
4640
4762
  * object with a pair of single quotes in a Linux shell, e.g., '\{"a": ...\}'.</p>
4641
4763
  * @public
4642
4764
  */
@@ -137,6 +137,11 @@ export declare var ImportDocumentationPartsRequest$: StaticStructureSchema;
137
137
  export declare var ImportRestApiRequest$: StaticStructureSchema;
138
138
  export declare var Integration$: StaticStructureSchema;
139
139
  export declare var IntegrationResponse$: StaticStructureSchema;
140
+ export declare var JwtAdditionalClaim$: StaticStructureSchema;
141
+ export declare var JwtConfiguration$: StaticStructureSchema;
142
+ export declare var JwtConfigurationInput$: StaticStructureSchema;
143
+ export declare var JwtIssuer$: StaticStructureSchema;
144
+ export declare var JwtIssuerInput$: StaticStructureSchema;
140
145
  export declare var Method$: StaticStructureSchema;
141
146
  export declare var MethodResponse$: StaticStructureSchema;
142
147
  export declare var MethodSetting$: StaticStructureSchema;
@@ -19,8 +19,22 @@ export declare const ApiStatus: {
19
19
  readonly UPDATING: "UPDATING";
20
20
  };
21
21
  export type ApiStatus = (typeof ApiStatus)[keyof typeof ApiStatus];
22
+ export declare const JwtSigningAlgorithm: {
23
+ readonly ES256: "ES256";
24
+ readonly ES384: "ES384";
25
+ readonly ES512: "ES512";
26
+ readonly RS256: "RS256";
27
+ readonly RS384: "RS384";
28
+ readonly RS512: "RS512";
29
+ };
30
+ export type JwtSigningAlgorithm = (typeof JwtSigningAlgorithm)[keyof typeof JwtSigningAlgorithm];
31
+ export declare const JwtClaimFormat: {
32
+ readonly SINGLE_STRING: "SINGLE_STRING";
33
+ };
34
+ export type JwtClaimFormat = (typeof JwtClaimFormat)[keyof typeof JwtClaimFormat];
22
35
  export declare const AuthorizerType: {
23
36
  readonly COGNITO_USER_POOLS: "COGNITO_USER_POOLS";
37
+ readonly JWT: "JWT";
24
38
  readonly REQUEST: "REQUEST";
25
39
  readonly TOKEN: "TOKEN";
26
40
  };
@@ -15,6 +15,8 @@ import {
15
15
  GatewayResponseType,
16
16
  IntegrationType,
17
17
  IpAddressType,
18
+ JwtClaimFormat,
19
+ JwtSigningAlgorithm,
18
20
  LocationStatusType,
19
21
  Op,
20
22
  PutMode,
@@ -66,6 +68,22 @@ export interface ApiStage {
66
68
  stage?: string | undefined;
67
69
  throttle?: Record<string, ThrottleSettings> | undefined;
68
70
  }
71
+ export interface JwtAdditionalClaim {
72
+ claimName: string | undefined;
73
+ format: JwtClaimFormat | undefined;
74
+ required?: boolean | undefined;
75
+ expectedValues?: string[] | undefined;
76
+ }
77
+ export interface JwtIssuer {
78
+ issuer?: string | undefined;
79
+ audiences?: string[] | undefined;
80
+ additionalClaims?: JwtAdditionalClaim[] | undefined;
81
+ jwksUri?: string | undefined;
82
+ }
83
+ export interface JwtConfiguration {
84
+ issuers?: JwtIssuer[] | undefined;
85
+ defaultAlgorithms?: JwtSigningAlgorithm[] | undefined;
86
+ }
69
87
  export interface Authorizer {
70
88
  id?: string | undefined;
71
89
  name?: string | undefined;
@@ -77,6 +95,7 @@ export interface Authorizer {
77
95
  identitySource?: string | undefined;
78
96
  identityValidationExpression?: string | undefined;
79
97
  authorizerResultTtlInSeconds?: number | undefined;
98
+ jwtConfiguration?: JwtConfiguration | undefined;
80
99
  }
81
100
  export interface Authorizers {
82
101
  items?: Authorizer[] | undefined;
@@ -96,6 +115,15 @@ export interface CreateApiKeyRequest {
96
115
  customerId?: string | undefined;
97
116
  tags?: Record<string, string> | undefined;
98
117
  }
118
+ export interface JwtIssuerInput {
119
+ issuer: string | undefined;
120
+ audiences: string[] | undefined;
121
+ additionalClaims?: JwtAdditionalClaim[] | undefined;
122
+ }
123
+ export interface JwtConfigurationInput {
124
+ issuers: JwtIssuerInput[] | undefined;
125
+ defaultAlgorithms: JwtSigningAlgorithm[] | undefined;
126
+ }
99
127
  export interface CreateAuthorizerRequest {
100
128
  restApiId: string | undefined;
101
129
  name: string | undefined;
@@ -107,6 +135,7 @@ export interface CreateAuthorizerRequest {
107
135
  identitySource?: string | undefined;
108
136
  identityValidationExpression?: string | undefined;
109
137
  authorizerResultTtlInSeconds?: number | undefined;
138
+ jwtConfiguration?: JwtConfigurationInput | undefined;
110
139
  }
111
140
  export interface BasePathMapping {
112
141
  basePath?: string | undefined;
@@ -132,6 +132,11 @@ export declare var ImportDocumentationPartsRequest$: StaticStructureSchema;
132
132
  export declare var ImportRestApiRequest$: StaticStructureSchema;
133
133
  export declare var Integration$: StaticStructureSchema;
134
134
  export declare var IntegrationResponse$: StaticStructureSchema;
135
+ export declare var JwtAdditionalClaim$: StaticStructureSchema;
136
+ export declare var JwtConfiguration$: StaticStructureSchema;
137
+ export declare var JwtConfigurationInput$: StaticStructureSchema;
138
+ export declare var JwtIssuer$: StaticStructureSchema;
139
+ export declare var JwtIssuerInput$: StaticStructureSchema;
135
140
  export declare var Method$: StaticStructureSchema;
136
141
  export declare var MethodResponse$: StaticStructureSchema;
137
142
  export declare var MethodSetting$: StaticStructureSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-api-gateway",
3
- "version": "3.1170.0",
3
+ "version": "3.1171.0",
4
4
  "description": "AWS SDK for JavaScript Api Gateway Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-api-gateway",
6
6
  "license": "Apache-2.0",