Class CfnAuthorizer.JWTConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnAuthorizer.JWTConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAuthorizer.JWTConfigurationProperty>
- Enclosing interface:
- CfnAuthorizer.JWTConfigurationProperty
@Stability(Stable)
public static final class CfnAuthorizer.JWTConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAuthorizer.JWTConfigurationProperty>
A builder for
CfnAuthorizer.JWTConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnAuthorizer.JWTConfigurationProperty.getAudience()build()Builds the configured instance.Sets the value ofCfnAuthorizer.JWTConfigurationProperty.getIssuer()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
audience
@Stability(Stable) public CfnAuthorizer.JWTConfigurationProperty.Builder audience(List<String> audience) Sets the value ofCfnAuthorizer.JWTConfigurationProperty.getAudience()- Parameters:
audience- A list of the intended recipients of the JWT. A valid JWT must provide anaudthat matches at least one entry in this list. See RFC 7519 . Required for theJWTauthorizer type. Supported only for HTTP APIs.- Returns:
this
-
issuer
Sets the value ofCfnAuthorizer.JWTConfigurationProperty.getIssuer()- Parameters:
issuer- The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user pool has the following format:https://cognito-idp. {region} .amazonaws.com/ {userPoolId}. Required for theJWTauthorizer type. Supported only for HTTP APIs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAuthorizer.JWTConfigurationProperty>- Returns:
- a new instance of
CfnAuthorizer.JWTConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-