Class AuthorizerState.Builder

  • Enclosing class:
    AuthorizerState

    public static final class AuthorizerState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • arn

        public AuthorizerState.Builder arn​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN of the API Gateway Authorizer
        Returns:
        builder
      • arn

        public AuthorizerState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN of the API Gateway Authorizer
        Returns:
        builder
      • authorizerCredentials

        public AuthorizerState.Builder authorizerCredentials​(@Nullable
                                                             com.pulumi.core.Output<java.lang.String> authorizerCredentials)
        Parameters:
        authorizerCredentials - Credentials required for the authorizer. To specify an IAM Role for API Gateway to assume, use the IAM Role ARN.
        Returns:
        builder
      • authorizerCredentials

        public AuthorizerState.Builder authorizerCredentials​(java.lang.String authorizerCredentials)
        Parameters:
        authorizerCredentials - Credentials required for the authorizer. To specify an IAM Role for API Gateway to assume, use the IAM Role ARN.
        Returns:
        builder
      • authorizerResultTtlInSeconds

        public AuthorizerState.Builder authorizerResultTtlInSeconds​(@Nullable
                                                                    com.pulumi.core.Output<java.lang.Integer> authorizerResultTtlInSeconds)
        Parameters:
        authorizerResultTtlInSeconds - TTL of cached authorizer results in seconds. Defaults to `300`.
        Returns:
        builder
      • authorizerResultTtlInSeconds

        public AuthorizerState.Builder authorizerResultTtlInSeconds​(java.lang.Integer authorizerResultTtlInSeconds)
        Parameters:
        authorizerResultTtlInSeconds - TTL of cached authorizer results in seconds. Defaults to `300`.
        Returns:
        builder
      • authorizerUri

        public AuthorizerState.Builder authorizerUri​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> authorizerUri)
        Parameters:
        authorizerUri - Authorizer's URI. This must be a well-formed Lambda function URI in the form of `arn:aws:apigateway:{region}:lambda:path/{service_api}`, e.g., `arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:012345678912:function:my-function/invocations`
        Returns:
        builder
      • authorizerUri

        public AuthorizerState.Builder authorizerUri​(java.lang.String authorizerUri)
        Parameters:
        authorizerUri - Authorizer's URI. This must be a well-formed Lambda function URI in the form of `arn:aws:apigateway:{region}:lambda:path/{service_api}`, e.g., `arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:012345678912:function:my-function/invocations`
        Returns:
        builder
      • identitySource

        public AuthorizerState.Builder identitySource​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> identitySource)
        Parameters:
        identitySource - Source of the identity in an incoming request. Defaults to `method.request.header.Authorization`. For `REQUEST` type, this may be a comma-separated list of values, including headers, query string parameters and stage variables - e.g., `"method.request.header.SomeHeaderName,method.request.querystring.SomeQueryStringName,stageVariables.SomeStageVariableName"`
        Returns:
        builder
      • identitySource

        public AuthorizerState.Builder identitySource​(java.lang.String identitySource)
        Parameters:
        identitySource - Source of the identity in an incoming request. Defaults to `method.request.header.Authorization`. For `REQUEST` type, this may be a comma-separated list of values, including headers, query string parameters and stage variables - e.g., `"method.request.header.SomeHeaderName,method.request.querystring.SomeQueryStringName,stageVariables.SomeStageVariableName"`
        Returns:
        builder
      • identityValidationExpression

        public AuthorizerState.Builder identityValidationExpression​(@Nullable
                                                                    com.pulumi.core.Output<java.lang.String> identityValidationExpression)
        Parameters:
        identityValidationExpression - Validation expression for the incoming identity. For `TOKEN` type, this value should be a regular expression. The incoming token from the client is matched against this expression, and will proceed if the token matches. If the token doesn't match, the client receives a 401 Unauthorized response.
        Returns:
        builder
      • identityValidationExpression

        public AuthorizerState.Builder identityValidationExpression​(java.lang.String identityValidationExpression)
        Parameters:
        identityValidationExpression - Validation expression for the incoming identity. For `TOKEN` type, this value should be a regular expression. The incoming token from the client is matched against this expression, and will proceed if the token matches. If the token doesn't match, the client receives a 401 Unauthorized response.
        Returns:
        builder
      • name

        public AuthorizerState.Builder name​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Name of the authorizer
        Returns:
        builder
      • name

        public AuthorizerState.Builder name​(java.lang.String name)
        Parameters:
        name - Name of the authorizer
        Returns:
        builder
      • providerArns

        public AuthorizerState.Builder providerArns​(@Nullable
                                                    com.pulumi.core.Output<java.util.List<java.lang.String>> providerArns)
        Parameters:
        providerArns - List of the Amazon Cognito user pool ARNs. Each element is of this format: `arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}`.
        Returns:
        builder
      • providerArns

        public AuthorizerState.Builder providerArns​(java.util.List<java.lang.String> providerArns)
        Parameters:
        providerArns - List of the Amazon Cognito user pool ARNs. Each element is of this format: `arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}`.
        Returns:
        builder
      • providerArns

        public AuthorizerState.Builder providerArns​(java.lang.String... providerArns)
        Parameters:
        providerArns - List of the Amazon Cognito user pool ARNs. Each element is of this format: `arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}`.
        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
      • restApi

        public AuthorizerState.Builder restApi​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> restApi)
        Parameters:
        restApi - ID of the associated REST API
        Returns:
        builder
      • restApi

        public AuthorizerState.Builder restApi​(java.lang.String restApi)
        Parameters:
        restApi - ID of the associated REST API
        Returns:
        builder
      • type

        public AuthorizerState.Builder type​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> type)
        Parameters:
        type - Type of the authorizer. Possible values are `TOKEN` for a Lambda function using a single authorization token submitted in a custom header, `REQUEST` for a Lambda function using incoming request parameters, or `COGNITO_USER_POOLS` for using an Amazon Cognito user pool. Defaults to `TOKEN`.
        Returns:
        builder
      • type

        public AuthorizerState.Builder type​(java.lang.String type)
        Parameters:
        type - Type of the authorizer. Possible values are `TOKEN` for a Lambda function using a single authorization token submitted in a custom header, `REQUEST` for a Lambda function using incoming request parameters, or `COGNITO_USER_POOLS` for using an Amazon Cognito user pool. Defaults to `TOKEN`.
        Returns:
        builder