/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ApiGatewayV2 { namespace Model { class GetAuthorizerResult { public: AWS_APIGATEWAYV2_API GetAuthorizerResult(); AWS_APIGATEWAYV2_API GetAuthorizerResult(const Aws::AmazonWebServiceResult& result); AWS_APIGATEWAYV2_API GetAuthorizerResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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, don't specify this parameter. Supported only for REQUEST * authorizers.

*/ inline const Aws::String& GetAuthorizerCredentialsArn() const{ return m_authorizerCredentialsArn; } /** *

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, don't specify this parameter. Supported only for REQUEST * authorizers.

*/ inline void SetAuthorizerCredentialsArn(const Aws::String& value) { m_authorizerCredentialsArn = value; } /** *

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, don't specify this parameter. Supported only for REQUEST * authorizers.

*/ inline void SetAuthorizerCredentialsArn(Aws::String&& value) { m_authorizerCredentialsArn = std::move(value); } /** *

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, don't specify this parameter. Supported only for REQUEST * authorizers.

*/ inline void SetAuthorizerCredentialsArn(const char* value) { m_authorizerCredentialsArn.assign(value); } /** *

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, don't specify this parameter. Supported only for REQUEST * authorizers.

*/ inline GetAuthorizerResult& WithAuthorizerCredentialsArn(const Aws::String& value) { SetAuthorizerCredentialsArn(value); return *this;} /** *

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, don't specify this parameter. Supported only for REQUEST * authorizers.

*/ inline GetAuthorizerResult& WithAuthorizerCredentialsArn(Aws::String&& value) { SetAuthorizerCredentialsArn(std::move(value)); return *this;} /** *

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, don't specify this parameter. Supported only for REQUEST * authorizers.

*/ inline GetAuthorizerResult& WithAuthorizerCredentialsArn(const char* value) { SetAuthorizerCredentialsArn(value); return *this;} /** *

The authorizer identifier.

*/ inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; } /** *

The authorizer identifier.

*/ inline void SetAuthorizerId(const Aws::String& value) { m_authorizerId = value; } /** *

The authorizer identifier.

*/ inline void SetAuthorizerId(Aws::String&& value) { m_authorizerId = std::move(value); } /** *

The authorizer identifier.

*/ inline void SetAuthorizerId(const char* value) { m_authorizerId.assign(value); } /** *

The authorizer identifier.

*/ inline GetAuthorizerResult& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;} /** *

The authorizer identifier.

*/ inline GetAuthorizerResult& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(std::move(value)); return *this;} /** *

The authorizer identifier.

*/ inline GetAuthorizerResult& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;} /** *

Specifies the format of the payload sent to an HTTP API Lambda authorizer. * Required for HTTP API Lambda authorizers. Supported values are 1.0 and 2.0. To * learn more, see Working * with AWS Lambda authorizers for HTTP APIs.

*/ inline const Aws::String& GetAuthorizerPayloadFormatVersion() const{ return m_authorizerPayloadFormatVersion; } /** *

Specifies the format of the payload sent to an HTTP API Lambda authorizer. * Required for HTTP API Lambda authorizers. Supported values are 1.0 and 2.0. To * learn more, see Working * with AWS Lambda authorizers for HTTP APIs.

*/ inline void SetAuthorizerPayloadFormatVersion(const Aws::String& value) { m_authorizerPayloadFormatVersion = value; } /** *

Specifies the format of the payload sent to an HTTP API Lambda authorizer. * Required for HTTP API Lambda authorizers. Supported values are 1.0 and 2.0. To * learn more, see Working * with AWS Lambda authorizers for HTTP APIs.

*/ inline void SetAuthorizerPayloadFormatVersion(Aws::String&& value) { m_authorizerPayloadFormatVersion = std::move(value); } /** *

Specifies the format of the payload sent to an HTTP API Lambda authorizer. * Required for HTTP API Lambda authorizers. Supported values are 1.0 and 2.0. To * learn more, see Working * with AWS Lambda authorizers for HTTP APIs.

*/ inline void SetAuthorizerPayloadFormatVersion(const char* value) { m_authorizerPayloadFormatVersion.assign(value); } /** *

Specifies the format of the payload sent to an HTTP API Lambda authorizer. * Required for HTTP API Lambda authorizers. Supported values are 1.0 and 2.0. To * learn more, see Working * with AWS Lambda authorizers for HTTP APIs.

*/ inline GetAuthorizerResult& WithAuthorizerPayloadFormatVersion(const Aws::String& value) { SetAuthorizerPayloadFormatVersion(value); return *this;} /** *

Specifies the format of the payload sent to an HTTP API Lambda authorizer. * Required for HTTP API Lambda authorizers. Supported values are 1.0 and 2.0. To * learn more, see Working * with AWS Lambda authorizers for HTTP APIs.

*/ inline GetAuthorizerResult& WithAuthorizerPayloadFormatVersion(Aws::String&& value) { SetAuthorizerPayloadFormatVersion(std::move(value)); return *this;} /** *

Specifies the format of the payload sent to an HTTP API Lambda authorizer. * Required for HTTP API Lambda authorizers. Supported values are 1.0 and 2.0. To * learn more, see Working * with AWS Lambda authorizers for HTTP APIs.

*/ inline GetAuthorizerResult& WithAuthorizerPayloadFormatVersion(const char* value) { SetAuthorizerPayloadFormatVersion(value); return *this;} /** *

The time to live (TTL) for cached authorizer results, in seconds. If it * equals 0, authorization caching is disabled. If it is greater than 0, API * Gateway caches authorizer responses. The maximum value is 3600, or 1 hour. * Supported only for HTTP API Lambda authorizers.

*/ inline int GetAuthorizerResultTtlInSeconds() const{ return m_authorizerResultTtlInSeconds; } /** *

The time to live (TTL) for cached authorizer results, in seconds. If it * equals 0, authorization caching is disabled. If it is greater than 0, API * Gateway caches authorizer responses. The maximum value is 3600, or 1 hour. * Supported only for HTTP API Lambda authorizers.

*/ inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSeconds = value; } /** *

The time to live (TTL) for cached authorizer results, in seconds. If it * equals 0, authorization caching is disabled. If it is greater than 0, API * Gateway caches authorizer responses. The maximum value is 3600, or 1 hour. * Supported only for HTTP API Lambda authorizers.

*/ inline GetAuthorizerResult& WithAuthorizerResultTtlInSeconds(int value) { SetAuthorizerResultTtlInSeconds(value); return *this;} /** *

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).

*/ inline const AuthorizerType& GetAuthorizerType() const{ return m_authorizerType; } /** *

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).

*/ inline void SetAuthorizerType(const AuthorizerType& value) { m_authorizerType = value; } /** *

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).

*/ inline void SetAuthorizerType(AuthorizerType&& value) { m_authorizerType = std::move(value); } /** *

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).

*/ inline GetAuthorizerResult& WithAuthorizerType(const AuthorizerType& value) { SetAuthorizerType(value); return *this;} /** *

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).

*/ inline GetAuthorizerResult& WithAuthorizerType(AuthorizerType&& value) { SetAuthorizerType(std::move(value)); return *this;} /** *

The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, * this must be a well-formed Lambda function URI, for example, * 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. * In general, the URI has this form: * arn:aws:apigateway:{region}:lambda:path/{service_api} * , where {region} is the same as the region hosting * the Lambda function, path indicates that the remaining substring in the URI * should be treated as the path to the resource, including the initial /. For * Lambda functions, this is usually of the form * /2015-03-31/functions/[FunctionARN]/invocations. Supported only for REQUEST * authorizers.

*/ inline const Aws::String& GetAuthorizerUri() const{ return m_authorizerUri; } /** *

The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, * this must be a well-formed Lambda function URI, for example, * 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. * In general, the URI has this form: * arn:aws:apigateway:{region}:lambda:path/{service_api} * , where {region} is the same as the region hosting * the Lambda function, path indicates that the remaining substring in the URI * should be treated as the path to the resource, including the initial /. For * Lambda functions, this is usually of the form * /2015-03-31/functions/[FunctionARN]/invocations. Supported only for REQUEST * authorizers.

*/ inline void SetAuthorizerUri(const Aws::String& value) { m_authorizerUri = value; } /** *

The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, * this must be a well-formed Lambda function URI, for example, * 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. * In general, the URI has this form: * arn:aws:apigateway:{region}:lambda:path/{service_api} * , where {region} is the same as the region hosting * the Lambda function, path indicates that the remaining substring in the URI * should be treated as the path to the resource, including the initial /. For * Lambda functions, this is usually of the form * /2015-03-31/functions/[FunctionARN]/invocations. Supported only for REQUEST * authorizers.

*/ inline void SetAuthorizerUri(Aws::String&& value) { m_authorizerUri = std::move(value); } /** *

The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, * this must be a well-formed Lambda function URI, for example, * 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. * In general, the URI has this form: * arn:aws:apigateway:{region}:lambda:path/{service_api} * , where {region} is the same as the region hosting * the Lambda function, path indicates that the remaining substring in the URI * should be treated as the path to the resource, including the initial /. For * Lambda functions, this is usually of the form * /2015-03-31/functions/[FunctionARN]/invocations. Supported only for REQUEST * authorizers.

*/ inline void SetAuthorizerUri(const char* value) { m_authorizerUri.assign(value); } /** *

The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, * this must be a well-formed Lambda function URI, for example, * 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. * In general, the URI has this form: * arn:aws:apigateway:{region}:lambda:path/{service_api} * , where {region} is the same as the region hosting * the Lambda function, path indicates that the remaining substring in the URI * should be treated as the path to the resource, including the initial /. For * Lambda functions, this is usually of the form * /2015-03-31/functions/[FunctionARN]/invocations. Supported only for REQUEST * authorizers.

*/ inline GetAuthorizerResult& WithAuthorizerUri(const Aws::String& value) { SetAuthorizerUri(value); return *this;} /** *

The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, * this must be a well-formed Lambda function URI, for example, * 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. * In general, the URI has this form: * arn:aws:apigateway:{region}:lambda:path/{service_api} * , where {region} is the same as the region hosting * the Lambda function, path indicates that the remaining substring in the URI * should be treated as the path to the resource, including the initial /. For * Lambda functions, this is usually of the form * /2015-03-31/functions/[FunctionARN]/invocations. Supported only for REQUEST * authorizers.

*/ inline GetAuthorizerResult& WithAuthorizerUri(Aws::String&& value) { SetAuthorizerUri(std::move(value)); return *this;} /** *

The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, * this must be a well-formed Lambda function URI, for example, * 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. * In general, the URI has this form: * arn:aws:apigateway:{region}:lambda:path/{service_api} * , where {region} is the same as the region hosting * the Lambda function, path indicates that the remaining substring in the URI * should be treated as the path to the resource, including the initial /. For * Lambda functions, this is usually of the form * /2015-03-31/functions/[FunctionARN]/invocations. Supported only for REQUEST * authorizers.

*/ inline GetAuthorizerResult& WithAuthorizerUri(const char* value) { SetAuthorizerUri(value); return *this;} /** *

Specifies whether a Lambda authorizer returns a response in a simple format. * If enabled, the Lambda authorizer can return a boolean value instead of an IAM * policy. Supported only for HTTP APIs. To learn more, see Working * with AWS Lambda authorizers for HTTP APIs

*/ inline bool GetEnableSimpleResponses() const{ return m_enableSimpleResponses; } /** *

Specifies whether a Lambda authorizer returns a response in a simple format. * If enabled, the Lambda authorizer can return a boolean value instead of an IAM * policy. Supported only for HTTP APIs. To learn more, see Working * with AWS Lambda authorizers for HTTP APIs

*/ inline void SetEnableSimpleResponses(bool value) { m_enableSimpleResponses = value; } /** *

Specifies whether a Lambda authorizer returns a response in a simple format. * If enabled, the Lambda authorizer can return a boolean value instead of an IAM * policy. Supported only for HTTP APIs. To learn more, see Working * with AWS Lambda authorizers for HTTP APIs

*/ inline GetAuthorizerResult& WithEnableSimpleResponses(bool value) { SetEnableSimpleResponses(value); return *this;} /** *

The identity source for which authorization is requested.

For a * REQUEST authorizer, this is optional. The value is a set of one or more mapping * expressions of the specified request parameters. The identity source can be * headers, query string parameters, stage variables, and context parameters. For * example, if an Auth header and a Name query string parameter are defined as * identity sources, this value is route.request.header.Auth, * route.request.querystring.Name for WebSocket APIs. For HTTP APIs, use selection * expressions prefixed with $, for example, $request.header.Auth, * $request.querystring.Name. These parameters are used to perform runtime * validation for Lambda-based authorizers by verifying all of the identity-related * request parameters are present in the request, not null, and non-empty. Only * when this is true does the authorizer invoke the authorizer Lambda function. * Otherwise, it returns a 401 Unauthorized response without calling the Lambda * function. For HTTP APIs, identity sources are also used as the cache key when * caching is enabled. To learn more, see Working * with AWS Lambda authorizers for HTTP APIs.

For JWT, a single entry * that specifies where to extract the JSON Web Token (JWT) from inbound requests. * Currently only header-based and query parameter-based selections are supported, * for example $request.header.Authorization.

*/ inline const Aws::Vector& GetIdentitySource() const{ return m_identitySource; } /** *

The identity source for which authorization is requested.

For a * REQUEST authorizer, this is optional. The value is a set of one or more mapping * expressions of the specified request parameters. The identity source can be * headers, query string parameters, stage variables, and context parameters. For * example, if an Auth header and a Name query string parameter are defined as * identity sources, this value is route.request.header.Auth, * route.request.querystring.Name for WebSocket APIs. For HTTP APIs, use selection * expressions prefixed with $, for example, $request.header.Auth, * $request.querystring.Name. These parameters are used to perform runtime * validation for Lambda-based authorizers by verifying all of the identity-related * request parameters are present in the request, not null, and non-empty. Only * when this is true does the authorizer invoke the authorizer Lambda function. * Otherwise, it returns a 401 Unauthorized response without calling the Lambda * function. For HTTP APIs, identity sources are also used as the cache key when * caching is enabled. To learn more, see Working * with AWS Lambda authorizers for HTTP APIs.

For JWT, a single entry * that specifies where to extract the JSON Web Token (JWT) from inbound requests. * Currently only header-based and query parameter-based selections are supported, * for example $request.header.Authorization.

*/ inline void SetIdentitySource(const Aws::Vector& value) { m_identitySource = value; } /** *

The identity source for which authorization is requested.

For a * REQUEST authorizer, this is optional. The value is a set of one or more mapping * expressions of the specified request parameters. The identity source can be * headers, query string parameters, stage variables, and context parameters. For * example, if an Auth header and a Name query string parameter are defined as * identity sources, this value is route.request.header.Auth, * route.request.querystring.Name for WebSocket APIs. For HTTP APIs, use selection * expressions prefixed with $, for example, $request.header.Auth, * $request.querystring.Name. These parameters are used to perform runtime * validation for Lambda-based authorizers by verifying all of the identity-related * request parameters are present in the request, not null, and non-empty. Only * when this is true does the authorizer invoke the authorizer Lambda function. * Otherwise, it returns a 401 Unauthorized response without calling the Lambda * function. For HTTP APIs, identity sources are also used as the cache key when * caching is enabled. To learn more, see Working * with AWS Lambda authorizers for HTTP APIs.

For JWT, a single entry * that specifies where to extract the JSON Web Token (JWT) from inbound requests. * Currently only header-based and query parameter-based selections are supported, * for example $request.header.Authorization.

*/ inline void SetIdentitySource(Aws::Vector&& value) { m_identitySource = std::move(value); } /** *

The identity source for which authorization is requested.

For a * REQUEST authorizer, this is optional. The value is a set of one or more mapping * expressions of the specified request parameters. The identity source can be * headers, query string parameters, stage variables, and context parameters. For * example, if an Auth header and a Name query string parameter are defined as * identity sources, this value is route.request.header.Auth, * route.request.querystring.Name for WebSocket APIs. For HTTP APIs, use selection * expressions prefixed with $, for example, $request.header.Auth, * $request.querystring.Name. These parameters are used to perform runtime * validation for Lambda-based authorizers by verifying all of the identity-related * request parameters are present in the request, not null, and non-empty. Only * when this is true does the authorizer invoke the authorizer Lambda function. * Otherwise, it returns a 401 Unauthorized response without calling the Lambda * function. For HTTP APIs, identity sources are also used as the cache key when * caching is enabled. To learn more, see Working * with AWS Lambda authorizers for HTTP APIs.

For JWT, a single entry * that specifies where to extract the JSON Web Token (JWT) from inbound requests. * Currently only header-based and query parameter-based selections are supported, * for example $request.header.Authorization.

*/ inline GetAuthorizerResult& WithIdentitySource(const Aws::Vector& value) { SetIdentitySource(value); return *this;} /** *

The identity source for which authorization is requested.

For a * REQUEST authorizer, this is optional. The value is a set of one or more mapping * expressions of the specified request parameters. The identity source can be * headers, query string parameters, stage variables, and context parameters. For * example, if an Auth header and a Name query string parameter are defined as * identity sources, this value is route.request.header.Auth, * route.request.querystring.Name for WebSocket APIs. For HTTP APIs, use selection * expressions prefixed with $, for example, $request.header.Auth, * $request.querystring.Name. These parameters are used to perform runtime * validation for Lambda-based authorizers by verifying all of the identity-related * request parameters are present in the request, not null, and non-empty. Only * when this is true does the authorizer invoke the authorizer Lambda function. * Otherwise, it returns a 401 Unauthorized response without calling the Lambda * function. For HTTP APIs, identity sources are also used as the cache key when * caching is enabled. To learn more, see Working * with AWS Lambda authorizers for HTTP APIs.

For JWT, a single entry * that specifies where to extract the JSON Web Token (JWT) from inbound requests. * Currently only header-based and query parameter-based selections are supported, * for example $request.header.Authorization.

*/ inline GetAuthorizerResult& WithIdentitySource(Aws::Vector&& value) { SetIdentitySource(std::move(value)); return *this;} /** *

The identity source for which authorization is requested.

For a * REQUEST authorizer, this is optional. The value is a set of one or more mapping * expressions of the specified request parameters. The identity source can be * headers, query string parameters, stage variables, and context parameters. For * example, if an Auth header and a Name query string parameter are defined as * identity sources, this value is route.request.header.Auth, * route.request.querystring.Name for WebSocket APIs. For HTTP APIs, use selection * expressions prefixed with $, for example, $request.header.Auth, * $request.querystring.Name. These parameters are used to perform runtime * validation for Lambda-based authorizers by verifying all of the identity-related * request parameters are present in the request, not null, and non-empty. Only * when this is true does the authorizer invoke the authorizer Lambda function. * Otherwise, it returns a 401 Unauthorized response without calling the Lambda * function. For HTTP APIs, identity sources are also used as the cache key when * caching is enabled. To learn more, see Working * with AWS Lambda authorizers for HTTP APIs.

For JWT, a single entry * that specifies where to extract the JSON Web Token (JWT) from inbound requests. * Currently only header-based and query parameter-based selections are supported, * for example $request.header.Authorization.

*/ inline GetAuthorizerResult& AddIdentitySource(const Aws::String& value) { m_identitySource.push_back(value); return *this; } /** *

The identity source for which authorization is requested.

For a * REQUEST authorizer, this is optional. The value is a set of one or more mapping * expressions of the specified request parameters. The identity source can be * headers, query string parameters, stage variables, and context parameters. For * example, if an Auth header and a Name query string parameter are defined as * identity sources, this value is route.request.header.Auth, * route.request.querystring.Name for WebSocket APIs. For HTTP APIs, use selection * expressions prefixed with $, for example, $request.header.Auth, * $request.querystring.Name. These parameters are used to perform runtime * validation for Lambda-based authorizers by verifying all of the identity-related * request parameters are present in the request, not null, and non-empty. Only * when this is true does the authorizer invoke the authorizer Lambda function. * Otherwise, it returns a 401 Unauthorized response without calling the Lambda * function. For HTTP APIs, identity sources are also used as the cache key when * caching is enabled. To learn more, see Working * with AWS Lambda authorizers for HTTP APIs.

For JWT, a single entry * that specifies where to extract the JSON Web Token (JWT) from inbound requests. * Currently only header-based and query parameter-based selections are supported, * for example $request.header.Authorization.

*/ inline GetAuthorizerResult& AddIdentitySource(Aws::String&& value) { m_identitySource.push_back(std::move(value)); return *this; } /** *

The identity source for which authorization is requested.

For a * REQUEST authorizer, this is optional. The value is a set of one or more mapping * expressions of the specified request parameters. The identity source can be * headers, query string parameters, stage variables, and context parameters. For * example, if an Auth header and a Name query string parameter are defined as * identity sources, this value is route.request.header.Auth, * route.request.querystring.Name for WebSocket APIs. For HTTP APIs, use selection * expressions prefixed with $, for example, $request.header.Auth, * $request.querystring.Name. These parameters are used to perform runtime * validation for Lambda-based authorizers by verifying all of the identity-related * request parameters are present in the request, not null, and non-empty. Only * when this is true does the authorizer invoke the authorizer Lambda function. * Otherwise, it returns a 401 Unauthorized response without calling the Lambda * function. For HTTP APIs, identity sources are also used as the cache key when * caching is enabled. To learn more, see Working * with AWS Lambda authorizers for HTTP APIs.

For JWT, a single entry * that specifies where to extract the JSON Web Token (JWT) from inbound requests. * Currently only header-based and query parameter-based selections are supported, * for example $request.header.Authorization.

*/ inline GetAuthorizerResult& AddIdentitySource(const char* value) { m_identitySource.push_back(value); return *this; } /** *

The validation expression does not apply to the REQUEST authorizer.

*/ inline const Aws::String& GetIdentityValidationExpression() const{ return m_identityValidationExpression; } /** *

The validation expression does not apply to the REQUEST authorizer.

*/ inline void SetIdentityValidationExpression(const Aws::String& value) { m_identityValidationExpression = value; } /** *

The validation expression does not apply to the REQUEST authorizer.

*/ inline void SetIdentityValidationExpression(Aws::String&& value) { m_identityValidationExpression = std::move(value); } /** *

The validation expression does not apply to the REQUEST authorizer.

*/ inline void SetIdentityValidationExpression(const char* value) { m_identityValidationExpression.assign(value); } /** *

The validation expression does not apply to the REQUEST authorizer.

*/ inline GetAuthorizerResult& WithIdentityValidationExpression(const Aws::String& value) { SetIdentityValidationExpression(value); return *this;} /** *

The validation expression does not apply to the REQUEST authorizer.

*/ inline GetAuthorizerResult& WithIdentityValidationExpression(Aws::String&& value) { SetIdentityValidationExpression(std::move(value)); return *this;} /** *

The validation expression does not apply to the REQUEST authorizer.

*/ inline GetAuthorizerResult& WithIdentityValidationExpression(const char* value) { SetIdentityValidationExpression(value); return *this;} /** *

Represents the configuration of a JWT authorizer. Required for the JWT * authorizer type. Supported only for HTTP APIs.

*/ inline const JWTConfiguration& GetJwtConfiguration() const{ return m_jwtConfiguration; } /** *

Represents the configuration of a JWT authorizer. Required for the JWT * authorizer type. Supported only for HTTP APIs.

*/ inline void SetJwtConfiguration(const JWTConfiguration& value) { m_jwtConfiguration = value; } /** *

Represents the configuration of a JWT authorizer. Required for the JWT * authorizer type. Supported only for HTTP APIs.

*/ inline void SetJwtConfiguration(JWTConfiguration&& value) { m_jwtConfiguration = std::move(value); } /** *

Represents the configuration of a JWT authorizer. Required for the JWT * authorizer type. Supported only for HTTP APIs.

*/ inline GetAuthorizerResult& WithJwtConfiguration(const JWTConfiguration& value) { SetJwtConfiguration(value); return *this;} /** *

Represents the configuration of a JWT authorizer. Required for the JWT * authorizer type. Supported only for HTTP APIs.

*/ inline GetAuthorizerResult& WithJwtConfiguration(JWTConfiguration&& value) { SetJwtConfiguration(std::move(value)); return *this;} /** *

The name of the authorizer.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the authorizer.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the authorizer.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The name of the authorizer.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the authorizer.

*/ inline GetAuthorizerResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the authorizer.

*/ inline GetAuthorizerResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the authorizer.

*/ inline GetAuthorizerResult& WithName(const char* value) { SetName(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetAuthorizerResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetAuthorizerResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetAuthorizerResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_authorizerCredentialsArn; Aws::String m_authorizerId; Aws::String m_authorizerPayloadFormatVersion; int m_authorizerResultTtlInSeconds; AuthorizerType m_authorizerType; Aws::String m_authorizerUri; bool m_enableSimpleResponses; Aws::Vector m_identitySource; Aws::String m_identityValidationExpression; JWTConfiguration m_jwtConfiguration; Aws::String m_name; Aws::String m_requestId; }; } // namespace Model } // namespace ApiGatewayV2 } // namespace Aws