Class IntegrationState.Builder

  • Enclosing class:
    IntegrationState

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

      • Builder

        public Builder()
    • Method Detail

      • apiId

        public IntegrationState.Builder apiId​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> apiId)
        Parameters:
        apiId - API identifier.
        Returns:
        builder
      • apiId

        public IntegrationState.Builder apiId​(java.lang.String apiId)
        Parameters:
        apiId - API identifier.
        Returns:
        builder
      • connectionId

        public IntegrationState.Builder connectionId​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> connectionId)
        Parameters:
        connectionId - ID of the VPC link for a private integration. Supported only for HTTP APIs. Must be between 1 and 1024 characters in length.
        Returns:
        builder
      • connectionId

        public IntegrationState.Builder connectionId​(java.lang.String connectionId)
        Parameters:
        connectionId - ID of the VPC link for a private integration. Supported only for HTTP APIs. Must be between 1 and 1024 characters in length.
        Returns:
        builder
      • connectionType

        public IntegrationState.Builder connectionType​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> connectionType)
        Parameters:
        connectionType - Type of the network connection to the integration endpoint. Valid values: `INTERNET`, `VPC_LINK`. Default is `INTERNET`.
        Returns:
        builder
      • connectionType

        public IntegrationState.Builder connectionType​(java.lang.String connectionType)
        Parameters:
        connectionType - Type of the network connection to the integration endpoint. Valid values: `INTERNET`, `VPC_LINK`. Default is `INTERNET`.
        Returns:
        builder
      • contentHandlingStrategy

        public IntegrationState.Builder contentHandlingStrategy​(@Nullable
                                                                com.pulumi.core.Output<java.lang.String> contentHandlingStrategy)
        Parameters:
        contentHandlingStrategy - How to handle response payload content type conversions. Valid values: `CONVERT_TO_BINARY`, `CONVERT_TO_TEXT`. Supported only for WebSocket APIs.
        Returns:
        builder
      • contentHandlingStrategy

        public IntegrationState.Builder contentHandlingStrategy​(java.lang.String contentHandlingStrategy)
        Parameters:
        contentHandlingStrategy - How to handle response payload content type conversions. Valid values: `CONVERT_TO_BINARY`, `CONVERT_TO_TEXT`. Supported only for WebSocket APIs.
        Returns:
        builder
      • credentialsArn

        public IntegrationState.Builder credentialsArn​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> credentialsArn)
        Parameters:
        credentialsArn - Credentials required for the integration, if any.
        Returns:
        builder
      • credentialsArn

        public IntegrationState.Builder credentialsArn​(java.lang.String credentialsArn)
        Parameters:
        credentialsArn - Credentials required for the integration, if any.
        Returns:
        builder
      • description

        public IntegrationState.Builder description​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - Description of the integration.
        Returns:
        builder
      • description

        public IntegrationState.Builder description​(java.lang.String description)
        Parameters:
        description - Description of the integration.
        Returns:
        builder
      • integrationMethod

        public IntegrationState.Builder integrationMethod​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> integrationMethod)
        Parameters:
        integrationMethod - Integration's HTTP method. Must be specified if `integrationType` is not `MOCK`.
        Returns:
        builder
      • integrationMethod

        public IntegrationState.Builder integrationMethod​(java.lang.String integrationMethod)
        Parameters:
        integrationMethod - Integration's HTTP method. Must be specified if `integrationType` is not `MOCK`.
        Returns:
        builder
      • integrationResponseSelectionExpression

        public IntegrationState.Builder integrationResponseSelectionExpression​(@Nullable
                                                                               com.pulumi.core.Output<java.lang.String> integrationResponseSelectionExpression)
        Parameters:
        integrationResponseSelectionExpression - [Integration response selection expression](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-integration-response-selection-expressions) for the integration.
        Returns:
        builder
      • integrationResponseSelectionExpression

        public IntegrationState.Builder integrationResponseSelectionExpression​(java.lang.String integrationResponseSelectionExpression)
        Parameters:
        integrationResponseSelectionExpression - [Integration response selection expression](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-integration-response-selection-expressions) for the integration.
        Returns:
        builder
      • integrationSubtype

        public IntegrationState.Builder integrationSubtype​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> integrationSubtype)
        Parameters:
        integrationSubtype - AWS service action to invoke. Supported only for HTTP APIs when `integrationType` is `AWS_PROXY`. See the [AWS service integration reference](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-aws-services-reference.html) documentation for supported values. Must be between 1 and 128 characters in length.
        Returns:
        builder
      • integrationSubtype

        public IntegrationState.Builder integrationSubtype​(java.lang.String integrationSubtype)
        Parameters:
        integrationSubtype - AWS service action to invoke. Supported only for HTTP APIs when `integrationType` is `AWS_PROXY`. See the [AWS service integration reference](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-aws-services-reference.html) documentation for supported values. Must be between 1 and 128 characters in length.
        Returns:
        builder
      • integrationType

        public IntegrationState.Builder integrationType​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> integrationType)
        Parameters:
        integrationType - Integration type of an integration. Valid values: `AWS` (supported only for WebSocket APIs), `AWS_PROXY`, `HTTP` (supported only for WebSocket APIs), `HTTP_PROXY`, `MOCK` (supported only for WebSocket APIs). For an HTTP API private integration, use `HTTP_PROXY`.
        Returns:
        builder
      • integrationType

        public IntegrationState.Builder integrationType​(java.lang.String integrationType)
        Parameters:
        integrationType - Integration type of an integration. Valid values: `AWS` (supported only for WebSocket APIs), `AWS_PROXY`, `HTTP` (supported only for WebSocket APIs), `HTTP_PROXY`, `MOCK` (supported only for WebSocket APIs). For an HTTP API private integration, use `HTTP_PROXY`.
        Returns:
        builder
      • integrationUri

        public IntegrationState.Builder integrationUri​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> integrationUri)
        Parameters:
        integrationUri - URI of the Lambda function for a Lambda proxy integration, when `integrationType` is `AWS_PROXY`. For an `HTTP` integration, specify a fully-qualified URL. For an HTTP API private integration, specify the ARN of an Application Load Balancer listener, Network Load Balancer listener, or AWS Cloud Map service.
        Returns:
        builder
      • integrationUri

        public IntegrationState.Builder integrationUri​(java.lang.String integrationUri)
        Parameters:
        integrationUri - URI of the Lambda function for a Lambda proxy integration, when `integrationType` is `AWS_PROXY`. For an `HTTP` integration, specify a fully-qualified URL. For an HTTP API private integration, specify the ARN of an Application Load Balancer listener, Network Load Balancer listener, or AWS Cloud Map service.
        Returns:
        builder
      • passthroughBehavior

        public IntegrationState.Builder passthroughBehavior​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> passthroughBehavior)
        Parameters:
        passthroughBehavior - Pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the `requestTemplates` attribute. Valid values: `WHEN_NO_MATCH`, `WHEN_NO_TEMPLATES`, `NEVER`. Default is `WHEN_NO_MATCH`. Supported only for WebSocket APIs.
        Returns:
        builder
      • passthroughBehavior

        public IntegrationState.Builder passthroughBehavior​(java.lang.String passthroughBehavior)
        Parameters:
        passthroughBehavior - Pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the `requestTemplates` attribute. Valid values: `WHEN_NO_MATCH`, `WHEN_NO_TEMPLATES`, `NEVER`. Default is `WHEN_NO_MATCH`. Supported only for WebSocket APIs.
        Returns:
        builder
      • payloadFormatVersion

        public IntegrationState.Builder payloadFormatVersion​(@Nullable
                                                             com.pulumi.core.Output<java.lang.String> payloadFormatVersion)
        Parameters:
        payloadFormatVersion - [Format of the payload](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html#http-api-develop-integrations-lambda.proxy-format) sent to an integration. Valid values: `1.0`, `2.0`. Default is `1.0`.
        Returns:
        builder
      • payloadFormatVersion

        public IntegrationState.Builder payloadFormatVersion​(java.lang.String payloadFormatVersion)
        Parameters:
        payloadFormatVersion - [Format of the payload](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html#http-api-develop-integrations-lambda.proxy-format) sent to an integration. Valid values: `1.0`, `2.0`. Default is `1.0`.
        Returns:
        builder
      • region

        public IntegrationState.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 IntegrationState.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
      • requestParameters

        public IntegrationState.Builder requestParameters​(@Nullable
                                                          com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> requestParameters)
        Parameters:
        requestParameters - For WebSocket APIs, a key-value map specifying request parameters that are passed from the method request to the backend. For HTTP APIs with a specified `integrationSubtype`, a key-value map specifying parameters that are passed to `AWS_PROXY` integrations. For HTTP APIs without a specified `integrationSubtype`, a key-value map specifying how to transform HTTP requests before sending them to the backend. See the [Amazon API Gateway Developer Guide](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html) for details.
        Returns:
        builder
      • requestParameters

        public IntegrationState.Builder requestParameters​(java.util.Map<java.lang.String,​java.lang.String> requestParameters)
        Parameters:
        requestParameters - For WebSocket APIs, a key-value map specifying request parameters that are passed from the method request to the backend. For HTTP APIs with a specified `integrationSubtype`, a key-value map specifying parameters that are passed to `AWS_PROXY` integrations. For HTTP APIs without a specified `integrationSubtype`, a key-value map specifying how to transform HTTP requests before sending them to the backend. See the [Amazon API Gateway Developer Guide](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html) for details.
        Returns:
        builder
      • requestTemplates

        public IntegrationState.Builder requestTemplates​(@Nullable
                                                         com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> requestTemplates)
        Parameters:
        requestTemplates - Map of [Velocity](https://velocity.apache.org/) templates that are applied on the request payload based on the value of the Content-Type header sent by the client. Supported only for WebSocket APIs.
        Returns:
        builder
      • requestTemplates

        public IntegrationState.Builder requestTemplates​(java.util.Map<java.lang.String,​java.lang.String> requestTemplates)
        Parameters:
        requestTemplates - Map of [Velocity](https://velocity.apache.org/) templates that are applied on the request payload based on the value of the Content-Type header sent by the client. Supported only for WebSocket APIs.
        Returns:
        builder
      • responseParameters

        public IntegrationState.Builder responseParameters​(@Nullable
                                                           com.pulumi.core.Output<java.util.List<IntegrationResponseParameterArgs>> responseParameters)
        Parameters:
        responseParameters - Mappings to transform the HTTP response from a backend integration before returning the response to clients. Supported only for HTTP APIs.
        Returns:
        builder
      • responseParameters

        public IntegrationState.Builder responseParameters​(java.util.List<IntegrationResponseParameterArgs> responseParameters)
        Parameters:
        responseParameters - Mappings to transform the HTTP response from a backend integration before returning the response to clients. Supported only for HTTP APIs.
        Returns:
        builder
      • responseParameters

        public IntegrationState.Builder responseParameters​(IntegrationResponseParameterArgs... responseParameters)
        Parameters:
        responseParameters - Mappings to transform the HTTP response from a backend integration before returning the response to clients. Supported only for HTTP APIs.
        Returns:
        builder
      • templateSelectionExpression

        public IntegrationState.Builder templateSelectionExpression​(@Nullable
                                                                    com.pulumi.core.Output<java.lang.String> templateSelectionExpression)
        Parameters:
        templateSelectionExpression - [Template selection expression](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-template-selection-expressions) for the integration.
        Returns:
        builder
      • templateSelectionExpression

        public IntegrationState.Builder templateSelectionExpression​(java.lang.String templateSelectionExpression)
        Parameters:
        templateSelectionExpression - [Template selection expression](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-template-selection-expressions) for the integration.
        Returns:
        builder
      • timeoutMilliseconds

        public IntegrationState.Builder timeoutMilliseconds​(@Nullable
                                                            com.pulumi.core.Output<java.lang.Integer> timeoutMilliseconds)
        Parameters:
        timeoutMilliseconds - Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 seconds for WebSocket APIs and 30 seconds for HTTP APIs. this provider will only perform drift detection of its value when present in a configuration.
        Returns:
        builder
      • timeoutMilliseconds

        public IntegrationState.Builder timeoutMilliseconds​(java.lang.Integer timeoutMilliseconds)
        Parameters:
        timeoutMilliseconds - Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 seconds for WebSocket APIs and 30 seconds for HTTP APIs. this provider will only perform drift detection of its value when present in a configuration.
        Returns:
        builder
      • tlsConfig

        public IntegrationState.Builder tlsConfig​(@Nullable
                                                  com.pulumi.core.Output<IntegrationTlsConfigArgs> tlsConfig)
        Parameters:
        tlsConfig - TLS configuration for a private integration. Supported only for HTTP APIs.
        Returns:
        builder