create_api_destination
async
¶
create_api_destination(
name: ApiDestinationName,
connection_arn: ConnectionArn,
invocation_endpoint: HttpsEndpoint,
http_method: ApiDestinationHttpMethod,
*,
config_overrides: Optional[AsyncCloudWatchEventsClientConfig] = None,
description: Optional[ApiDestinationDescription] = None,
invocation_rate_limit_per_second: Optional[
ApiDestinationInvocationRateLimitPerSecond
] = None,
) -> CreateApiDestinationResponse
Creates an API destination, which is an HTTP invocation endpoint configured as a target for events.
Parameters:
-
name(ApiDestinationName) –The name for the API destination to create.
-
description(Optional[ApiDestinationDescription], default:None) –A description for the API destination to create.
-
connection_arn(ConnectionArn) –The ARN of the connection to use for the API destination. The destination endpoint must support the authorization type specified for the connection.
-
invocation_endpoint(HttpsEndpoint) –The URL to the HTTP invocation endpoint for the API destination.
-
http_method(ApiDestinationHttpMethod) –The method to use for the request to the HTTP invocation endpoint.
-
invocation_rate_limit_per_second(Optional[ApiDestinationInvocationRateLimitPerSecond], default:None) –The maximum number of requests per second to send to the HTTP invocation endpoint.
Raises:
-
InternalException–This exception occurs due to unexpected causes.
-
LimitExceededException–The request failed because it attempted to create resource beyond the allowed service quota.
-
ResourceAlreadyExistsException–The resource you are trying to create already exists.
-
ResourceNotFoundException–An entity that you specified does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.