@Stability(value=Stable) public static final class ApiGateway.Builder extends Object implements software.amazon.jsii.Builder<ApiGateway>
ApiGateway
.Modifier and Type | Method and Description |
---|---|
ApiGateway |
build() |
static ApiGateway.Builder |
create(RestApi restApi) |
ApiGateway.Builder |
deadLetterQueue(IQueue deadLetterQueue)
The SQS queue to be used as deadLetterQueue.
|
ApiGateway.Builder |
eventRole(IRole eventRole)
The role to assume before invoking the target (i.e., the pipeline) when the given rule is triggered.
|
ApiGateway.Builder |
headerParameters(Map<String,String> headerParameters)
The headers to be set when requesting API.
|
ApiGateway.Builder |
maxEventAge(Duration maxEventAge)
The maximum age of a request that Lambda sends to a function for processing.
|
ApiGateway.Builder |
method(String method)
The method for api resource invoked by the rule.
|
ApiGateway.Builder |
path(String path)
The api resource invoked by the rule.
|
ApiGateway.Builder |
pathParameterValues(List<String> pathParameterValues)
The path parameter values to be used to populate to wildcards("*") of requesting api path.
|
ApiGateway.Builder |
postBody(RuleTargetInput postBody)
This will be the post request body send to the API.
|
ApiGateway.Builder |
queryStringParameters(Map<String,String> queryStringParameters)
The query parameters to be set when requesting API.
|
ApiGateway.Builder |
retryAttempts(Number retryAttempts)
The maximum number of times to retry when the function returns an error.
|
ApiGateway.Builder |
stage(String stage)
The deploy stage of api gateway invoked by the rule.
|
@Stability(value=Stable) public static ApiGateway.Builder create(RestApi restApi)
restApi
- This parameter is required.ApiGateway.Builder
.@Stability(value=Stable) public ApiGateway.Builder deadLetterQueue(IQueue deadLetterQueue)
The events not successfully delivered are automatically retried for a specified period of time, depending on the retry policy of the target. If an event is not delivered before all retry attempts are exhausted, it will be sent to the dead letter queue.
Default: - no dead-letter queue
deadLetterQueue
- The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a dead-letter queue](https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html#dlq-considerations). This parameter is required.this
@Stability(value=Stable) public ApiGateway.Builder maxEventAge(Duration maxEventAge)
Minimum value of 60. Maximum value of 86400.
Default: Duration.hours(24)
maxEventAge
- The maximum age of a request that Lambda sends to a function for processing. This parameter is required.this
@Stability(value=Stable) public ApiGateway.Builder retryAttempts(Number retryAttempts)
Minimum value of 0. Maximum value of 185.
Default: 185
retryAttempts
- The maximum number of times to retry when the function returns an error. This parameter is required.this
@Stability(value=Stable) public ApiGateway.Builder eventRole(IRole eventRole)
Default: - a new role will be created
eventRole
- The role to assume before invoking the target (i.e., the pipeline) when the given rule is triggered. This parameter is required.this
@Stability(value=Stable) public ApiGateway.Builder headerParameters(Map<String,String> headerParameters)
Default: no header parameters
headerParameters
- The headers to be set when requesting API. This parameter is required.this
@Stability(value=Stable) public ApiGateway.Builder method(String method)
Default: '*' that treated as ANY
method
- The method for api resource invoked by the rule. This parameter is required.this
@Stability(value=Stable) public ApiGateway.Builder path(String path)
We can use wildcards('*') to specify the path. In that case, an equal number of real values must be specified for pathParameterValues.
Default: '/'
path
- The api resource invoked by the rule. This parameter is required.this
@Stability(value=Stable) public ApiGateway.Builder pathParameterValues(List<String> pathParameterValues)
Default: no path parameters
pathParameterValues
- The path parameter values to be used to populate to wildcards("*") of requesting api path. This parameter is required.this
@Stability(value=Stable) public ApiGateway.Builder postBody(RuleTargetInput postBody)
Default: the entire EventBridge event
postBody
- This will be the post request body send to the API. This parameter is required.this
@Stability(value=Stable) public ApiGateway.Builder queryStringParameters(Map<String,String> queryStringParameters)
Default: no querystring parameters
queryStringParameters
- The query parameters to be set when requesting API. This parameter is required.this
@Stability(value=Stable) public ApiGateway.Builder stage(String stage)
Default: the value of deploymentStage.stageName of target api gateway.
stage
- The deploy stage of api gateway invoked by the rule. This parameter is required.this
@Stability(value=Stable) public ApiGateway build()
build
in interface software.amazon.jsii.Builder<ApiGateway>
Copyright © 2022. All rights reserved.