Class ApiDestination.Builder
java.lang.Object
software.amazon.awscdk.services.events.ApiDestination.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiDestination>
- Enclosing class:
ApiDestination
@Stability(Stable)
public static final class ApiDestination.Builder
extends Object
implements software.amazon.jsii.Builder<ApiDestination>
A fluent builder for
ApiDestination
.-
Method Summary
Modifier and TypeMethodDescriptionapiDestinationName
(String apiDestinationName) The name for the API destination.build()
connection
(IConnection connection) The ARN of the connection to use for the API destination.static ApiDestination.Builder
description
(String description) A description for the API destination.The URL to the HTTP invocation endpoint for the API destination..httpMethod
(HttpMethod httpMethod) The method to use for the request to the HTTP invocation endpoint.rateLimitPerSecond
(Number rateLimitPerSecond) The maximum number of requests per second to send to the HTTP invocation endpoint.
-
Method Details
-
create
@Stability(Stable) public static ApiDestination.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
ApiDestination.Builder
.
-
connection
The ARN of the connection to use for the API destination.- Parameters:
connection
- The ARN of the connection to use for the API destination. This parameter is required.- Returns:
this
-
endpoint
The URL to the HTTP invocation endpoint for the API destination..- Parameters:
endpoint
- The URL to the HTTP invocation endpoint for the API destination.. This parameter is required.- Returns:
this
-
apiDestinationName
The name for the API destination.Default: - A unique name will be generated
- Parameters:
apiDestinationName
- The name for the API destination. This parameter is required.- Returns:
this
-
description
A description for the API destination.Default: - none
- Parameters:
description
- A description for the API destination. This parameter is required.- Returns:
this
-
httpMethod
The method to use for the request to the HTTP invocation endpoint.Default: HttpMethod.POST
- Parameters:
httpMethod
- The method to use for the request to the HTTP invocation endpoint. This parameter is required.- Returns:
this
-
rateLimitPerSecond
The maximum number of requests per second to send to the HTTP invocation endpoint.Default: - Not rate limited
- Parameters:
rateLimitPerSecond
- The maximum number of requests per second to send to the HTTP invocation endpoint. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ApiDestination>
- Returns:
- a newly built instance of
ApiDestination
.
-