@Stability(value=Stable) public static final class AwsIntegration.Builder extends Object implements software.amazon.jsii.Builder<AwsIntegration>
AwsIntegration.| Modifier and Type | Method and Description |
|---|---|
AwsIntegration.Builder |
action(String action)
The AWS action to perform in the integration.
|
AwsIntegration.Builder |
actionParameters(Map<String,String> actionParameters)
Parameters for the action.
|
AwsIntegration |
build() |
static AwsIntegration.Builder |
create() |
AwsIntegration.Builder |
integrationHttpMethod(String integrationHttpMethod)
The integration's HTTP method type.
|
AwsIntegration.Builder |
options(IntegrationOptions options)
Integration options, such as content handling, request/response mapping, etc.
|
AwsIntegration.Builder |
path(String path)
The path to use for path-base APIs.
|
AwsIntegration.Builder |
proxy(Boolean proxy)
Use AWS_PROXY integration.
|
AwsIntegration.Builder |
region(String region)
The region of the integrated AWS service.
|
AwsIntegration.Builder |
service(String service)
The name of the integrated AWS service (e.g.
|
AwsIntegration.Builder |
subdomain(String subdomain)
A designated subdomain supported by certain AWS service for fast host-name lookup.
|
@Stability(value=Stable) public static AwsIntegration.Builder create()
AwsIntegration.Builder.@Stability(value=Stable) public AwsIntegration.Builder service(String service)
service - The name of the integrated AWS service (e.g. `s3`). This parameter is required.this@Stability(value=Stable) public AwsIntegration.Builder action(String action)
Use actionParams to specify key-value params for the action.
Mutually exclusive with path.
action - The AWS action to perform in the integration. This parameter is required.this@Stability(value=Stable) public AwsIntegration.Builder actionParameters(Map<String,String> actionParameters)
action must be set, and path must be undefined.
The action params will be URL encoded.
actionParameters - Parameters for the action. This parameter is required.this@Stability(value=Stable) public AwsIntegration.Builder integrationHttpMethod(String integrationHttpMethod)
Default: POST
integrationHttpMethod - The integration's HTTP method type. This parameter is required.this@Stability(value=Stable) public AwsIntegration.Builder options(IntegrationOptions options)
options - Integration options, such as content handling, request/response mapping, etc. This parameter is required.this@Stability(value=Stable) public AwsIntegration.Builder path(String path)
For example, for S3 GET, you can set path to bucket/key.
For lambda, you can set path to 2015-03-31/functions/${function-arn}/invocations
Mutually exclusive with the action options.
path - The path to use for path-base APIs. This parameter is required.this@Stability(value=Stable) public AwsIntegration.Builder proxy(Boolean proxy)
Default: false
proxy - Use AWS_PROXY integration. This parameter is required.this@Stability(value=Stable) public AwsIntegration.Builder region(String region)
Default: - same region as the stack
region - The region of the integrated AWS service. This parameter is required.this@Stability(value=Stable) public AwsIntegration.Builder subdomain(String subdomain)
subdomain - A designated subdomain supported by certain AWS service for fast host-name lookup. This parameter is required.this@Stability(value=Stable) public AwsIntegration build()
build in interface software.amazon.jsii.Builder<AwsIntegration>Copyright © 2022. All rights reserved.