Class AuthorizerState.Builder
- java.lang.Object
-
- com.pulumi.aws.apigatewayv2.inputs.AuthorizerState.Builder
-
- Enclosing class:
- AuthorizerState
public static final class AuthorizerState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(AuthorizerState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizerState.BuilderapiId(com.pulumi.core.Output<java.lang.String> apiId)AuthorizerState.BuilderapiId(java.lang.String apiId)AuthorizerState.BuilderauthorizerCredentialsArn(com.pulumi.core.Output<java.lang.String> authorizerCredentialsArn)AuthorizerState.BuilderauthorizerCredentialsArn(java.lang.String authorizerCredentialsArn)AuthorizerState.BuilderauthorizerPayloadFormatVersion(com.pulumi.core.Output<java.lang.String> authorizerPayloadFormatVersion)AuthorizerState.BuilderauthorizerPayloadFormatVersion(java.lang.String authorizerPayloadFormatVersion)AuthorizerState.BuilderauthorizerResultTtlInSeconds(com.pulumi.core.Output<java.lang.Integer> authorizerResultTtlInSeconds)AuthorizerState.BuilderauthorizerResultTtlInSeconds(java.lang.Integer authorizerResultTtlInSeconds)AuthorizerState.BuilderauthorizerType(com.pulumi.core.Output<java.lang.String> authorizerType)AuthorizerState.BuilderauthorizerType(java.lang.String authorizerType)AuthorizerState.BuilderauthorizerUri(com.pulumi.core.Output<java.lang.String> authorizerUri)AuthorizerState.BuilderauthorizerUri(java.lang.String authorizerUri)AuthorizerStatebuild()AuthorizerState.BuilderenableSimpleResponses(com.pulumi.core.Output<java.lang.Boolean> enableSimpleResponses)AuthorizerState.BuilderenableSimpleResponses(java.lang.Boolean enableSimpleResponses)AuthorizerState.BuilderidentitySources(com.pulumi.core.Output<java.util.List<java.lang.String>> identitySources)AuthorizerState.BuilderidentitySources(java.lang.String... identitySources)AuthorizerState.BuilderidentitySources(java.util.List<java.lang.String> identitySources)AuthorizerState.BuilderjwtConfiguration(AuthorizerJwtConfigurationArgs jwtConfiguration)AuthorizerState.BuilderjwtConfiguration(com.pulumi.core.Output<AuthorizerJwtConfigurationArgs> jwtConfiguration)AuthorizerState.Buildername(com.pulumi.core.Output<java.lang.String> name)AuthorizerState.Buildername(java.lang.String name)AuthorizerState.Builderregion(com.pulumi.core.Output<java.lang.String> region)AuthorizerState.Builderregion(java.lang.String region)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(AuthorizerState defaults)
-
-
Method Detail
-
apiId
public AuthorizerState.Builder apiId(@Nullable com.pulumi.core.Output<java.lang.String> apiId)
- Parameters:
apiId- API identifier.- Returns:
- builder
-
apiId
public AuthorizerState.Builder apiId(java.lang.String apiId)
- Parameters:
apiId- API identifier.- Returns:
- builder
-
authorizerCredentialsArn
public AuthorizerState.Builder authorizerCredentialsArn(@Nullable com.pulumi.core.Output<java.lang.String> authorizerCredentialsArn)
- Parameters:
authorizerCredentialsArn- Required credentials as an IAM role for API Gateway to invoke the authorizer. Supported only for `REQUEST` authorizers.- Returns:
- builder
-
authorizerCredentialsArn
public AuthorizerState.Builder authorizerCredentialsArn(java.lang.String authorizerCredentialsArn)
- Parameters:
authorizerCredentialsArn- Required credentials as an IAM role for API Gateway to invoke the authorizer. Supported only for `REQUEST` authorizers.- Returns:
- builder
-
authorizerPayloadFormatVersion
public AuthorizerState.Builder authorizerPayloadFormatVersion(@Nullable com.pulumi.core.Output<java.lang.String> authorizerPayloadFormatVersion)
- Parameters:
authorizerPayloadFormatVersion- Format of the payload sent to an HTTP API Lambda authorizer. Required for HTTP API Lambda authorizers. Valid values: `1.0`, `2.0`.- Returns:
- builder
-
authorizerPayloadFormatVersion
public AuthorizerState.Builder authorizerPayloadFormatVersion(java.lang.String authorizerPayloadFormatVersion)
- Parameters:
authorizerPayloadFormatVersion- Format of the payload sent to an HTTP API Lambda authorizer. Required for HTTP API Lambda authorizers. Valid values: `1.0`, `2.0`.- Returns:
- builder
-
authorizerResultTtlInSeconds
public AuthorizerState.Builder authorizerResultTtlInSeconds(@Nullable com.pulumi.core.Output<java.lang.Integer> authorizerResultTtlInSeconds)
- Parameters:
authorizerResultTtlInSeconds- 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. Defaults to `300`. Supported only for HTTP API Lambda authorizers.- Returns:
- builder
-
authorizerResultTtlInSeconds
public AuthorizerState.Builder authorizerResultTtlInSeconds(java.lang.Integer authorizerResultTtlInSeconds)
- Parameters:
authorizerResultTtlInSeconds- 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. Defaults to `300`. Supported only for HTTP API Lambda authorizers.- Returns:
- builder
-
authorizerType
public AuthorizerState.Builder authorizerType(@Nullable com.pulumi.core.Output<java.lang.String> authorizerType)
- Parameters:
authorizerType- Authorizer type. Valid values: `JWT`, `REQUEST`. Specify `REQUEST` for a Lambda function using incoming request parameters. For HTTP APIs, specify `JWT` to use JSON Web Tokens.- Returns:
- builder
-
authorizerType
public AuthorizerState.Builder authorizerType(java.lang.String authorizerType)
- Parameters:
authorizerType- Authorizer type. Valid values: `JWT`, `REQUEST`. Specify `REQUEST` for a Lambda function using incoming request parameters. For HTTP APIs, specify `JWT` to use JSON Web Tokens.- Returns:
- builder
-
authorizerUri
public AuthorizerState.Builder authorizerUri(@Nullable com.pulumi.core.Output<java.lang.String> authorizerUri)
- Parameters:
authorizerUri- Authorizer's URI. For `REQUEST` authorizers this must be a well-formed Lambda function URI, such as the `invokeArn` attribute of the `aws.lambda.Function` resource. Supported only for `REQUEST` authorizers. Must be between 1 and 2048 characters in length.- Returns:
- builder
-
authorizerUri
public AuthorizerState.Builder authorizerUri(java.lang.String authorizerUri)
- Parameters:
authorizerUri- Authorizer's URI. For `REQUEST` authorizers this must be a well-formed Lambda function URI, such as the `invokeArn` attribute of the `aws.lambda.Function` resource. Supported only for `REQUEST` authorizers. Must be between 1 and 2048 characters in length.- Returns:
- builder
-
enableSimpleResponses
public AuthorizerState.Builder enableSimpleResponses(@Nullable com.pulumi.core.Output<java.lang.Boolean> enableSimpleResponses)
- Parameters:
enableSimpleResponses- 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.- Returns:
- builder
-
enableSimpleResponses
public AuthorizerState.Builder enableSimpleResponses(java.lang.Boolean enableSimpleResponses)
- Parameters:
enableSimpleResponses- 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.- Returns:
- builder
-
identitySources
public AuthorizerState.Builder identitySources(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> identitySources)
- Parameters:
identitySources- Identity sources for which authorization is requested. For `REQUEST` authorizers the value is a list of one or more mapping expressions of the specified request parameters. For `JWT` authorizers the single entry specifies where to extract the JSON Web Token (JWT) from inbound requests.- Returns:
- builder
-
identitySources
public AuthorizerState.Builder identitySources(java.util.List<java.lang.String> identitySources)
- Parameters:
identitySources- Identity sources for which authorization is requested. For `REQUEST` authorizers the value is a list of one or more mapping expressions of the specified request parameters. For `JWT` authorizers the single entry specifies where to extract the JSON Web Token (JWT) from inbound requests.- Returns:
- builder
-
identitySources
public AuthorizerState.Builder identitySources(java.lang.String... identitySources)
- Parameters:
identitySources- Identity sources for which authorization is requested. For `REQUEST` authorizers the value is a list of one or more mapping expressions of the specified request parameters. For `JWT` authorizers the single entry specifies where to extract the JSON Web Token (JWT) from inbound requests.- Returns:
- builder
-
jwtConfiguration
public AuthorizerState.Builder jwtConfiguration(@Nullable com.pulumi.core.Output<AuthorizerJwtConfigurationArgs> jwtConfiguration)
- Parameters:
jwtConfiguration- Configuration of a JWT authorizer. Required for the `JWT` authorizer type. Supported only for HTTP APIs. See `jwtConfiguration` Block below.- Returns:
- builder
-
jwtConfiguration
public AuthorizerState.Builder jwtConfiguration(AuthorizerJwtConfigurationArgs jwtConfiguration)
- Parameters:
jwtConfiguration- Configuration of a JWT authorizer. Required for the `JWT` authorizer type. Supported only for HTTP APIs. See `jwtConfiguration` Block below.- Returns:
- builder
-
name
public AuthorizerState.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name- Name of the authorizer. Must be between 1 and 128 characters in length.- Returns:
- builder
-
name
public AuthorizerState.Builder name(java.lang.String name)
- Parameters:
name- Name of the authorizer. Must be between 1 and 128 characters in length.- Returns:
- builder
-
region
public AuthorizerState.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public AuthorizerState.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
build
public AuthorizerState build()
-
-