lib/aws-sdk-apigatewayv2/client.rb in aws-sdk-apigatewayv2-1.25.0 vs lib/aws-sdk-apigatewayv2/client.rb in aws-sdk-apigatewayv2-1.26.0
- old
+ new
@@ -526,13 +526,13 @@
#
# @option params [Integer] :authorizer_result_ttl_in_seconds
# An integer with a value between \[0-3600\].
#
# @option params [required, String] :authorizer_type
- # The authorizer type. For WebSocket APIs, specify REQUEST for a Lambda
- # function using incoming request parameters. For HTTP APIs, specify JWT
- # to use JSON Web Tokens.
+ # The authorizer type. Specify REQUEST for a Lambda function using
+ # incoming request parameters. Specify JWT to use JSON Web Tokens
+ # (supported only for HTTP APIs).
#
# @option params [String] :authorizer_uri
# A string representation of a URI with a length between \[1-2048\].
#
# @option params [required, Array<String>] :identity_source
@@ -560,10 +560,15 @@
# authorizer type. Supported only for HTTP APIs.
#
# @option params [required, String] :name
# A string with a length between \[1-128\].
#
+ # @option params [String] :authorizer_payload_format_version
+ # A string with a length between \[1-64\].
+ #
+ # @option params [Boolean] :enable_simple_responses
+ #
# @return [Types::CreateAuthorizerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::CreateAuthorizerResponse#authorizer_credentials_arn #authorizer_credentials_arn} => String
# * {Types::CreateAuthorizerResponse#authorizer_id #authorizer_id} => String
# * {Types::CreateAuthorizerResponse#authorizer_result_ttl_in_seconds #authorizer_result_ttl_in_seconds} => Integer
@@ -571,10 +576,12 @@
# * {Types::CreateAuthorizerResponse#authorizer_uri #authorizer_uri} => String
# * {Types::CreateAuthorizerResponse#identity_source #identity_source} => Array<String>
# * {Types::CreateAuthorizerResponse#identity_validation_expression #identity_validation_expression} => String
# * {Types::CreateAuthorizerResponse#jwt_configuration #jwt_configuration} => Types::JWTConfiguration
# * {Types::CreateAuthorizerResponse#name #name} => String
+ # * {Types::CreateAuthorizerResponse#authorizer_payload_format_version #authorizer_payload_format_version} => String
+ # * {Types::CreateAuthorizerResponse#enable_simple_responses #enable_simple_responses} => Boolean
#
# @example Request syntax with placeholder values
#
# resp = client.create_authorizer({
# api_id: "__string", # required
@@ -587,10 +594,12 @@
# jwt_configuration: {
# audience: ["__string"],
# issuer: "UriWithLengthBetween1And2048",
# },
# name: "StringWithLengthBetween1And128", # required
+ # authorizer_payload_format_version: "StringWithLengthBetween1And64",
+ # enable_simple_responses: false,
# })
#
# @example Response structure
#
# resp.authorizer_credentials_arn #=> String
@@ -603,10 +612,12 @@
# resp.identity_validation_expression #=> String
# resp.jwt_configuration.audience #=> Array
# resp.jwt_configuration.audience[0] #=> String
# resp.jwt_configuration.issuer #=> String
# resp.name #=> String
+ # resp.authorizer_payload_format_version #=> String
+ # resp.enable_simple_responses #=> Boolean
#
# @overload create_authorizer(params = {})
# @param [Hash] params ({})
def create_authorizer(params = {}, options = {})
req = build_request(:create_authorizer, params)
@@ -1030,11 +1041,12 @@
#
# @option params [String] :authorization_type
# The authorization type. For WebSocket APIs, valid values are NONE for
# open access, AWS\_IAM for using AWS IAM permissions, and CUSTOM for
# using a Lambda authorizer. For HTTP APIs, valid values are NONE for
- # open access, or JWT for using JSON Web Tokens.
+ # open access, JWT for using JSON Web Tokens, AWS\_IAM for using AWS IAM
+ # permissions, and CUSTOM for using a Lambda authorizer.
#
# @option params [String] :authorizer_id
# The identifier.
#
# @option params [String] :model_selection_expression
@@ -1786,10 +1798,33 @@
def export_api(params = {}, options = {})
req = build_request(:export_api, params)
req.send_request(options)
end
+ # Resets all authorizer cache entries for the specified stage. Supported
+ # only for HTTP API Lambda authorizers.
+ #
+ # @option params [required, String] :api_id
+ #
+ # @option params [required, String] :stage_name
+ #
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.reset_authorizers_cache({
+ # api_id: "__string", # required
+ # stage_name: "__string", # required
+ # })
+ #
+ # @overload reset_authorizers_cache(params = {})
+ # @param [Hash] params ({})
+ def reset_authorizers_cache(params = {}, options = {})
+ req = build_request(:reset_authorizers_cache, params)
+ req.send_request(options)
+ end
+
# Gets an Api resource.
#
# @option params [required, String] :api_id
#
# @return [Types::GetApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -1996,10 +2031,12 @@
# * {Types::GetAuthorizerResponse#authorizer_uri #authorizer_uri} => String
# * {Types::GetAuthorizerResponse#identity_source #identity_source} => Array<String>
# * {Types::GetAuthorizerResponse#identity_validation_expression #identity_validation_expression} => String
# * {Types::GetAuthorizerResponse#jwt_configuration #jwt_configuration} => Types::JWTConfiguration
# * {Types::GetAuthorizerResponse#name #name} => String
+ # * {Types::GetAuthorizerResponse#authorizer_payload_format_version #authorizer_payload_format_version} => String
+ # * {Types::GetAuthorizerResponse#enable_simple_responses #enable_simple_responses} => Boolean
#
# @example Request syntax with placeholder values
#
# resp = client.get_authorizer({
# api_id: "__string", # required
@@ -2018,10 +2055,12 @@
# resp.identity_validation_expression #=> String
# resp.jwt_configuration.audience #=> Array
# resp.jwt_configuration.audience[0] #=> String
# resp.jwt_configuration.issuer #=> String
# resp.name #=> String
+ # resp.authorizer_payload_format_version #=> String
+ # resp.enable_simple_responses #=> Boolean
#
# @overload get_authorizer(params = {})
# @param [Hash] params ({})
def get_authorizer(params = {}, options = {})
req = build_request(:get_authorizer, params)
@@ -2062,10 +2101,12 @@
# resp.items[0].identity_validation_expression #=> String
# resp.items[0].jwt_configuration.audience #=> Array
# resp.items[0].jwt_configuration.audience[0] #=> String
# resp.items[0].jwt_configuration.issuer #=> String
# resp.items[0].name #=> String
+ # resp.items[0].authorizer_payload_format_version #=> String
+ # resp.items[0].enable_simple_responses #=> Boolean
# resp.next_token #=> String
#
# @overload get_authorizers(params = {})
# @param [Hash] params ({})
def get_authorizers(params = {}, options = {})
@@ -3358,13 +3399,13 @@
#
# @option params [Integer] :authorizer_result_ttl_in_seconds
# An integer with a value between \[0-3600\].
#
# @option params [String] :authorizer_type
- # The authorizer type. For WebSocket APIs, specify REQUEST for a Lambda
- # function using incoming request parameters. For HTTP APIs, specify JWT
- # to use JSON Web Tokens.
+ # The authorizer type. Specify REQUEST for a Lambda function using
+ # incoming request parameters. Specify JWT to use JSON Web Tokens
+ # (supported only for HTTP APIs).
#
# @option params [String] :authorizer_uri
# A string representation of a URI with a length between \[1-2048\].
#
# @option params [Array<String>] :identity_source
@@ -3392,10 +3433,15 @@
# authorizer type. Supported only for HTTP APIs.
#
# @option params [String] :name
# A string with a length between \[1-128\].
#
+ # @option params [String] :authorizer_payload_format_version
+ # A string with a length between \[1-64\].
+ #
+ # @option params [Boolean] :enable_simple_responses
+ #
# @return [Types::UpdateAuthorizerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::UpdateAuthorizerResponse#authorizer_credentials_arn #authorizer_credentials_arn} => String
# * {Types::UpdateAuthorizerResponse#authorizer_id #authorizer_id} => String
# * {Types::UpdateAuthorizerResponse#authorizer_result_ttl_in_seconds #authorizer_result_ttl_in_seconds} => Integer
@@ -3403,10 +3449,12 @@
# * {Types::UpdateAuthorizerResponse#authorizer_uri #authorizer_uri} => String
# * {Types::UpdateAuthorizerResponse#identity_source #identity_source} => Array<String>
# * {Types::UpdateAuthorizerResponse#identity_validation_expression #identity_validation_expression} => String
# * {Types::UpdateAuthorizerResponse#jwt_configuration #jwt_configuration} => Types::JWTConfiguration
# * {Types::UpdateAuthorizerResponse#name #name} => String
+ # * {Types::UpdateAuthorizerResponse#authorizer_payload_format_version #authorizer_payload_format_version} => String
+ # * {Types::UpdateAuthorizerResponse#enable_simple_responses #enable_simple_responses} => Boolean
#
# @example Request syntax with placeholder values
#
# resp = client.update_authorizer({
# api_id: "__string", # required
@@ -3420,10 +3468,12 @@
# jwt_configuration: {
# audience: ["__string"],
# issuer: "UriWithLengthBetween1And2048",
# },
# name: "StringWithLengthBetween1And128",
+ # authorizer_payload_format_version: "StringWithLengthBetween1And64",
+ # enable_simple_responses: false,
# })
#
# @example Response structure
#
# resp.authorizer_credentials_arn #=> String
@@ -3436,10 +3486,12 @@
# resp.identity_validation_expression #=> String
# resp.jwt_configuration.audience #=> Array
# resp.jwt_configuration.audience[0] #=> String
# resp.jwt_configuration.issuer #=> String
# resp.name #=> String
+ # resp.authorizer_payload_format_version #=> String
+ # resp.enable_simple_responses #=> Boolean
#
# @overload update_authorizer(params = {})
# @param [Hash] params ({})
def update_authorizer(params = {}, options = {})
req = build_request(:update_authorizer, params)
@@ -3864,11 +3916,12 @@
#
# @option params [String] :authorization_type
# The authorization type. For WebSocket APIs, valid values are NONE for
# open access, AWS\_IAM for using AWS IAM permissions, and CUSTOM for
# using a Lambda authorizer. For HTTP APIs, valid values are NONE for
- # open access, or JWT for using JSON Web Tokens.
+ # open access, JWT for using JSON Web Tokens, AWS\_IAM for using AWS IAM
+ # permissions, and CUSTOM for using a Lambda authorizer.
#
# @option params [String] :authorizer_id
# The identifier.
#
# @option params [String] :model_selection_expression
@@ -4227,10 +4280,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-apigatewayv2'
- context[:gem_version] = '1.25.0'
+ context[:gem_version] = '1.26.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated