@Stability(value=Stable) public static final class ApiGatewayProps.Builder extends Object implements software.amazon.jsii.Builder<ApiGatewayProps>
ApiGatewayProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public ApiGatewayProps.Builder eventRole(IRole eventRole)
ApiGatewayProps.getEventRole()eventRole - The role to assume before invoking the target (i.e., the pipeline) when the given rule is triggered.this@Stability(value=Stable) public ApiGatewayProps.Builder headerParameters(Map<String,String> headerParameters)
ApiGatewayProps.getHeaderParameters()headerParameters - The headers to be set when requesting API.this@Stability(value=Stable) public ApiGatewayProps.Builder method(String method)
ApiGatewayProps.getMethod()method - The method for api resource invoked by the rule.this@Stability(value=Stable) public ApiGatewayProps.Builder path(String path)
ApiGatewayProps.getPath()path - The api resource invoked by the rule.
We can use wildcards('*') to specify the path. In that case,
an equal number of real values must be specified for pathParameterValues.this@Stability(value=Stable) public ApiGatewayProps.Builder pathParameterValues(List<String> pathParameterValues)
ApiGatewayProps.getPathParameterValues()pathParameterValues - The path parameter values to be used to populate to wildcards("*") of requesting api path.this@Stability(value=Stable) public ApiGatewayProps.Builder postBody(RuleTargetInput postBody)
ApiGatewayProps.getPostBody()postBody - This will be the post request body send to the API.this@Stability(value=Stable) public ApiGatewayProps.Builder queryStringParameters(Map<String,String> queryStringParameters)
ApiGatewayProps.getQueryStringParameters()queryStringParameters - The query parameters to be set when requesting API.this@Stability(value=Stable) public ApiGatewayProps.Builder stage(String stage)
ApiGatewayProps.getStage()stage - The deploy stage of api gateway invoked by the rule.this@Stability(value=Stable) public ApiGatewayProps.Builder deadLetterQueue(IQueue deadLetterQueue)
TargetBaseProps.getDeadLetterQueue()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).
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.this@Stability(value=Stable) public ApiGatewayProps.Builder maxEventAge(Duration maxEventAge)
TargetBaseProps.getMaxEventAge()maxEventAge - The maximum age of a request that Lambda sends to a function for processing.
Minimum value of 60.
Maximum value of 86400.this@Stability(value=Stable) public ApiGatewayProps.Builder retryAttempts(Number retryAttempts)
TargetBaseProps.getRetryAttempts()retryAttempts - The maximum number of times to retry when the function returns an error.
Minimum value of 0.
Maximum value of 185.this@Stability(value=Stable) public ApiGatewayProps build()
build in interface software.amazon.jsii.Builder<ApiGatewayProps>ApiGatewayPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.