aws-sdk-apigateway 1.151.0 → 1.153.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-apigateway/client.rb +126 -31
- data/lib/aws-sdk-apigateway/client_api.rb +46 -0
- data/lib/aws-sdk-apigateway/types.rb +208 -43
- data/lib/aws-sdk-apigateway.rb +1 -1
- data/sig/client.rbs +25 -5
- data/sig/types.rbs +39 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c5a3bc4c73b91b29df71f728ca95df592a04a8d7cd073a050c8c27bbdf5e5057
|
|
4
|
+
data.tar.gz: 8e4917a4cef3101700b7f7d0e5385d78df69713c1b27f875e1defc69d947ad1b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cdb56843658ef24eafac853bc3ad6fdb6acf5773cd85341c5fea30a09991cb26c010de2eee46fbbff998e37c72b57f6fa6ed549070ef1b0132feb6d146e712ca
|
|
7
|
+
data.tar.gz: 410ab7651cc501add4dcf80042cf19621af408ffd4c50e5ca769c2a70028416e09bf29f389bdd8eecf0aebeb1528362122563613f40c82f86fbe234096b0a62c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.153.0 (2026-11-18)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
8
|
+
|
|
9
|
+
1.152.0 (2026-11-17)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - API Gateway now adds support for JWT authorizers on REST APIs.
|
|
13
|
+
|
|
4
14
|
1.151.0 (2026-11-16)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.153.0
|
|
@@ -582,14 +582,17 @@ module Aws::APIGateway
|
|
|
582
582
|
# @option params [required, String] :type
|
|
583
583
|
# The authorizer type. Valid values are `TOKEN` for a Lambda function
|
|
584
584
|
# using a single authorization token submitted in a custom header,
|
|
585
|
-
# `REQUEST` for a Lambda function using incoming request parameters,
|
|
586
|
-
# `COGNITO_USER_POOLS` for using an Amazon Cognito user pool
|
|
585
|
+
# `REQUEST` for a Lambda function using incoming request parameters,
|
|
586
|
+
# `COGNITO_USER_POOLS` for using an Amazon Cognito user pool, and `JWT`
|
|
587
|
+
# for using a native JWT authorizer with the trusted issuers, audiences,
|
|
588
|
+
# and signing algorithms that you declare.
|
|
587
589
|
#
|
|
588
590
|
# @option params [Array<String>] :provider_arns
|
|
589
591
|
# A list of the Amazon Cognito user pool ARNs for the
|
|
590
592
|
# `COGNITO_USER_POOLS` authorizer. Each element is of this format:
|
|
591
593
|
# `arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}`.
|
|
592
|
-
# For a `TOKEN` or `REQUEST` authorizer, this is not defined.
|
|
594
|
+
# For a `TOKEN` or `REQUEST` authorizer, this is not defined. This
|
|
595
|
+
# property is not supported for `JWT` authorizers.
|
|
593
596
|
#
|
|
594
597
|
# @option params [String] :auth_type
|
|
595
598
|
# Optional customer-defined field, used in OpenAPI imports and exports
|
|
@@ -606,13 +609,15 @@ module Aws::APIGateway
|
|
|
606
609
|
# `path` indicates that the remaining substring in the URI should be
|
|
607
610
|
# treated as the path to the resource, including the initial `/`. For
|
|
608
611
|
# Lambda functions, this is usually of the form
|
|
609
|
-
# `/2015-03-31/functions/[FunctionARN]/invocations`.
|
|
612
|
+
# `/2015-03-31/functions/[FunctionARN]/invocations`. This property is
|
|
613
|
+
# not supported for `JWT` authorizers.
|
|
610
614
|
#
|
|
611
615
|
# @option params [String] :authorizer_credentials
|
|
612
616
|
# Specifies the required credentials as an IAM role for API Gateway to
|
|
613
617
|
# invoke the authorizer. To specify an IAM role for API Gateway to
|
|
614
618
|
# assume, use the role's Amazon Resource Name (ARN). To use
|
|
615
|
-
# resource-based permissions on the Lambda function, specify null.
|
|
619
|
+
# resource-based permissions on the Lambda function, specify null. This
|
|
620
|
+
# property is not supported for `JWT` authorizers.
|
|
616
621
|
#
|
|
617
622
|
# @option params [String] :identity_source
|
|
618
623
|
# The identity source for which authorization is requested. For a
|
|
@@ -634,7 +639,11 @@ module Aws::APIGateway
|
|
|
634
639
|
# otherwise, it returns a 401 Unauthorized response without calling the
|
|
635
640
|
# Lambda function. The valid value is a string of comma-separated
|
|
636
641
|
# mapping expressions of the specified request parameters. When the
|
|
637
|
-
# authorization caching is not enabled, this property is optional.
|
|
642
|
+
# authorization caching is not enabled, this property is optional. For a
|
|
643
|
+
# `JWT` authorizer, this is required and must be a single request-header
|
|
644
|
+
# mapping expression, `method.request.header.<name>`, for example,
|
|
645
|
+
# `method.request.header.Authorization`. Query string parameters are not
|
|
646
|
+
# supported, and there is no default.
|
|
638
647
|
#
|
|
639
648
|
# @option params [String] :identity_validation_expression
|
|
640
649
|
# A validation expression for the incoming identity token. For `TOKEN`
|
|
@@ -644,13 +653,17 @@ module Aws::APIGateway
|
|
|
644
653
|
# regular expression. It will invoke the authorizer's Lambda function
|
|
645
654
|
# when there is a match. Otherwise, it will return a 401 Unauthorized
|
|
646
655
|
# response without calling the Lambda function. The validation
|
|
647
|
-
# expression does not apply to the `REQUEST` authorizer.
|
|
656
|
+
# expression does not apply to the `REQUEST` or `JWT` authorizer.
|
|
648
657
|
#
|
|
649
658
|
# @option params [Integer] :authorizer_result_ttl_in_seconds
|
|
650
659
|
# The TTL in seconds of cached authorizer results. If it equals 0,
|
|
651
660
|
# authorization caching is disabled. If it is greater than 0, API
|
|
652
661
|
# Gateway will cache authorizer responses. If this field is not set, the
|
|
653
|
-
# default value is 300. The maximum value is 3600, or 1 hour.
|
|
662
|
+
# default value is 300. The maximum value is 3600, or 1 hour. This
|
|
663
|
+
# property is not supported for `JWT` authorizers.
|
|
664
|
+
#
|
|
665
|
+
# @option params [Types::JwtConfigurationInput] :jwt_configuration
|
|
666
|
+
# The configuration for a JWT authorizer. Required for JWT authorizers.
|
|
654
667
|
#
|
|
655
668
|
# @return [Types::Authorizer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
656
669
|
#
|
|
@@ -664,13 +677,14 @@ module Aws::APIGateway
|
|
|
664
677
|
# * {Types::Authorizer#identity_source #identity_source} => String
|
|
665
678
|
# * {Types::Authorizer#identity_validation_expression #identity_validation_expression} => String
|
|
666
679
|
# * {Types::Authorizer#authorizer_result_ttl_in_seconds #authorizer_result_ttl_in_seconds} => Integer
|
|
680
|
+
# * {Types::Authorizer#jwt_configuration #jwt_configuration} => Types::JwtConfiguration
|
|
667
681
|
#
|
|
668
682
|
# @example Request syntax with placeholder values
|
|
669
683
|
#
|
|
670
684
|
# resp = client.create_authorizer({
|
|
671
685
|
# rest_api_id: "String", # required
|
|
672
686
|
# name: "String", # required
|
|
673
|
-
# type: "TOKEN", # required, accepts TOKEN, REQUEST, COGNITO_USER_POOLS
|
|
687
|
+
# type: "TOKEN", # required, accepts TOKEN, REQUEST, COGNITO_USER_POOLS, JWT
|
|
674
688
|
# provider_arns: ["ProviderARN"],
|
|
675
689
|
# auth_type: "String",
|
|
676
690
|
# authorizer_uri: "String",
|
|
@@ -678,13 +692,30 @@ module Aws::APIGateway
|
|
|
678
692
|
# identity_source: "String",
|
|
679
693
|
# identity_validation_expression: "String",
|
|
680
694
|
# authorizer_result_ttl_in_seconds: 1,
|
|
695
|
+
# jwt_configuration: {
|
|
696
|
+
# issuers: [ # required
|
|
697
|
+
# {
|
|
698
|
+
# issuer: "String", # required
|
|
699
|
+
# audiences: ["String"], # required
|
|
700
|
+
# additional_claims: [
|
|
701
|
+
# {
|
|
702
|
+
# claim_name: "String", # required
|
|
703
|
+
# format: "SINGLE_STRING", # required, accepts SINGLE_STRING
|
|
704
|
+
# required: false,
|
|
705
|
+
# expected_values: ["String"],
|
|
706
|
+
# },
|
|
707
|
+
# ],
|
|
708
|
+
# },
|
|
709
|
+
# ],
|
|
710
|
+
# default_algorithms: ["RS256"], # required, accepts RS256, RS384, RS512, ES256, ES384, ES512
|
|
711
|
+
# },
|
|
681
712
|
# })
|
|
682
713
|
#
|
|
683
714
|
# @example Response structure
|
|
684
715
|
#
|
|
685
716
|
# resp.id #=> String
|
|
686
717
|
# resp.name #=> String
|
|
687
|
-
# resp.type #=> String, one of "TOKEN", "REQUEST", "COGNITO_USER_POOLS"
|
|
718
|
+
# resp.type #=> String, one of "TOKEN", "REQUEST", "COGNITO_USER_POOLS", "JWT"
|
|
688
719
|
# resp.provider_arns #=> Array
|
|
689
720
|
# resp.provider_arns[0] #=> String
|
|
690
721
|
# resp.auth_type #=> String
|
|
@@ -693,6 +724,19 @@ module Aws::APIGateway
|
|
|
693
724
|
# resp.identity_source #=> String
|
|
694
725
|
# resp.identity_validation_expression #=> String
|
|
695
726
|
# resp.authorizer_result_ttl_in_seconds #=> Integer
|
|
727
|
+
# resp.jwt_configuration.issuers #=> Array
|
|
728
|
+
# resp.jwt_configuration.issuers[0].issuer #=> String
|
|
729
|
+
# resp.jwt_configuration.issuers[0].audiences #=> Array
|
|
730
|
+
# resp.jwt_configuration.issuers[0].audiences[0] #=> String
|
|
731
|
+
# resp.jwt_configuration.issuers[0].additional_claims #=> Array
|
|
732
|
+
# resp.jwt_configuration.issuers[0].additional_claims[0].claim_name #=> String
|
|
733
|
+
# resp.jwt_configuration.issuers[0].additional_claims[0].format #=> String, one of "SINGLE_STRING"
|
|
734
|
+
# resp.jwt_configuration.issuers[0].additional_claims[0].required #=> Boolean
|
|
735
|
+
# resp.jwt_configuration.issuers[0].additional_claims[0].expected_values #=> Array
|
|
736
|
+
# resp.jwt_configuration.issuers[0].additional_claims[0].expected_values[0] #=> String
|
|
737
|
+
# resp.jwt_configuration.issuers[0].jwks_uri #=> String
|
|
738
|
+
# resp.jwt_configuration.default_algorithms #=> Array
|
|
739
|
+
# resp.jwt_configuration.default_algorithms[0] #=> String, one of "RS256", "RS384", "RS512", "ES256", "ES384", "ES512"
|
|
696
740
|
#
|
|
697
741
|
# @overload create_authorizer(params = {})
|
|
698
742
|
# @param [Hash] params ({})
|
|
@@ -2017,10 +2061,11 @@ module Aws::APIGateway
|
|
|
2017
2061
|
|
|
2018
2062
|
# Deletes the DomainNameAccessAssociation resource.
|
|
2019
2063
|
#
|
|
2020
|
-
# Only the
|
|
2021
|
-
# resource can delete it. To stop an access
|
|
2022
|
-
#
|
|
2023
|
-
# use the
|
|
2064
|
+
# Only the Amazon Web Services account that created the
|
|
2065
|
+
# DomainNameAccessAssociation resource can delete it. To stop an access
|
|
2066
|
+
# association source in another Amazon Web Services account from
|
|
2067
|
+
# accessing your private custom domain name, use the
|
|
2068
|
+
# RejectDomainNameAccessAssociation operation.
|
|
2024
2069
|
#
|
|
2025
2070
|
# @option params [required, String] :domain_name_access_association_arn
|
|
2026
2071
|
# The ARN of the domain name access association resource.
|
|
@@ -2623,6 +2668,7 @@ module Aws::APIGateway
|
|
|
2623
2668
|
# * {Types::Authorizer#identity_source #identity_source} => String
|
|
2624
2669
|
# * {Types::Authorizer#identity_validation_expression #identity_validation_expression} => String
|
|
2625
2670
|
# * {Types::Authorizer#authorizer_result_ttl_in_seconds #authorizer_result_ttl_in_seconds} => Integer
|
|
2671
|
+
# * {Types::Authorizer#jwt_configuration #jwt_configuration} => Types::JwtConfiguration
|
|
2626
2672
|
#
|
|
2627
2673
|
# @example Request syntax with placeholder values
|
|
2628
2674
|
#
|
|
@@ -2635,7 +2681,7 @@ module Aws::APIGateway
|
|
|
2635
2681
|
#
|
|
2636
2682
|
# resp.id #=> String
|
|
2637
2683
|
# resp.name #=> String
|
|
2638
|
-
# resp.type #=> String, one of "TOKEN", "REQUEST", "COGNITO_USER_POOLS"
|
|
2684
|
+
# resp.type #=> String, one of "TOKEN", "REQUEST", "COGNITO_USER_POOLS", "JWT"
|
|
2639
2685
|
# resp.provider_arns #=> Array
|
|
2640
2686
|
# resp.provider_arns[0] #=> String
|
|
2641
2687
|
# resp.auth_type #=> String
|
|
@@ -2644,6 +2690,19 @@ module Aws::APIGateway
|
|
|
2644
2690
|
# resp.identity_source #=> String
|
|
2645
2691
|
# resp.identity_validation_expression #=> String
|
|
2646
2692
|
# resp.authorizer_result_ttl_in_seconds #=> Integer
|
|
2693
|
+
# resp.jwt_configuration.issuers #=> Array
|
|
2694
|
+
# resp.jwt_configuration.issuers[0].issuer #=> String
|
|
2695
|
+
# resp.jwt_configuration.issuers[0].audiences #=> Array
|
|
2696
|
+
# resp.jwt_configuration.issuers[0].audiences[0] #=> String
|
|
2697
|
+
# resp.jwt_configuration.issuers[0].additional_claims #=> Array
|
|
2698
|
+
# resp.jwt_configuration.issuers[0].additional_claims[0].claim_name #=> String
|
|
2699
|
+
# resp.jwt_configuration.issuers[0].additional_claims[0].format #=> String, one of "SINGLE_STRING"
|
|
2700
|
+
# resp.jwt_configuration.issuers[0].additional_claims[0].required #=> Boolean
|
|
2701
|
+
# resp.jwt_configuration.issuers[0].additional_claims[0].expected_values #=> Array
|
|
2702
|
+
# resp.jwt_configuration.issuers[0].additional_claims[0].expected_values[0] #=> String
|
|
2703
|
+
# resp.jwt_configuration.issuers[0].jwks_uri #=> String
|
|
2704
|
+
# resp.jwt_configuration.default_algorithms #=> Array
|
|
2705
|
+
# resp.jwt_configuration.default_algorithms[0] #=> String, one of "RS256", "RS384", "RS512", "ES256", "ES384", "ES512"
|
|
2647
2706
|
#
|
|
2648
2707
|
# @overload get_authorizer(params = {})
|
|
2649
2708
|
# @param [Hash] params ({})
|
|
@@ -2683,7 +2742,7 @@ module Aws::APIGateway
|
|
|
2683
2742
|
# resp.items #=> Array
|
|
2684
2743
|
# resp.items[0].id #=> String
|
|
2685
2744
|
# resp.items[0].name #=> String
|
|
2686
|
-
# resp.items[0].type #=> String, one of "TOKEN", "REQUEST", "COGNITO_USER_POOLS"
|
|
2745
|
+
# resp.items[0].type #=> String, one of "TOKEN", "REQUEST", "COGNITO_USER_POOLS", "JWT"
|
|
2687
2746
|
# resp.items[0].provider_arns #=> Array
|
|
2688
2747
|
# resp.items[0].provider_arns[0] #=> String
|
|
2689
2748
|
# resp.items[0].auth_type #=> String
|
|
@@ -2692,6 +2751,19 @@ module Aws::APIGateway
|
|
|
2692
2751
|
# resp.items[0].identity_source #=> String
|
|
2693
2752
|
# resp.items[0].identity_validation_expression #=> String
|
|
2694
2753
|
# resp.items[0].authorizer_result_ttl_in_seconds #=> Integer
|
|
2754
|
+
# resp.items[0].jwt_configuration.issuers #=> Array
|
|
2755
|
+
# resp.items[0].jwt_configuration.issuers[0].issuer #=> String
|
|
2756
|
+
# resp.items[0].jwt_configuration.issuers[0].audiences #=> Array
|
|
2757
|
+
# resp.items[0].jwt_configuration.issuers[0].audiences[0] #=> String
|
|
2758
|
+
# resp.items[0].jwt_configuration.issuers[0].additional_claims #=> Array
|
|
2759
|
+
# resp.items[0].jwt_configuration.issuers[0].additional_claims[0].claim_name #=> String
|
|
2760
|
+
# resp.items[0].jwt_configuration.issuers[0].additional_claims[0].format #=> String, one of "SINGLE_STRING"
|
|
2761
|
+
# resp.items[0].jwt_configuration.issuers[0].additional_claims[0].required #=> Boolean
|
|
2762
|
+
# resp.items[0].jwt_configuration.issuers[0].additional_claims[0].expected_values #=> Array
|
|
2763
|
+
# resp.items[0].jwt_configuration.issuers[0].additional_claims[0].expected_values[0] #=> String
|
|
2764
|
+
# resp.items[0].jwt_configuration.issuers[0].jwks_uri #=> String
|
|
2765
|
+
# resp.items[0].jwt_configuration.default_algorithms #=> Array
|
|
2766
|
+
# resp.items[0].jwt_configuration.default_algorithms[0] #=> String, one of "RS256", "RS384", "RS512", "ES256", "ES384", "ES512"
|
|
2695
2767
|
#
|
|
2696
2768
|
# @overload get_authorizers(params = {})
|
|
2697
2769
|
# @param [Hash] params ({})
|
|
@@ -3239,7 +3311,8 @@ module Aws::APIGateway
|
|
|
3239
3311
|
# The owner of the domain name access association. Use `SELF` to only
|
|
3240
3312
|
# list the domain name access associations owned by your own account.
|
|
3241
3313
|
# Use `OTHER_ACCOUNTS` to list the domain name access associations with
|
|
3242
|
-
# your private custom domain names that are owned by other
|
|
3314
|
+
# your private custom domain names that are owned by other Amazon Web
|
|
3315
|
+
# Services accounts.
|
|
3243
3316
|
#
|
|
3244
3317
|
# @return [Types::DomainNameAccessAssociations] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3245
3318
|
#
|
|
@@ -5269,7 +5342,7 @@ module Aws::APIGateway
|
|
|
5269
5342
|
# The response transfer mode of the integration.
|
|
5270
5343
|
#
|
|
5271
5344
|
# @option params [String] :integration_target
|
|
5272
|
-
# The ALB or NLB
|
|
5345
|
+
# The ALB or NLB ARN to send the request to.
|
|
5273
5346
|
#
|
|
5274
5347
|
# @return [Types::Integration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5275
5348
|
#
|
|
@@ -5456,9 +5529,9 @@ module Aws::APIGateway
|
|
|
5456
5529
|
#
|
|
5457
5530
|
# @option params [required, String] :authorization_type
|
|
5458
5531
|
# The method's authorization type. Valid values are `NONE` for open
|
|
5459
|
-
# access, `AWS_IAM` for using
|
|
5460
|
-
# custom authorizer,
|
|
5461
|
-
# pool.
|
|
5532
|
+
# access, `AWS_IAM` for using Amazon Web Services IAM permissions,
|
|
5533
|
+
# `CUSTOM` for using a custom authorizer, `COGNITO_USER_POOLS` for using
|
|
5534
|
+
# a Cognito user pool, or `JWT` for using a JWT authorizer.
|
|
5462
5535
|
#
|
|
5463
5536
|
# @option params [String] :authorizer_id
|
|
5464
5537
|
# Specifies the identifier of an Authorizer to use on this Method, if
|
|
@@ -5502,7 +5575,9 @@ module Aws::APIGateway
|
|
|
5502
5575
|
# matches a claimed scope in the access token. Otherwise, the invocation
|
|
5503
5576
|
# is not authorized. When the method scope is configured, the client
|
|
5504
5577
|
# must provide an access token instead of an identity token for
|
|
5505
|
-
# authorization purposes.
|
|
5578
|
+
# authorization purposes. The scopes are also used with a `JWT`
|
|
5579
|
+
# authorizer. When scopes are configured, the `scope` (or `scp`) claim
|
|
5580
|
+
# of the token must contain at least one of the configured scopes.
|
|
5506
5581
|
#
|
|
5507
5582
|
# @return [Types::Method] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5508
5583
|
#
|
|
@@ -5685,9 +5760,9 @@ module Aws::APIGateway
|
|
|
5685
5760
|
# @option params [Hash<String,String>] :parameters
|
|
5686
5761
|
# Custom header parameters as part of the request. For example, to
|
|
5687
5762
|
# exclude DocumentationParts from an imported API, set
|
|
5688
|
-
# `ignore=documentation` as a `parameters` value, as in the
|
|
5689
|
-
#
|
|
5690
|
-
#
|
|
5763
|
+
# `ignore=documentation` as a `parameters` value, as in the CLI command
|
|
5764
|
+
# of `aws apigateway import-rest-api --parameters ignore=documentation
|
|
5765
|
+
# --body 'file:///path/to/imported-api-body.json'`.
|
|
5691
5766
|
#
|
|
5692
5767
|
# @option params [required, String, StringIO, File] :body
|
|
5693
5768
|
# The PUT request body containing external API definitions. Currently,
|
|
@@ -5766,9 +5841,10 @@ module Aws::APIGateway
|
|
|
5766
5841
|
# name.
|
|
5767
5842
|
#
|
|
5768
5843
|
# To reject a domain name access association with an access association
|
|
5769
|
-
# source in another
|
|
5770
|
-
# name access association with an access association
|
|
5771
|
-
# account, use the DeleteDomainNameAccessAssociation
|
|
5844
|
+
# source in another Amazon Web Services account, use this operation. To
|
|
5845
|
+
# remove a domain name access association with an access association
|
|
5846
|
+
# source in your own account, use the DeleteDomainNameAccessAssociation
|
|
5847
|
+
# operation.
|
|
5772
5848
|
#
|
|
5773
5849
|
# @option params [required, String] :domain_name_access_association_arn
|
|
5774
5850
|
# The ARN of the domain name access association resource.
|
|
@@ -6121,7 +6197,12 @@ module Aws::APIGateway
|
|
|
6121
6197
|
req.send_request(options)
|
|
6122
6198
|
end
|
|
6123
6199
|
|
|
6124
|
-
# Updates an existing Authorizer resource.
|
|
6200
|
+
# Updates an existing Authorizer resource. For a `JWT` authorizer, the
|
|
6201
|
+
# only JWT patch operation is `replace` on the path `/jwtConfiguration`.
|
|
6202
|
+
# Its value is the complete configuration as a JSON string in the
|
|
6203
|
+
# `JwtConfigurationInput` shape. This replaces the entire configuration;
|
|
6204
|
+
# nothing from the previous configuration is retained. A `replace`
|
|
6205
|
+
# operation on the path `/type` is supported in both directions.
|
|
6125
6206
|
#
|
|
6126
6207
|
# @option params [required, String] :rest_api_id
|
|
6127
6208
|
# The string identifier of the associated RestApi.
|
|
@@ -6149,6 +6230,7 @@ module Aws::APIGateway
|
|
|
6149
6230
|
# * {Types::Authorizer#identity_source #identity_source} => String
|
|
6150
6231
|
# * {Types::Authorizer#identity_validation_expression #identity_validation_expression} => String
|
|
6151
6232
|
# * {Types::Authorizer#authorizer_result_ttl_in_seconds #authorizer_result_ttl_in_seconds} => Integer
|
|
6233
|
+
# * {Types::Authorizer#jwt_configuration #jwt_configuration} => Types::JwtConfiguration
|
|
6152
6234
|
#
|
|
6153
6235
|
# @example Request syntax with placeholder values
|
|
6154
6236
|
#
|
|
@@ -6169,7 +6251,7 @@ module Aws::APIGateway
|
|
|
6169
6251
|
#
|
|
6170
6252
|
# resp.id #=> String
|
|
6171
6253
|
# resp.name #=> String
|
|
6172
|
-
# resp.type #=> String, one of "TOKEN", "REQUEST", "COGNITO_USER_POOLS"
|
|
6254
|
+
# resp.type #=> String, one of "TOKEN", "REQUEST", "COGNITO_USER_POOLS", "JWT"
|
|
6173
6255
|
# resp.provider_arns #=> Array
|
|
6174
6256
|
# resp.provider_arns[0] #=> String
|
|
6175
6257
|
# resp.auth_type #=> String
|
|
@@ -6178,6 +6260,19 @@ module Aws::APIGateway
|
|
|
6178
6260
|
# resp.identity_source #=> String
|
|
6179
6261
|
# resp.identity_validation_expression #=> String
|
|
6180
6262
|
# resp.authorizer_result_ttl_in_seconds #=> Integer
|
|
6263
|
+
# resp.jwt_configuration.issuers #=> Array
|
|
6264
|
+
# resp.jwt_configuration.issuers[0].issuer #=> String
|
|
6265
|
+
# resp.jwt_configuration.issuers[0].audiences #=> Array
|
|
6266
|
+
# resp.jwt_configuration.issuers[0].audiences[0] #=> String
|
|
6267
|
+
# resp.jwt_configuration.issuers[0].additional_claims #=> Array
|
|
6268
|
+
# resp.jwt_configuration.issuers[0].additional_claims[0].claim_name #=> String
|
|
6269
|
+
# resp.jwt_configuration.issuers[0].additional_claims[0].format #=> String, one of "SINGLE_STRING"
|
|
6270
|
+
# resp.jwt_configuration.issuers[0].additional_claims[0].required #=> Boolean
|
|
6271
|
+
# resp.jwt_configuration.issuers[0].additional_claims[0].expected_values #=> Array
|
|
6272
|
+
# resp.jwt_configuration.issuers[0].additional_claims[0].expected_values[0] #=> String
|
|
6273
|
+
# resp.jwt_configuration.issuers[0].jwks_uri #=> String
|
|
6274
|
+
# resp.jwt_configuration.default_algorithms #=> Array
|
|
6275
|
+
# resp.jwt_configuration.default_algorithms[0] #=> String, one of "RS256", "RS384", "RS512", "ES256", "ES384", "ES512"
|
|
6181
6276
|
#
|
|
6182
6277
|
# @overload update_authorizer(params = {})
|
|
6183
6278
|
# @param [Hash] params ({})
|
|
@@ -7516,7 +7611,7 @@ module Aws::APIGateway
|
|
|
7516
7611
|
tracer: tracer
|
|
7517
7612
|
)
|
|
7518
7613
|
context[:gem_name] = 'aws-sdk-apigateway'
|
|
7519
|
-
context[:gem_version] = '1.
|
|
7614
|
+
context[:gem_version] = '1.153.0'
|
|
7520
7615
|
Seahorse::Client::Request.new(handlers, context)
|
|
7521
7616
|
end
|
|
7522
7617
|
|
|
@@ -160,6 +160,13 @@ module Aws::APIGateway
|
|
|
160
160
|
IntegrationResponse = Shapes::StructureShape.new(name: 'IntegrationResponse')
|
|
161
161
|
IntegrationType = Shapes::StringShape.new(name: 'IntegrationType')
|
|
162
162
|
IpAddressType = Shapes::StringShape.new(name: 'IpAddressType')
|
|
163
|
+
JwtAdditionalClaim = Shapes::StructureShape.new(name: 'JwtAdditionalClaim')
|
|
164
|
+
JwtClaimFormat = Shapes::StringShape.new(name: 'JwtClaimFormat')
|
|
165
|
+
JwtConfiguration = Shapes::StructureShape.new(name: 'JwtConfiguration')
|
|
166
|
+
JwtConfigurationInput = Shapes::StructureShape.new(name: 'JwtConfigurationInput')
|
|
167
|
+
JwtIssuer = Shapes::StructureShape.new(name: 'JwtIssuer')
|
|
168
|
+
JwtIssuerInput = Shapes::StructureShape.new(name: 'JwtIssuerInput')
|
|
169
|
+
JwtSigningAlgorithm = Shapes::StringShape.new(name: 'JwtSigningAlgorithm')
|
|
163
170
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
|
164
171
|
ListOfARNs = Shapes::ListShape.new(name: 'ListOfARNs')
|
|
165
172
|
ListOfApiKey = Shapes::ListShape.new(name: 'ListOfApiKey')
|
|
@@ -174,6 +181,10 @@ module Aws::APIGateway
|
|
|
174
181
|
ListOfDomainNameAccessAssociation = Shapes::ListShape.new(name: 'ListOfDomainNameAccessAssociation')
|
|
175
182
|
ListOfEndpointType = Shapes::ListShape.new(name: 'ListOfEndpointType')
|
|
176
183
|
ListOfGatewayResponse = Shapes::ListShape.new(name: 'ListOfGatewayResponse')
|
|
184
|
+
ListOfJwtAdditionalClaim = Shapes::ListShape.new(name: 'ListOfJwtAdditionalClaim')
|
|
185
|
+
ListOfJwtIssuer = Shapes::ListShape.new(name: 'ListOfJwtIssuer')
|
|
186
|
+
ListOfJwtIssuerInput = Shapes::ListShape.new(name: 'ListOfJwtIssuerInput')
|
|
187
|
+
ListOfJwtSigningAlgorithm = Shapes::ListShape.new(name: 'ListOfJwtSigningAlgorithm')
|
|
177
188
|
ListOfLong = Shapes::ListShape.new(name: 'ListOfLong')
|
|
178
189
|
ListOfModel = Shapes::ListShape.new(name: 'ListOfModel')
|
|
179
190
|
ListOfPatchOperation = Shapes::ListShape.new(name: 'ListOfPatchOperation')
|
|
@@ -337,6 +348,7 @@ module Aws::APIGateway
|
|
|
337
348
|
Authorizer.add_member(:identity_source, Shapes::ShapeRef.new(shape: String, location_name: "identitySource"))
|
|
338
349
|
Authorizer.add_member(:identity_validation_expression, Shapes::ShapeRef.new(shape: String, location_name: "identityValidationExpression"))
|
|
339
350
|
Authorizer.add_member(:authorizer_result_ttl_in_seconds, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "authorizerResultTtlInSeconds"))
|
|
351
|
+
Authorizer.add_member(:jwt_configuration, Shapes::ShapeRef.new(shape: JwtConfiguration, location_name: "jwtConfiguration"))
|
|
340
352
|
Authorizer.struct_class = Types::Authorizer
|
|
341
353
|
|
|
342
354
|
Authorizers.add_member(:position, Shapes::ShapeRef.new(shape: String, location_name: "position"))
|
|
@@ -396,6 +408,7 @@ module Aws::APIGateway
|
|
|
396
408
|
CreateAuthorizerRequest.add_member(:identity_source, Shapes::ShapeRef.new(shape: String, location_name: "identitySource"))
|
|
397
409
|
CreateAuthorizerRequest.add_member(:identity_validation_expression, Shapes::ShapeRef.new(shape: String, location_name: "identityValidationExpression"))
|
|
398
410
|
CreateAuthorizerRequest.add_member(:authorizer_result_ttl_in_seconds, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "authorizerResultTtlInSeconds"))
|
|
411
|
+
CreateAuthorizerRequest.add_member(:jwt_configuration, Shapes::ShapeRef.new(shape: JwtConfigurationInput, location_name: "jwtConfiguration"))
|
|
399
412
|
CreateAuthorizerRequest.struct_class = Types::CreateAuthorizerRequest
|
|
400
413
|
|
|
401
414
|
CreateBasePathMappingRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "domain_name"))
|
|
@@ -996,6 +1009,31 @@ module Aws::APIGateway
|
|
|
996
1009
|
IntegrationResponse.add_member(:content_handling, Shapes::ShapeRef.new(shape: ContentHandlingStrategy, location_name: "contentHandling"))
|
|
997
1010
|
IntegrationResponse.struct_class = Types::IntegrationResponse
|
|
998
1011
|
|
|
1012
|
+
JwtAdditionalClaim.add_member(:claim_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "claimName"))
|
|
1013
|
+
JwtAdditionalClaim.add_member(:format, Shapes::ShapeRef.new(shape: JwtClaimFormat, required: true, location_name: "format"))
|
|
1014
|
+
JwtAdditionalClaim.add_member(:required, Shapes::ShapeRef.new(shape: Boolean, location_name: "required"))
|
|
1015
|
+
JwtAdditionalClaim.add_member(:expected_values, Shapes::ShapeRef.new(shape: ListOfString, location_name: "expectedValues"))
|
|
1016
|
+
JwtAdditionalClaim.struct_class = Types::JwtAdditionalClaim
|
|
1017
|
+
|
|
1018
|
+
JwtConfiguration.add_member(:issuers, Shapes::ShapeRef.new(shape: ListOfJwtIssuer, location_name: "issuers"))
|
|
1019
|
+
JwtConfiguration.add_member(:default_algorithms, Shapes::ShapeRef.new(shape: ListOfJwtSigningAlgorithm, location_name: "defaultAlgorithms"))
|
|
1020
|
+
JwtConfiguration.struct_class = Types::JwtConfiguration
|
|
1021
|
+
|
|
1022
|
+
JwtConfigurationInput.add_member(:issuers, Shapes::ShapeRef.new(shape: ListOfJwtIssuerInput, required: true, location_name: "issuers"))
|
|
1023
|
+
JwtConfigurationInput.add_member(:default_algorithms, Shapes::ShapeRef.new(shape: ListOfJwtSigningAlgorithm, required: true, location_name: "defaultAlgorithms"))
|
|
1024
|
+
JwtConfigurationInput.struct_class = Types::JwtConfigurationInput
|
|
1025
|
+
|
|
1026
|
+
JwtIssuer.add_member(:issuer, Shapes::ShapeRef.new(shape: String, location_name: "issuer"))
|
|
1027
|
+
JwtIssuer.add_member(:audiences, Shapes::ShapeRef.new(shape: ListOfString, location_name: "audiences"))
|
|
1028
|
+
JwtIssuer.add_member(:additional_claims, Shapes::ShapeRef.new(shape: ListOfJwtAdditionalClaim, location_name: "additionalClaims"))
|
|
1029
|
+
JwtIssuer.add_member(:jwks_uri, Shapes::ShapeRef.new(shape: String, location_name: "jwksUri"))
|
|
1030
|
+
JwtIssuer.struct_class = Types::JwtIssuer
|
|
1031
|
+
|
|
1032
|
+
JwtIssuerInput.add_member(:issuer, Shapes::ShapeRef.new(shape: String, required: true, location_name: "issuer"))
|
|
1033
|
+
JwtIssuerInput.add_member(:audiences, Shapes::ShapeRef.new(shape: ListOfString, required: true, location_name: "audiences"))
|
|
1034
|
+
JwtIssuerInput.add_member(:additional_claims, Shapes::ShapeRef.new(shape: ListOfJwtAdditionalClaim, location_name: "additionalClaims"))
|
|
1035
|
+
JwtIssuerInput.struct_class = Types::JwtIssuerInput
|
|
1036
|
+
|
|
999
1037
|
LimitExceededException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Retry-After"))
|
|
1000
1038
|
LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
|
1001
1039
|
LimitExceededException.struct_class = Types::LimitExceededException
|
|
@@ -1026,6 +1064,14 @@ module Aws::APIGateway
|
|
|
1026
1064
|
|
|
1027
1065
|
ListOfGatewayResponse.member = Shapes::ShapeRef.new(shape: GatewayResponse)
|
|
1028
1066
|
|
|
1067
|
+
ListOfJwtAdditionalClaim.member = Shapes::ShapeRef.new(shape: JwtAdditionalClaim)
|
|
1068
|
+
|
|
1069
|
+
ListOfJwtIssuer.member = Shapes::ShapeRef.new(shape: JwtIssuer)
|
|
1070
|
+
|
|
1071
|
+
ListOfJwtIssuerInput.member = Shapes::ShapeRef.new(shape: JwtIssuerInput)
|
|
1072
|
+
|
|
1073
|
+
ListOfJwtSigningAlgorithm.member = Shapes::ShapeRef.new(shape: JwtSigningAlgorithm)
|
|
1074
|
+
|
|
1029
1075
|
ListOfLong.member = Shapes::ShapeRef.new(shape: Long)
|
|
1030
1076
|
|
|
1031
1077
|
ListOfModel.member = Shapes::ShapeRef.new(shape: Model)
|
|
@@ -33,7 +33,8 @@ module Aws::APIGateway
|
|
|
33
33
|
include Aws::Structure
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
-
# Represents an
|
|
36
|
+
# Represents an Amazon Web Services account that is associated with API
|
|
37
|
+
# Gateway.
|
|
37
38
|
#
|
|
38
39
|
# @!attribute [rw] cloudwatch_role_arn
|
|
39
40
|
# The ARN of an Amazon CloudWatch role for the current Account.
|
|
@@ -203,14 +204,17 @@ module Aws::APIGateway
|
|
|
203
204
|
# The authorizer type. Valid values are `TOKEN` for a Lambda function
|
|
204
205
|
# using a single authorization token submitted in a custom header,
|
|
205
206
|
# `REQUEST` for a Lambda function using incoming request parameters,
|
|
206
|
-
#
|
|
207
|
+
# `COGNITO_USER_POOLS` for using an Amazon Cognito user pool, and
|
|
208
|
+
# `JWT` for using a native JWT authorizer with the trusted issuers,
|
|
209
|
+
# audiences, and signing algorithms that you declare.
|
|
207
210
|
# @return [String]
|
|
208
211
|
#
|
|
209
212
|
# @!attribute [rw] provider_arns
|
|
210
213
|
# A list of the Amazon Cognito user pool ARNs for the
|
|
211
214
|
# `COGNITO_USER_POOLS` authorizer. Each element is of this format:
|
|
212
215
|
# `arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}`.
|
|
213
|
-
# For a `TOKEN` or `REQUEST` authorizer, this is not defined.
|
|
216
|
+
# For a `TOKEN` or `REQUEST` authorizer, this is not defined. This
|
|
217
|
+
# property is not supported for `JWT` authorizers.
|
|
214
218
|
# @return [Array<String>]
|
|
215
219
|
#
|
|
216
220
|
# @!attribute [rw] auth_type
|
|
@@ -229,7 +233,8 @@ module Aws::APIGateway
|
|
|
229
233
|
# `path` indicates that the remaining substring in the URI should be
|
|
230
234
|
# treated as the path to the resource, including the initial `/`. For
|
|
231
235
|
# Lambda functions, this is usually of the form
|
|
232
|
-
# `/2015-03-31/functions/[FunctionARN]/invocations`.
|
|
236
|
+
# `/2015-03-31/functions/[FunctionARN]/invocations`. This property is
|
|
237
|
+
# not supported for `JWT` authorizers.
|
|
233
238
|
# @return [String]
|
|
234
239
|
#
|
|
235
240
|
# @!attribute [rw] authorizer_credentials
|
|
@@ -237,6 +242,7 @@ module Aws::APIGateway
|
|
|
237
242
|
# invoke the authorizer. To specify an IAM role for API Gateway to
|
|
238
243
|
# assume, use the role's Amazon Resource Name (ARN). To use
|
|
239
244
|
# resource-based permissions on the Lambda function, specify null.
|
|
245
|
+
# This property is not supported for `JWT` authorizers.
|
|
240
246
|
# @return [String]
|
|
241
247
|
#
|
|
242
248
|
# @!attribute [rw] identity_source
|
|
@@ -260,7 +266,11 @@ module Aws::APIGateway
|
|
|
260
266
|
# response without calling the Lambda function. The valid value is a
|
|
261
267
|
# string of comma-separated mapping expressions of the specified
|
|
262
268
|
# request parameters. When the authorization caching is not enabled,
|
|
263
|
-
# this property is optional.
|
|
269
|
+
# this property is optional. For a `JWT` authorizer, this is required
|
|
270
|
+
# and must be a single request-header mapping expression,
|
|
271
|
+
# `method.request.header.<name>`, for example,
|
|
272
|
+
# `method.request.header.Authorization`. Query string parameters are
|
|
273
|
+
# not supported, and there is no default.
|
|
264
274
|
# @return [String]
|
|
265
275
|
#
|
|
266
276
|
# @!attribute [rw] identity_validation_expression
|
|
@@ -271,16 +281,22 @@ module Aws::APIGateway
|
|
|
271
281
|
# regular expression. It will invoke the authorizer's Lambda function
|
|
272
282
|
# when there is a match. Otherwise, it will return a 401 Unauthorized
|
|
273
283
|
# response without calling the Lambda function. The validation
|
|
274
|
-
# expression does not apply to the `REQUEST` authorizer.
|
|
284
|
+
# expression does not apply to the `REQUEST` or `JWT` authorizer.
|
|
275
285
|
# @return [String]
|
|
276
286
|
#
|
|
277
287
|
# @!attribute [rw] authorizer_result_ttl_in_seconds
|
|
278
288
|
# The TTL in seconds of cached authorizer results. If it equals 0,
|
|
279
289
|
# authorization caching is disabled. If it is greater than 0, API
|
|
280
290
|
# Gateway will cache authorizer responses. If this field is not set,
|
|
281
|
-
# the default value is 300. The maximum value is 3600, or 1 hour.
|
|
291
|
+
# the default value is 300. The maximum value is 3600, or 1 hour. This
|
|
292
|
+
# property is not supported for `JWT` authorizers.
|
|
282
293
|
# @return [Integer]
|
|
283
294
|
#
|
|
295
|
+
# @!attribute [rw] jwt_configuration
|
|
296
|
+
# The configuration returned for a JWT authorizer. This field is
|
|
297
|
+
# present only when `type` is `JWT`.
|
|
298
|
+
# @return [Types::JwtConfiguration]
|
|
299
|
+
#
|
|
284
300
|
class Authorizer < Struct.new(
|
|
285
301
|
:id,
|
|
286
302
|
:name,
|
|
@@ -291,7 +307,8 @@ module Aws::APIGateway
|
|
|
291
307
|
:authorizer_credentials,
|
|
292
308
|
:identity_source,
|
|
293
309
|
:identity_validation_expression,
|
|
294
|
-
:authorizer_result_ttl_in_seconds
|
|
310
|
+
:authorizer_result_ttl_in_seconds,
|
|
311
|
+
:jwt_configuration)
|
|
295
312
|
SENSITIVE = []
|
|
296
313
|
include Aws::Structure
|
|
297
314
|
end
|
|
@@ -532,14 +549,17 @@ module Aws::APIGateway
|
|
|
532
549
|
# The authorizer type. Valid values are `TOKEN` for a Lambda function
|
|
533
550
|
# using a single authorization token submitted in a custom header,
|
|
534
551
|
# `REQUEST` for a Lambda function using incoming request parameters,
|
|
535
|
-
#
|
|
552
|
+
# `COGNITO_USER_POOLS` for using an Amazon Cognito user pool, and
|
|
553
|
+
# `JWT` for using a native JWT authorizer with the trusted issuers,
|
|
554
|
+
# audiences, and signing algorithms that you declare.
|
|
536
555
|
# @return [String]
|
|
537
556
|
#
|
|
538
557
|
# @!attribute [rw] provider_arns
|
|
539
558
|
# A list of the Amazon Cognito user pool ARNs for the
|
|
540
559
|
# `COGNITO_USER_POOLS` authorizer. Each element is of this format:
|
|
541
560
|
# `arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}`.
|
|
542
|
-
# For a `TOKEN` or `REQUEST` authorizer, this is not defined.
|
|
561
|
+
# For a `TOKEN` or `REQUEST` authorizer, this is not defined. This
|
|
562
|
+
# property is not supported for `JWT` authorizers.
|
|
543
563
|
# @return [Array<String>]
|
|
544
564
|
#
|
|
545
565
|
# @!attribute [rw] auth_type
|
|
@@ -558,7 +578,8 @@ module Aws::APIGateway
|
|
|
558
578
|
# `path` indicates that the remaining substring in the URI should be
|
|
559
579
|
# treated as the path to the resource, including the initial `/`. For
|
|
560
580
|
# Lambda functions, this is usually of the form
|
|
561
|
-
# `/2015-03-31/functions/[FunctionARN]/invocations`.
|
|
581
|
+
# `/2015-03-31/functions/[FunctionARN]/invocations`. This property is
|
|
582
|
+
# not supported for `JWT` authorizers.
|
|
562
583
|
# @return [String]
|
|
563
584
|
#
|
|
564
585
|
# @!attribute [rw] authorizer_credentials
|
|
@@ -566,6 +587,7 @@ module Aws::APIGateway
|
|
|
566
587
|
# invoke the authorizer. To specify an IAM role for API Gateway to
|
|
567
588
|
# assume, use the role's Amazon Resource Name (ARN). To use
|
|
568
589
|
# resource-based permissions on the Lambda function, specify null.
|
|
590
|
+
# This property is not supported for `JWT` authorizers.
|
|
569
591
|
# @return [String]
|
|
570
592
|
#
|
|
571
593
|
# @!attribute [rw] identity_source
|
|
@@ -589,7 +611,11 @@ module Aws::APIGateway
|
|
|
589
611
|
# response without calling the Lambda function. The valid value is a
|
|
590
612
|
# string of comma-separated mapping expressions of the specified
|
|
591
613
|
# request parameters. When the authorization caching is not enabled,
|
|
592
|
-
# this property is optional.
|
|
614
|
+
# this property is optional. For a `JWT` authorizer, this is required
|
|
615
|
+
# and must be a single request-header mapping expression,
|
|
616
|
+
# `method.request.header.<name>`, for example,
|
|
617
|
+
# `method.request.header.Authorization`. Query string parameters are
|
|
618
|
+
# not supported, and there is no default.
|
|
593
619
|
# @return [String]
|
|
594
620
|
#
|
|
595
621
|
# @!attribute [rw] identity_validation_expression
|
|
@@ -600,16 +626,22 @@ module Aws::APIGateway
|
|
|
600
626
|
# regular expression. It will invoke the authorizer's Lambda function
|
|
601
627
|
# when there is a match. Otherwise, it will return a 401 Unauthorized
|
|
602
628
|
# response without calling the Lambda function. The validation
|
|
603
|
-
# expression does not apply to the `REQUEST` authorizer.
|
|
629
|
+
# expression does not apply to the `REQUEST` or `JWT` authorizer.
|
|
604
630
|
# @return [String]
|
|
605
631
|
#
|
|
606
632
|
# @!attribute [rw] authorizer_result_ttl_in_seconds
|
|
607
633
|
# The TTL in seconds of cached authorizer results. If it equals 0,
|
|
608
634
|
# authorization caching is disabled. If it is greater than 0, API
|
|
609
635
|
# Gateway will cache authorizer responses. If this field is not set,
|
|
610
|
-
# the default value is 300. The maximum value is 3600, or 1 hour.
|
|
636
|
+
# the default value is 300. The maximum value is 3600, or 1 hour. This
|
|
637
|
+
# property is not supported for `JWT` authorizers.
|
|
611
638
|
# @return [Integer]
|
|
612
639
|
#
|
|
640
|
+
# @!attribute [rw] jwt_configuration
|
|
641
|
+
# The configuration for a JWT authorizer. Required for JWT
|
|
642
|
+
# authorizers.
|
|
643
|
+
# @return [Types::JwtConfigurationInput]
|
|
644
|
+
#
|
|
613
645
|
class CreateAuthorizerRequest < Struct.new(
|
|
614
646
|
:rest_api_id,
|
|
615
647
|
:name,
|
|
@@ -620,7 +652,8 @@ module Aws::APIGateway
|
|
|
620
652
|
:authorizer_credentials,
|
|
621
653
|
:identity_source,
|
|
622
654
|
:identity_validation_expression,
|
|
623
|
-
:authorizer_result_ttl_in_seconds
|
|
655
|
+
:authorizer_result_ttl_in_seconds,
|
|
656
|
+
:jwt_configuration)
|
|
624
657
|
SENSITIVE = []
|
|
625
658
|
include Aws::Structure
|
|
626
659
|
end
|
|
@@ -1956,7 +1989,7 @@ module Aws::APIGateway
|
|
|
1956
1989
|
# @!attribute [rw] regional_hosted_zone_id
|
|
1957
1990
|
# The region-specific Amazon Route 53 Hosted Zone ID of the regional
|
|
1958
1991
|
# endpoint. For more information, see Set up a Regional Custom Domain
|
|
1959
|
-
# Name and
|
|
1992
|
+
# Name and Amazon Web Services Regions and Endpoints for API Gateway.
|
|
1960
1993
|
# @return [String]
|
|
1961
1994
|
#
|
|
1962
1995
|
# @!attribute [rw] regional_certificate_name
|
|
@@ -1982,7 +2015,8 @@ module Aws::APIGateway
|
|
|
1982
2015
|
# The region-agnostic Amazon Route 53 Hosted Zone ID of the
|
|
1983
2016
|
# edge-optimized endpoint. The valid value is `Z2FDTNDATAQYW2` for all
|
|
1984
2017
|
# the regions. For more information, see Set up a Regional Custom
|
|
1985
|
-
# Domain Name and
|
|
2018
|
+
# Domain Name and Amazon Web Services Regions and Endpoints for API
|
|
2019
|
+
# Gateway.
|
|
1986
2020
|
# @return [String]
|
|
1987
2021
|
#
|
|
1988
2022
|
# @!attribute [rw] endpoint_configuration
|
|
@@ -2673,8 +2707,8 @@ module Aws::APIGateway
|
|
|
2673
2707
|
# The owner of the domain name access association. Use `SELF` to only
|
|
2674
2708
|
# list the domain name access associations owned by your own account.
|
|
2675
2709
|
# Use `OTHER_ACCOUNTS` to list the domain name access associations
|
|
2676
|
-
# with your private custom domain names that are owned by other
|
|
2677
|
-
# accounts.
|
|
2710
|
+
# with your private custom domain names that are owned by other Amazon
|
|
2711
|
+
# Web Services accounts.
|
|
2678
2712
|
# @return [String]
|
|
2679
2713
|
#
|
|
2680
2714
|
class GetDomainNameAccessAssociationsRequest < Struct.new(
|
|
@@ -3561,12 +3595,12 @@ module Aws::APIGateway
|
|
|
3561
3595
|
#
|
|
3562
3596
|
# @!attribute [rw] credentials
|
|
3563
3597
|
# Specifies the credentials required for the integration, if any. For
|
|
3564
|
-
#
|
|
3565
|
-
# Role for API Gateway to assume, use the role's
|
|
3566
|
-
# (ARN). To require that the caller's identity
|
|
3567
|
-
# the request, specify the string
|
|
3568
|
-
# resource-based permissions on
|
|
3569
|
-
# services, specify null.
|
|
3598
|
+
# Amazon Web Services integrations, three options are available. To
|
|
3599
|
+
# specify an IAM Role for API Gateway to assume, use the role's
|
|
3600
|
+
# Amazon Resource Name (ARN). To require that the caller's identity
|
|
3601
|
+
# be passed through from the request, specify the string
|
|
3602
|
+
# `arn:aws:iam::*:user/*`. To use resource-based permissions on
|
|
3603
|
+
# supported Amazon Web Services services, specify null.
|
|
3570
3604
|
# @return [String]
|
|
3571
3605
|
#
|
|
3572
3606
|
# @!attribute [rw] request_parameters
|
|
@@ -3655,7 +3689,7 @@ module Aws::APIGateway
|
|
|
3655
3689
|
# @return [String]
|
|
3656
3690
|
#
|
|
3657
3691
|
# @!attribute [rw] integration_target
|
|
3658
|
-
# The ALB or NLB
|
|
3692
|
+
# The ALB or NLB ARN to send the request to.
|
|
3659
3693
|
# @return [String]
|
|
3660
3694
|
#
|
|
3661
3695
|
class Integration < Struct.new(
|
|
@@ -3742,6 +3776,132 @@ module Aws::APIGateway
|
|
|
3742
3776
|
include Aws::Structure
|
|
3743
3777
|
end
|
|
3744
3778
|
|
|
3779
|
+
# An additional claim rule for an issuer.
|
|
3780
|
+
#
|
|
3781
|
+
# @!attribute [rw] claim_name
|
|
3782
|
+
# The name of the claim to check. The value cannot be empty and cannot
|
|
3783
|
+
# be `iss`, `aud`, `exp`, `nbf`, `iat`, `scope`, or `scp`.
|
|
3784
|
+
# @return [String]
|
|
3785
|
+
#
|
|
3786
|
+
# @!attribute [rw] format
|
|
3787
|
+
# The format of the claim value. The only valid value is
|
|
3788
|
+
# `SINGLE_STRING`.
|
|
3789
|
+
# @return [String]
|
|
3790
|
+
#
|
|
3791
|
+
# @!attribute [rw] required
|
|
3792
|
+
# Specifies whether the claim must be present in the token. Defaults
|
|
3793
|
+
# to `false`. When `true`, the token must contain the claim.
|
|
3794
|
+
# @return [Boolean]
|
|
3795
|
+
#
|
|
3796
|
+
# @!attribute [rw] expected_values
|
|
3797
|
+
# The accepted value for the claim. The value cannot be empty. When a
|
|
3798
|
+
# value is specified, the claim must match it exactly, and the match
|
|
3799
|
+
# is case-sensitive. When no value is specified, the claim only has to
|
|
3800
|
+
# be present.
|
|
3801
|
+
# @return [Array<String>]
|
|
3802
|
+
#
|
|
3803
|
+
class JwtAdditionalClaim < Struct.new(
|
|
3804
|
+
:claim_name,
|
|
3805
|
+
:format,
|
|
3806
|
+
:required,
|
|
3807
|
+
:expected_values)
|
|
3808
|
+
SENSITIVE = []
|
|
3809
|
+
include Aws::Structure
|
|
3810
|
+
end
|
|
3811
|
+
|
|
3812
|
+
# The JWT configuration returned for a JWT authorizer.
|
|
3813
|
+
#
|
|
3814
|
+
# @!attribute [rw] issuers
|
|
3815
|
+
# The trusted issuers configured for the authorizer.
|
|
3816
|
+
# @return [Array<Types::JwtIssuer>]
|
|
3817
|
+
#
|
|
3818
|
+
# @!attribute [rw] default_algorithms
|
|
3819
|
+
# The signing algorithms configured for the authorizer.
|
|
3820
|
+
# @return [Array<String>]
|
|
3821
|
+
#
|
|
3822
|
+
class JwtConfiguration < Struct.new(
|
|
3823
|
+
:issuers,
|
|
3824
|
+
:default_algorithms)
|
|
3825
|
+
SENSITIVE = []
|
|
3826
|
+
include Aws::Structure
|
|
3827
|
+
end
|
|
3828
|
+
|
|
3829
|
+
# The JWT configuration supplied for a JWT authorizer.
|
|
3830
|
+
#
|
|
3831
|
+
# @!attribute [rw] issuers
|
|
3832
|
+
# The issuers that the authorizer trusts. Issuer URLs must be unique.
|
|
3833
|
+
# @return [Array<Types::JwtIssuerInput>]
|
|
3834
|
+
#
|
|
3835
|
+
# @!attribute [rw] default_algorithms
|
|
3836
|
+
# The signing algorithms that the authorizer accepts, applied to every
|
|
3837
|
+
# issuer. Valid values are `RS256`, `RS384`, `RS512`, `ES256`,
|
|
3838
|
+
# `ES384`, and `ES512`.
|
|
3839
|
+
# @return [Array<String>]
|
|
3840
|
+
#
|
|
3841
|
+
class JwtConfigurationInput < Struct.new(
|
|
3842
|
+
:issuers,
|
|
3843
|
+
:default_algorithms)
|
|
3844
|
+
SENSITIVE = []
|
|
3845
|
+
include Aws::Structure
|
|
3846
|
+
end
|
|
3847
|
+
|
|
3848
|
+
# A trusted issuer in the returned JWT configuration.
|
|
3849
|
+
#
|
|
3850
|
+
# @!attribute [rw] issuer
|
|
3851
|
+
# The OpenID Connect (OIDC) issuer URL.
|
|
3852
|
+
# @return [String]
|
|
3853
|
+
#
|
|
3854
|
+
# @!attribute [rw] audiences
|
|
3855
|
+
# The audiences that the issuer can issue tokens for.
|
|
3856
|
+
# @return [Array<String>]
|
|
3857
|
+
#
|
|
3858
|
+
# @!attribute [rw] additional_claims
|
|
3859
|
+
# The additional claim rules configured for this issuer.
|
|
3860
|
+
# @return [Array<Types::JwtAdditionalClaim>]
|
|
3861
|
+
#
|
|
3862
|
+
# @!attribute [rw] jwks_uri
|
|
3863
|
+
# The JSON Web Key Set (JWKS) URI that API Gateway resolved from the
|
|
3864
|
+
# issuer's OpenID Connect discovery document. This value is read-only
|
|
3865
|
+
# and cannot be set.
|
|
3866
|
+
# @return [String]
|
|
3867
|
+
#
|
|
3868
|
+
class JwtIssuer < Struct.new(
|
|
3869
|
+
:issuer,
|
|
3870
|
+
:audiences,
|
|
3871
|
+
:additional_claims,
|
|
3872
|
+
:jwks_uri)
|
|
3873
|
+
SENSITIVE = []
|
|
3874
|
+
include Aws::Structure
|
|
3875
|
+
end
|
|
3876
|
+
|
|
3877
|
+
# A trusted issuer in the JWT configuration.
|
|
3878
|
+
#
|
|
3879
|
+
# @!attribute [rw] issuer
|
|
3880
|
+
# The OpenID Connect (OIDC) issuer URL. The value must be an absolute
|
|
3881
|
+
# `https` URL that includes a host and has no user information, query,
|
|
3882
|
+
# or fragment. It must exactly match the `iss` claim of the token, and
|
|
3883
|
+
# the issuer's OIDC discovery document must name this exact issuer.
|
|
3884
|
+
# @return [String]
|
|
3885
|
+
#
|
|
3886
|
+
# @!attribute [rw] audiences
|
|
3887
|
+
# The audiences that the issuer can issue tokens for. None can be
|
|
3888
|
+
# empty. The token's `aud` claim must contain at least one of these
|
|
3889
|
+
# values.
|
|
3890
|
+
# @return [Array<String>]
|
|
3891
|
+
#
|
|
3892
|
+
# @!attribute [rw] additional_claims
|
|
3893
|
+
# The additional claim rules for this issuer. Claim names must be
|
|
3894
|
+
# unique within the issuer.
|
|
3895
|
+
# @return [Array<Types::JwtAdditionalClaim>]
|
|
3896
|
+
#
|
|
3897
|
+
class JwtIssuerInput < Struct.new(
|
|
3898
|
+
:issuer,
|
|
3899
|
+
:audiences,
|
|
3900
|
+
:additional_claims)
|
|
3901
|
+
SENSITIVE = []
|
|
3902
|
+
include Aws::Structure
|
|
3903
|
+
end
|
|
3904
|
+
|
|
3745
3905
|
# The request exceeded the rate limit. Retry after the specified time
|
|
3746
3906
|
# period.
|
|
3747
3907
|
#
|
|
@@ -3776,9 +3936,9 @@ module Aws::APIGateway
|
|
|
3776
3936
|
#
|
|
3777
3937
|
# @!attribute [rw] authorization_type
|
|
3778
3938
|
# The method's authorization type. Valid values are `NONE` for open
|
|
3779
|
-
# access, `AWS_IAM` for using
|
|
3780
|
-
# a custom authorizer,
|
|
3781
|
-
# user pool.
|
|
3939
|
+
# access, `AWS_IAM` for using Amazon Web Services IAM permissions,
|
|
3940
|
+
# `CUSTOM` for using a custom authorizer, `COGNITO_USER_POOLS` for
|
|
3941
|
+
# using a Cognito user pool, or `JWT` for using a JWT authorizer.
|
|
3782
3942
|
# @return [String]
|
|
3783
3943
|
#
|
|
3784
3944
|
# @!attribute [rw] authorizer_id
|
|
@@ -3839,7 +3999,9 @@ module Aws::APIGateway
|
|
|
3839
3999
|
# scopes matches a claimed scope in the access token. Otherwise, the
|
|
3840
4000
|
# invocation is not authorized. When the method scope is configured,
|
|
3841
4001
|
# the client must provide an access token instead of an identity token
|
|
3842
|
-
# for authorization purposes.
|
|
4002
|
+
# for authorization purposes. The scopes are also used with a `JWT`
|
|
4003
|
+
# authorizer. When scopes are configured, the `scope` (or `scp`) claim
|
|
4004
|
+
# of the token must contain at least one of the configured scopes.
|
|
3843
4005
|
# @return [Array<String>]
|
|
3844
4006
|
#
|
|
3845
4007
|
class Method < Struct.new(
|
|
@@ -3976,9 +4138,9 @@ module Aws::APIGateway
|
|
|
3976
4138
|
#
|
|
3977
4139
|
# @!attribute [rw] authorization_type
|
|
3978
4140
|
# The method's authorization type. Valid values are `NONE` for open
|
|
3979
|
-
# access, `AWS_IAM` for using
|
|
3980
|
-
# a custom authorizer, or `COGNITO_USER_POOLS` for
|
|
3981
|
-
# user pool.
|
|
4141
|
+
# access, `AWS_IAM` for using Amazon Web Services IAM permissions,
|
|
4142
|
+
# `CUSTOM` for using a custom authorizer, or `COGNITO_USER_POOLS` for
|
|
4143
|
+
# using a Cognito user pool.
|
|
3982
4144
|
# @return [String]
|
|
3983
4145
|
#
|
|
3984
4146
|
# @!attribute [rw] api_key_required
|
|
@@ -4154,9 +4316,9 @@ module Aws::APIGateway
|
|
|
4154
4316
|
#
|
|
4155
4317
|
# @!attribute [rw] value
|
|
4156
4318
|
# The new target value of the update operation. It is applicable for
|
|
4157
|
-
# the add or replace operation. When using
|
|
4158
|
-
#
|
|
4159
|
-
#
|
|
4319
|
+
# the add or replace operation. When using CLI to update a property of
|
|
4320
|
+
# a JSON value, enclose the JSON object with a pair of single quotes
|
|
4321
|
+
# in a Linux shell, e.g., '\{"a": ...}'.
|
|
4160
4322
|
# @return [String]
|
|
4161
4323
|
#
|
|
4162
4324
|
# @!attribute [rw] from
|
|
@@ -4345,7 +4507,7 @@ module Aws::APIGateway
|
|
|
4345
4507
|
# @return [String]
|
|
4346
4508
|
#
|
|
4347
4509
|
# @!attribute [rw] integration_target
|
|
4348
|
-
# The ALB or NLB
|
|
4510
|
+
# The ALB or NLB ARN to send the request to.
|
|
4349
4511
|
# @return [String]
|
|
4350
4512
|
#
|
|
4351
4513
|
class PutIntegrationRequest < Struct.new(
|
|
@@ -4453,9 +4615,9 @@ module Aws::APIGateway
|
|
|
4453
4615
|
#
|
|
4454
4616
|
# @!attribute [rw] authorization_type
|
|
4455
4617
|
# The method's authorization type. Valid values are `NONE` for open
|
|
4456
|
-
# access, `AWS_IAM` for using
|
|
4457
|
-
# a custom authorizer,
|
|
4458
|
-
# user pool.
|
|
4618
|
+
# access, `AWS_IAM` for using Amazon Web Services IAM permissions,
|
|
4619
|
+
# `CUSTOM` for using a custom authorizer, `COGNITO_USER_POOLS` for
|
|
4620
|
+
# using a Cognito user pool, or `JWT` for using a JWT authorizer.
|
|
4459
4621
|
# @return [String]
|
|
4460
4622
|
#
|
|
4461
4623
|
# @!attribute [rw] authorizer_id
|
|
@@ -4508,7 +4670,9 @@ module Aws::APIGateway
|
|
|
4508
4670
|
# scopes matches a claimed scope in the access token. Otherwise, the
|
|
4509
4671
|
# invocation is not authorized. When the method scope is configured,
|
|
4510
4672
|
# the client must provide an access token instead of an identity token
|
|
4511
|
-
# for authorization purposes.
|
|
4673
|
+
# for authorization purposes. The scopes are also used with a `JWT`
|
|
4674
|
+
# authorizer. When scopes are configured, the `scope` (or `scp`) claim
|
|
4675
|
+
# of the token must contain at least one of the configured scopes.
|
|
4512
4676
|
# @return [Array<String>]
|
|
4513
4677
|
#
|
|
4514
4678
|
class PutMethodRequest < Struct.new(
|
|
@@ -4602,7 +4766,7 @@ module Aws::APIGateway
|
|
|
4602
4766
|
# @!attribute [rw] parameters
|
|
4603
4767
|
# Custom header parameters as part of the request. For example, to
|
|
4604
4768
|
# exclude DocumentationParts from an imported API, set
|
|
4605
|
-
# `ignore=documentation` as a `parameters` value, as in the
|
|
4769
|
+
# `ignore=documentation` as a `parameters` value, as in the CLI
|
|
4606
4770
|
# command of `aws apigateway import-rest-api --parameters
|
|
4607
4771
|
# ignore=documentation --body
|
|
4608
4772
|
# 'file:///path/to/imported-api-body.json'`.
|
|
@@ -6226,7 +6390,8 @@ module Aws::APIGateway
|
|
|
6226
6390
|
include Aws::Structure
|
|
6227
6391
|
end
|
|
6228
6392
|
|
|
6229
|
-
# Represents a collection of usage plans for an
|
|
6393
|
+
# Represents a collection of usage plans for an Amazon Web Services
|
|
6394
|
+
# account.
|
|
6230
6395
|
#
|
|
6231
6396
|
# @!attribute [rw] position
|
|
6232
6397
|
# @return [String]
|
data/lib/aws-sdk-apigateway.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -114,7 +114,7 @@ module Aws
|
|
|
114
114
|
include ::Seahorse::Client::_ResponseSuccess[Types::Authorizer]
|
|
115
115
|
def id: () -> ::String
|
|
116
116
|
def name: () -> ::String
|
|
117
|
-
def type: () -> ("TOKEN" | "REQUEST" | "COGNITO_USER_POOLS")
|
|
117
|
+
def type: () -> ("TOKEN" | "REQUEST" | "COGNITO_USER_POOLS" | "JWT")
|
|
118
118
|
def provider_arns: () -> ::Array[::String]
|
|
119
119
|
def auth_type: () -> ::String
|
|
120
120
|
def authorizer_uri: () -> ::String
|
|
@@ -122,19 +122,37 @@ module Aws
|
|
|
122
122
|
def identity_source: () -> ::String
|
|
123
123
|
def identity_validation_expression: () -> ::String
|
|
124
124
|
def authorizer_result_ttl_in_seconds: () -> ::Integer
|
|
125
|
+
def jwt_configuration: () -> Types::JwtConfiguration
|
|
125
126
|
end
|
|
126
127
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/APIGateway/Client.html#create_authorizer-instance_method
|
|
127
128
|
def create_authorizer: (
|
|
128
129
|
rest_api_id: ::String,
|
|
129
130
|
name: ::String,
|
|
130
|
-
type: ("TOKEN" | "REQUEST" | "COGNITO_USER_POOLS"),
|
|
131
|
+
type: ("TOKEN" | "REQUEST" | "COGNITO_USER_POOLS" | "JWT"),
|
|
131
132
|
?provider_arns: Array[::String],
|
|
132
133
|
?auth_type: ::String,
|
|
133
134
|
?authorizer_uri: ::String,
|
|
134
135
|
?authorizer_credentials: ::String,
|
|
135
136
|
?identity_source: ::String,
|
|
136
137
|
?identity_validation_expression: ::String,
|
|
137
|
-
?authorizer_result_ttl_in_seconds: ::Integer
|
|
138
|
+
?authorizer_result_ttl_in_seconds: ::Integer,
|
|
139
|
+
?jwt_configuration: {
|
|
140
|
+
issuers: Array[
|
|
141
|
+
{
|
|
142
|
+
issuer: ::String,
|
|
143
|
+
audiences: Array[::String],
|
|
144
|
+
additional_claims: Array[
|
|
145
|
+
{
|
|
146
|
+
claim_name: ::String,
|
|
147
|
+
format: ("SINGLE_STRING"),
|
|
148
|
+
required: bool?,
|
|
149
|
+
expected_values: Array[::String]?
|
|
150
|
+
}
|
|
151
|
+
]?
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
default_algorithms: Array[("RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512")]
|
|
155
|
+
}
|
|
138
156
|
) -> _CreateAuthorizerResponseSuccess
|
|
139
157
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAuthorizerResponseSuccess
|
|
140
158
|
|
|
@@ -728,7 +746,7 @@ module Aws
|
|
|
728
746
|
include ::Seahorse::Client::_ResponseSuccess[Types::Authorizer]
|
|
729
747
|
def id: () -> ::String
|
|
730
748
|
def name: () -> ::String
|
|
731
|
-
def type: () -> ("TOKEN" | "REQUEST" | "COGNITO_USER_POOLS")
|
|
749
|
+
def type: () -> ("TOKEN" | "REQUEST" | "COGNITO_USER_POOLS" | "JWT")
|
|
732
750
|
def provider_arns: () -> ::Array[::String]
|
|
733
751
|
def auth_type: () -> ::String
|
|
734
752
|
def authorizer_uri: () -> ::String
|
|
@@ -736,6 +754,7 @@ module Aws
|
|
|
736
754
|
def identity_source: () -> ::String
|
|
737
755
|
def identity_validation_expression: () -> ::String
|
|
738
756
|
def authorizer_result_ttl_in_seconds: () -> ::Integer
|
|
757
|
+
def jwt_configuration: () -> Types::JwtConfiguration
|
|
739
758
|
end
|
|
740
759
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/APIGateway/Client.html#get_authorizer-instance_method
|
|
741
760
|
def get_authorizer: (
|
|
@@ -1749,7 +1768,7 @@ module Aws
|
|
|
1749
1768
|
include ::Seahorse::Client::_ResponseSuccess[Types::Authorizer]
|
|
1750
1769
|
def id: () -> ::String
|
|
1751
1770
|
def name: () -> ::String
|
|
1752
|
-
def type: () -> ("TOKEN" | "REQUEST" | "COGNITO_USER_POOLS")
|
|
1771
|
+
def type: () -> ("TOKEN" | "REQUEST" | "COGNITO_USER_POOLS" | "JWT")
|
|
1753
1772
|
def provider_arns: () -> ::Array[::String]
|
|
1754
1773
|
def auth_type: () -> ::String
|
|
1755
1774
|
def authorizer_uri: () -> ::String
|
|
@@ -1757,6 +1776,7 @@ module Aws
|
|
|
1757
1776
|
def identity_source: () -> ::String
|
|
1758
1777
|
def identity_validation_expression: () -> ::String
|
|
1759
1778
|
def authorizer_result_ttl_in_seconds: () -> ::Integer
|
|
1779
|
+
def jwt_configuration: () -> Types::JwtConfiguration
|
|
1760
1780
|
end
|
|
1761
1781
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/APIGateway/Client.html#update_authorizer-instance_method
|
|
1762
1782
|
def update_authorizer: (
|
data/sig/types.rbs
CHANGED
|
@@ -59,7 +59,7 @@ module Aws::APIGateway
|
|
|
59
59
|
class Authorizer
|
|
60
60
|
attr_accessor id: ::String
|
|
61
61
|
attr_accessor name: ::String
|
|
62
|
-
attr_accessor type: ("TOKEN" | "REQUEST" | "COGNITO_USER_POOLS")
|
|
62
|
+
attr_accessor type: ("TOKEN" | "REQUEST" | "COGNITO_USER_POOLS" | "JWT")
|
|
63
63
|
attr_accessor provider_arns: ::Array[::String]
|
|
64
64
|
attr_accessor auth_type: ::String
|
|
65
65
|
attr_accessor authorizer_uri: ::String
|
|
@@ -67,6 +67,7 @@ module Aws::APIGateway
|
|
|
67
67
|
attr_accessor identity_source: ::String
|
|
68
68
|
attr_accessor identity_validation_expression: ::String
|
|
69
69
|
attr_accessor authorizer_result_ttl_in_seconds: ::Integer
|
|
70
|
+
attr_accessor jwt_configuration: Types::JwtConfiguration
|
|
70
71
|
SENSITIVE: []
|
|
71
72
|
end
|
|
72
73
|
|
|
@@ -138,7 +139,7 @@ module Aws::APIGateway
|
|
|
138
139
|
class CreateAuthorizerRequest
|
|
139
140
|
attr_accessor rest_api_id: ::String
|
|
140
141
|
attr_accessor name: ::String
|
|
141
|
-
attr_accessor type: ("TOKEN" | "REQUEST" | "COGNITO_USER_POOLS")
|
|
142
|
+
attr_accessor type: ("TOKEN" | "REQUEST" | "COGNITO_USER_POOLS" | "JWT")
|
|
142
143
|
attr_accessor provider_arns: ::Array[::String]
|
|
143
144
|
attr_accessor auth_type: ::String
|
|
144
145
|
attr_accessor authorizer_uri: ::String
|
|
@@ -146,6 +147,7 @@ module Aws::APIGateway
|
|
|
146
147
|
attr_accessor identity_source: ::String
|
|
147
148
|
attr_accessor identity_validation_expression: ::String
|
|
148
149
|
attr_accessor authorizer_result_ttl_in_seconds: ::Integer
|
|
150
|
+
attr_accessor jwt_configuration: Types::JwtConfigurationInput
|
|
149
151
|
SENSITIVE: []
|
|
150
152
|
end
|
|
151
153
|
|
|
@@ -954,6 +956,41 @@ module Aws::APIGateway
|
|
|
954
956
|
SENSITIVE: []
|
|
955
957
|
end
|
|
956
958
|
|
|
959
|
+
class JwtAdditionalClaim
|
|
960
|
+
attr_accessor claim_name: ::String
|
|
961
|
+
attr_accessor format: ("SINGLE_STRING")
|
|
962
|
+
attr_accessor required: bool
|
|
963
|
+
attr_accessor expected_values: ::Array[::String]
|
|
964
|
+
SENSITIVE: []
|
|
965
|
+
end
|
|
966
|
+
|
|
967
|
+
class JwtConfiguration
|
|
968
|
+
attr_accessor issuers: ::Array[Types::JwtIssuer]
|
|
969
|
+
attr_accessor default_algorithms: ::Array[("RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512")]
|
|
970
|
+
SENSITIVE: []
|
|
971
|
+
end
|
|
972
|
+
|
|
973
|
+
class JwtConfigurationInput
|
|
974
|
+
attr_accessor issuers: ::Array[Types::JwtIssuerInput]
|
|
975
|
+
attr_accessor default_algorithms: ::Array[("RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512")]
|
|
976
|
+
SENSITIVE: []
|
|
977
|
+
end
|
|
978
|
+
|
|
979
|
+
class JwtIssuer
|
|
980
|
+
attr_accessor issuer: ::String
|
|
981
|
+
attr_accessor audiences: ::Array[::String]
|
|
982
|
+
attr_accessor additional_claims: ::Array[Types::JwtAdditionalClaim]
|
|
983
|
+
attr_accessor jwks_uri: ::String
|
|
984
|
+
SENSITIVE: []
|
|
985
|
+
end
|
|
986
|
+
|
|
987
|
+
class JwtIssuerInput
|
|
988
|
+
attr_accessor issuer: ::String
|
|
989
|
+
attr_accessor audiences: ::Array[::String]
|
|
990
|
+
attr_accessor additional_claims: ::Array[Types::JwtAdditionalClaim]
|
|
991
|
+
SENSITIVE: []
|
|
992
|
+
end
|
|
993
|
+
|
|
957
994
|
class LimitExceededException
|
|
958
995
|
attr_accessor retry_after_seconds: ::String
|
|
959
996
|
attr_accessor message: ::String
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-apigateway
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.153.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
@@ -18,7 +18,7 @@ dependencies:
|
|
|
18
18
|
version: '3'
|
|
19
19
|
- - ">="
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 3.
|
|
21
|
+
version: 3.270.0
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -28,7 +28,7 @@ dependencies:
|
|
|
28
28
|
version: '3'
|
|
29
29
|
- - ">="
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
|
-
version: 3.
|
|
31
|
+
version: 3.270.0
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: aws-sigv4
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|