Class AwsIntegration.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.AwsIntegration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AwsIntegration>
- Enclosing class:
- AwsIntegration
@Stability(Stable)
public static final class AwsIntegration.Builder
extends Object
implements software.amazon.jsii.Builder<AwsIntegration>
A fluent builder for
AwsIntegration.-
Method Summary
Modifier and TypeMethodDescriptionThe AWS action to perform in the integration.actionParameters(Map<String, String> actionParameters) Parameters for the action.build()static AwsIntegration.Buildercreate()integrationHttpMethod(String integrationHttpMethod) The integration's HTTP method type.options(IntegrationOptions options) Integration options, such as content handling, request/response mapping, etc.The path to use for path-base APIs.Use AWS_PROXY integration.The region of the integrated AWS service.The name of the integrated AWS service (e.g.A designated subdomain supported by certain AWS service for fast host-name lookup.
-
Method Details
-
create
- Returns:
- a new instance of
AwsIntegration.Builder.
-
service
The name of the integrated AWS service (e.g.s3).- Parameters:
service- The name of the integrated AWS service (e.g.s3). This parameter is required.- Returns:
this
-
action
The AWS action to perform in the integration.Use
actionParamsto specify key-value params for the action.Mutually exclusive with
path.- Parameters:
action- The AWS action to perform in the integration. This parameter is required.- Returns:
this
-
actionParameters
@Stability(Stable) public AwsIntegration.Builder actionParameters(Map<String, String> actionParameters) Parameters for the action.actionmust be set, andpathmust be undefined. The action params will be URL encoded.- Parameters:
actionParameters- Parameters for the action. This parameter is required.- Returns:
this
-
integrationHttpMethod
@Stability(Stable) public AwsIntegration.Builder integrationHttpMethod(String integrationHttpMethod) The integration's HTTP method type.Default: POST
- Parameters:
integrationHttpMethod- The integration's HTTP method type. This parameter is required.- Returns:
this
-
options
Integration options, such as content handling, request/response mapping, etc.- Parameters:
options- Integration options, such as content handling, request/response mapping, etc. This parameter is required.- Returns:
this
-
path
The path to use for path-base APIs.For example, for S3 GET, you can set path to
bucket/key. For lambda, you can set path to2015-03-31/functions/${function-arn}/invocationsMutually exclusive with the
actionoptions.- Parameters:
path- The path to use for path-base APIs. This parameter is required.- Returns:
this
-
proxy
Use AWS_PROXY integration.Default: false
- Parameters:
proxy- Use AWS_PROXY integration. This parameter is required.- Returns:
this
-
region
The region of the integrated AWS service.Default: - same region as the stack
- Parameters:
region- The region of the integrated AWS service. This parameter is required.- Returns:
this
-
subdomain
A designated subdomain supported by certain AWS service for fast host-name lookup.- Parameters:
subdomain- A designated subdomain supported by certain AWS service for fast host-name lookup. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AwsIntegration>- Returns:
- a newly built instance of
AwsIntegration.
-