Class Integration.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.Integration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Integration>
- Enclosing class:
Integration
@Stability(Stable)
public static final class Integration.Builder
extends Object
implements software.amazon.jsii.Builder<Integration>
A fluent builder for
Integration
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static Integration.Builder
create()
integrationHttpMethod
(String integrationHttpMethod) The integration's HTTP method type.options
(IntegrationOptions options) Integration options.type
(IntegrationType type) Specifies an API method integration type.The Uniform Resource Identifier (URI) for the integration.
-
Method Details
-
create
- Returns:
- a new instance of
Integration.Builder
.
-
type
Specifies an API method integration type.- Parameters:
type
- Specifies an API method integration type. This parameter is required.- Returns:
this
-
integrationHttpMethod
The integration's HTTP method type.Required unless you use a MOCK integration.
- Parameters:
integrationHttpMethod
- The integration's HTTP method type. This parameter is required.- Returns:
this
-
options
Integration options.- Parameters:
options
- Integration options. This parameter is required.- Returns:
this
-
uri
The Uniform Resource Identifier (URI) for the integration.- If you specify HTTP for the
type
property, specify the API endpoint URL. - If you specify MOCK for the
type
property, don't specify this property. - If you specify AWS for the
type
property, specify an AWS service that follows this form:arn:partition:apigateway:region:subdomain.service|service:path|action/service_api.
For example, a Lambda function URI follows this form: arn:partition:apigateway:region:lambda:path/path. The path is usually in the form /2015-03-31/functions/LambdaFunctionARN/invocations.
- Parameters:
uri
- The Uniform Resource Identifier (URI) for the integration. This parameter is required.- Returns:
this
- See Also:
- If you specify HTTP for the
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<Integration>
- Returns:
- a newly built instance of
Integration
.
-