Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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_invocationRateLimitPerSecond :: Lens' CreateApiDestination (Maybe Natural)
- createApiDestination_description :: Lens' CreateApiDestination (Maybe Text)
- 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_creationTime :: Lens' CreateApiDestinationResponse (Maybe UTCTime)
- createApiDestinationResponse_lastModifiedTime :: Lens' CreateApiDestinationResponse (Maybe UTCTime)
- createApiDestinationResponse_apiDestinationState :: Lens' CreateApiDestinationResponse (Maybe ApiDestinationState)
- createApiDestinationResponse_apiDestinationArn :: Lens' CreateApiDestinationResponse (Maybe Text)
- createApiDestinationResponse_httpStatus :: Lens' CreateApiDestinationResponse Int
Creating a Request
data CreateApiDestination Source #
See: newCreateApiDestination
smart constructor.
CreateApiDestination' | |
|
Instances
newCreateApiDestination Source #
:: 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:
$sel:invocationRateLimitPerSecond:CreateApiDestination'
, createApiDestination_invocationRateLimitPerSecond
- The maximum number of requests per second to send to the HTTP invocation
endpoint.
$sel:description:CreateApiDestination'
, createApiDestination_description
- A description for the API destination to create.
$sel:name:CreateApiDestination'
, createApiDestination_name
- The name for the API destination to create.
$sel:connectionArn: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.
$sel:invocationEndpoint:CreateApiDestination'
, createApiDestination_invocationEndpoint
- The URL to the HTTP invocation endpoint for the API destination.
$sel:httpMethod:CreateApiDestination'
, createApiDestination_httpMethod
- The method to use for the request to the HTTP invocation endpoint.
Request Lenses
createApiDestination_invocationRateLimitPerSecond :: Lens' CreateApiDestination (Maybe Natural) Source #
The maximum number of requests per second to send to the HTTP invocation endpoint.
createApiDestination_description :: Lens' CreateApiDestination (Maybe Text) Source #
A description for the API destination to create.
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.
CreateApiDestinationResponse' | |
|
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:
$sel:creationTime:CreateApiDestinationResponse'
, createApiDestinationResponse_creationTime
- A time stamp indicating the time that the API destination was created.
$sel:lastModifiedTime:CreateApiDestinationResponse'
, createApiDestinationResponse_lastModifiedTime
- A time stamp indicating the time that the API destination was last
modified.
$sel:apiDestinationState:CreateApiDestinationResponse'
, createApiDestinationResponse_apiDestinationState
- The state of the API destination that was created by the request.
$sel:apiDestinationArn:CreateApiDestinationResponse'
, createApiDestinationResponse_apiDestinationArn
- The ARN of the API destination that was created by the request.
$sel:httpStatus:CreateApiDestinationResponse'
, createApiDestinationResponse_httpStatus
- The response's http status code.
Response Lenses
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_apiDestinationState :: Lens' CreateApiDestinationResponse (Maybe ApiDestinationState) Source #
The state of the API destination that was created by the request.
createApiDestinationResponse_apiDestinationArn :: Lens' CreateApiDestinationResponse (Maybe Text) Source #
The ARN of the API destination that was created by the request.
createApiDestinationResponse_httpStatus :: Lens' CreateApiDestinationResponse Int Source #
The response's http status code.