@Generated(value="software.amazon.awssdk:codegen") public final class UpdateAuthorizerRequest extends ApiGatewayV2Request implements ToCopyableBuilder<UpdateAuthorizerRequest.Builder,UpdateAuthorizerRequest>
Updates an Authorizer.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpdateAuthorizerRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
apiId()
The API identifier.
|
String |
authorizerCredentialsArn()
Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer.
|
String |
authorizerId()
The authorizer identifier.
|
Integer |
authorizerResultTtlInSeconds()
Authorizer caching is not currently supported.
|
AuthorizerType |
authorizerType()
The authorizer type.
|
String |
authorizerTypeAsString()
The authorizer type.
|
String |
authorizerUri()
The authorizer's Uniform Resource Identifier (URI).
|
static UpdateAuthorizerRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasIdentitySource()
Returns true if the IdentitySource property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
List<String> |
identitySource()
The identity source for which authorization is requested.
|
String |
identityValidationExpression()
This parameter is not used.
|
JWTConfiguration |
jwtConfiguration()
Represents the configuration of a JWT authorizer.
|
String |
name()
The name of the authorizer.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UpdateAuthorizerRequest.Builder> |
serializableBuilderClass() |
UpdateAuthorizerRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String apiId()
The API identifier.
public String 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, specify null.
public String authorizerId()
The authorizer identifier.
public Integer authorizerResultTtlInSeconds()
Authorizer caching is not currently supported. Don't specify this value for authorizers.
public AuthorizerType authorizerType()
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.
If the service returns an enum value that is not available in the current SDK version, authorizerType
will return AuthorizerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from authorizerTypeAsString().
AuthorizerTypepublic String authorizerTypeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, authorizerType
will return AuthorizerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from authorizerTypeAsString().
AuthorizerTypepublic String 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:
public boolean hasIdentitySource()
public List<String> 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. Currently, 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. These parameters will be 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 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".
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasIdentitySource() to see if a value was sent in this field.
For a REQUEST authorizer, this is optional. The value is a set of one or more mapping expressions of the specified request parameters. Currently, 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. These parameters will be 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 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".
public String identityValidationExpression()
This parameter is not used.
public JWTConfiguration jwtConfiguration()
Represents the configuration of a JWT authorizer. Required for the JWT authorizer type. Supported only for HTTP APIs.
public String name()
The name of the authorizer.
public UpdateAuthorizerRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UpdateAuthorizerRequest.Builder,UpdateAuthorizerRequest>toBuilder in class ApiGatewayV2Requestpublic static UpdateAuthorizerRequest.Builder builder()
public static Class<? extends UpdateAuthorizerRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.