Class IntegrationArgs.Builder

  • Enclosing class:
    IntegrationArgs

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

      • Builder

        public Builder()
    • Method Detail

      • apiId

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

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

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

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

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

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

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

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

        public IntegrationArgs.Builder integrationSubtype​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> integrationSubtype)
        Parameters:
        integrationSubtype - AWS service action to invoke. Supported only for HTTP APIs when `integration_type` 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 IntegrationArgs.Builder integrationSubtype​(java.lang.String integrationSubtype)
        Parameters:
        integrationSubtype - AWS service action to invoke. Supported only for HTTP APIs when `integration_type` 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 IntegrationArgs.Builder integrationType​(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 IntegrationArgs.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 IntegrationArgs.Builder integrationUri​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> integrationUri)
        Parameters:
        integrationUri - URI of the Lambda function for a Lambda proxy integration, when `integration_type` 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 IntegrationArgs.Builder integrationUri​(java.lang.String integrationUri)
        Parameters:
        integrationUri - URI of the Lambda function for a Lambda proxy integration, when `integration_type` 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 IntegrationArgs.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 `request_templates` attribute. Valid values: `WHEN_NO_MATCH`, `WHEN_NO_TEMPLATES`, `NEVER`. Default is `WHEN_NO_MATCH`. Supported only for WebSocket APIs.
        Returns:
        builder
      • passthroughBehavior

        public IntegrationArgs.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 `request_templates` attribute. Valid values: `WHEN_NO_MATCH`, `WHEN_NO_TEMPLATES`, `NEVER`. Default is `WHEN_NO_MATCH`. Supported only for WebSocket APIs.
        Returns:
        builder
      • payloadFormatVersion

        public IntegrationArgs.Builder payloadFormatVersion​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> payloadFormatVersion)
        Parameters:
        payloadFormatVersion - The [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 IntegrationArgs.Builder payloadFormatVersion​(java.lang.String payloadFormatVersion)
        Parameters:
        payloadFormatVersion - The [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
      • requestParameters

        public IntegrationArgs.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 `integration_subtype`, a key-value map specifying parameters that are passed to `AWS_PROXY` integrations. For HTTP APIs without a specified `integration_subtype`, 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 IntegrationArgs.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 `integration_subtype`, a key-value map specifying parameters that are passed to `AWS_PROXY` integrations. For HTTP APIs without a specified `integration_subtype`, 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 IntegrationArgs.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 IntegrationArgs.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 IntegrationArgs.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 IntegrationArgs.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 IntegrationArgs.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 IntegrationArgs.Builder templateSelectionExpression​(@Nullable
                                                                   com.pulumi.core.Output<java.lang.String> templateSelectionExpression)
        Parameters:
        templateSelectionExpression - The [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 IntegrationArgs.Builder templateSelectionExpression​(java.lang.String templateSelectionExpression)
        Parameters:
        templateSelectionExpression - The [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 IntegrationArgs.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 IntegrationArgs.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 IntegrationArgs.Builder tlsConfig​(@Nullable
                                                 com.pulumi.core.Output<IntegrationTlsConfigArgs> tlsConfig)
        Parameters:
        tlsConfig - TLS configuration for a private integration. Supported only for HTTP APIs.
        Returns:
        builder