Class CustomAuthorizerProps.Builder
- java.lang.Object
-
- software.aws.awsprototypingsdk.openapigateway.CustomAuthorizerProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomAuthorizerProps>
- Enclosing interface:
- CustomAuthorizerProps
@Stability(Experimental) public static final class CustomAuthorizerProps.Builder extends Object implements software.amazon.jsii.Builder<CustomAuthorizerProps>
A builder forCustomAuthorizerProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomAuthorizerProps.BuilderauthorizerId(String authorizerId)Sets the value ofCustomAuthorizerProps.getAuthorizerId()CustomAuthorizerProps.BuilderauthorizerResultTtlInSeconds(Number authorizerResultTtlInSeconds)Sets the value ofCustomAuthorizerProps.getAuthorizerResultTtlInSeconds()CustomAuthorizerPropsbuild()Builds the configured instance.CustomAuthorizerProps.Builderfunction(software.amazon.awscdk.services.lambda.IFunction function)Sets the value ofCustomAuthorizerProps.getFunction()CustomAuthorizerProps.BuilderidentitySource(String identitySource)Sets the value ofCustomAuthorizerProps.getIdentitySource()CustomAuthorizerProps.Buildertype(CustomAuthorizerType type)Sets the value ofCustomAuthorizerProps.getType()
-
-
-
Method Detail
-
authorizerId
@Stability(Experimental) public CustomAuthorizerProps.Builder authorizerId(String authorizerId)
Sets the value ofCustomAuthorizerProps.getAuthorizerId()- Parameters:
authorizerId- Unique identifier for this authorizer. This parameter is required.- Returns:
this
-
function
@Stability(Experimental) public CustomAuthorizerProps.Builder function(software.amazon.awscdk.services.lambda.IFunction function)
Sets the value ofCustomAuthorizerProps.getFunction()- Parameters:
function- The lambda function used to authorize requests. This parameter is required.- Returns:
this
-
authorizerResultTtlInSeconds
@Stability(Experimental) public CustomAuthorizerProps.Builder authorizerResultTtlInSeconds(Number authorizerResultTtlInSeconds)
Sets the value ofCustomAuthorizerProps.getAuthorizerResultTtlInSeconds()- Parameters:
authorizerResultTtlInSeconds- The number of seconds during which the authorizer result is cached.- Returns:
this
-
identitySource
@Stability(Experimental) public CustomAuthorizerProps.Builder identitySource(String identitySource)
Sets the value ofCustomAuthorizerProps.getIdentitySource()- Parameters:
identitySource- The source of the identity in an incoming request.- Returns:
this
-
type
@Stability(Experimental) public CustomAuthorizerProps.Builder type(CustomAuthorizerType type)
Sets the value ofCustomAuthorizerProps.getType()- Parameters:
type- The type of custom authorizer.- Returns:
this
-
build
@Stability(Experimental) public CustomAuthorizerProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CustomAuthorizerProps>- Returns:
- a new instance of
CustomAuthorizerProps - Throws:
NullPointerException- if any required attribute was not provided
-
-