| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudWatchEvents.CreateApiDestination
Description
Creates an API destination, which is an HTTP invocation endpoint configured as a target for events.
Synopsis
- data CreateApiDestination = CreateApiDestination' {}
- newCreateApiDestination :: Text -> Text -> Text -> ApiDestinationHttpMethod -> CreateApiDestination
- createApiDestination_description :: Lens' CreateApiDestination (Maybe Text)
- createApiDestination_invocationRateLimitPerSecond :: Lens' CreateApiDestination (Maybe Natural)
- createApiDestination_name :: Lens' CreateApiDestination Text
- createApiDestination_connectionArn :: Lens' CreateApiDestination Text
- createApiDestination_invocationEndpoint :: Lens' CreateApiDestination Text
- createApiDestination_httpMethod :: Lens' CreateApiDestination ApiDestinationHttpMethod
- data CreateApiDestinationResponse = CreateApiDestinationResponse' {}
- newCreateApiDestinationResponse :: Int -> CreateApiDestinationResponse
- createApiDestinationResponse_apiDestinationArn :: Lens' CreateApiDestinationResponse (Maybe Text)
- createApiDestinationResponse_apiDestinationState :: Lens' CreateApiDestinationResponse (Maybe ApiDestinationState)
- createApiDestinationResponse_creationTime :: Lens' CreateApiDestinationResponse (Maybe UTCTime)
- createApiDestinationResponse_lastModifiedTime :: Lens' CreateApiDestinationResponse (Maybe UTCTime)
- createApiDestinationResponse_httpStatus :: Lens' CreateApiDestinationResponse Int
Creating a Request
data CreateApiDestination Source #
See: newCreateApiDestination smart constructor.
Constructors
| CreateApiDestination' | |
Fields
| |
Instances
newCreateApiDestination Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> ApiDestinationHttpMethod | |
| -> CreateApiDestination |
Create a value of CreateApiDestination with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateApiDestination, createApiDestination_description - A description for the API destination to create.
CreateApiDestination, createApiDestination_invocationRateLimitPerSecond - The maximum number of requests per second to send to the HTTP invocation
endpoint.
CreateApiDestination, createApiDestination_name - The name for the API destination to create.
CreateApiDestination, createApiDestination_connectionArn - The ARN of the connection to use for the API destination. The
destination endpoint must support the authorization type specified for
the connection.
CreateApiDestination, createApiDestination_invocationEndpoint - The URL to the HTTP invocation endpoint for the API destination.
CreateApiDestination, createApiDestination_httpMethod - The method to use for the request to the HTTP invocation endpoint.
Request Lenses
createApiDestination_description :: Lens' CreateApiDestination (Maybe Text) Source #
A description for the API destination to create.
createApiDestination_invocationRateLimitPerSecond :: Lens' CreateApiDestination (Maybe Natural) Source #
The maximum number of requests per second to send to the HTTP invocation endpoint.
createApiDestination_name :: Lens' CreateApiDestination Text Source #
The name for the API destination to create.
createApiDestination_connectionArn :: Lens' CreateApiDestination Text Source #
The ARN of the connection to use for the API destination. The destination endpoint must support the authorization type specified for the connection.
createApiDestination_invocationEndpoint :: Lens' CreateApiDestination Text Source #
The URL to the HTTP invocation endpoint for the API destination.
createApiDestination_httpMethod :: Lens' CreateApiDestination ApiDestinationHttpMethod Source #
The method to use for the request to the HTTP invocation endpoint.
Destructuring the Response
data CreateApiDestinationResponse Source #
See: newCreateApiDestinationResponse smart constructor.
Constructors
| CreateApiDestinationResponse' | |
Fields
| |
Instances
newCreateApiDestinationResponse Source #
Create a value of CreateApiDestinationResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateApiDestinationResponse, createApiDestinationResponse_apiDestinationArn - The ARN of the API destination that was created by the request.
CreateApiDestinationResponse, createApiDestinationResponse_apiDestinationState - The state of the API destination that was created by the request.
CreateApiDestinationResponse, createApiDestinationResponse_creationTime - A time stamp indicating the time that the API destination was created.
CreateApiDestinationResponse, createApiDestinationResponse_lastModifiedTime - A time stamp indicating the time that the API destination was last
modified.
$sel:httpStatus:CreateApiDestinationResponse', createApiDestinationResponse_httpStatus - The response's http status code.
Response Lenses
createApiDestinationResponse_apiDestinationArn :: Lens' CreateApiDestinationResponse (Maybe Text) Source #
The ARN of the API destination that was created by the request.
createApiDestinationResponse_apiDestinationState :: Lens' CreateApiDestinationResponse (Maybe ApiDestinationState) Source #
The state of the API destination that was created by the request.
createApiDestinationResponse_creationTime :: Lens' CreateApiDestinationResponse (Maybe UTCTime) Source #
A time stamp indicating the time that the API destination was created.
createApiDestinationResponse_lastModifiedTime :: Lens' CreateApiDestinationResponse (Maybe UTCTime) Source #
A time stamp indicating the time that the API destination was last modified.
createApiDestinationResponse_httpStatus :: Lens' CreateApiDestinationResponse Int Source #
The response's http status code.