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 |
Gets information about a destination.
Synopsis
- data GetDestination = GetDestination' {}
- newGetDestination :: Text -> GetDestination
- getDestination_name :: Lens' GetDestination Text
- data GetDestinationResponse = GetDestinationResponse' {
- expressionType :: Maybe ExpressionType
- arn :: Maybe Text
- name :: Maybe Text
- expression :: Maybe Text
- description :: Maybe Text
- roleArn :: Maybe Text
- httpStatus :: Int
- newGetDestinationResponse :: Int -> GetDestinationResponse
- getDestinationResponse_expressionType :: Lens' GetDestinationResponse (Maybe ExpressionType)
- getDestinationResponse_arn :: Lens' GetDestinationResponse (Maybe Text)
- getDestinationResponse_name :: Lens' GetDestinationResponse (Maybe Text)
- getDestinationResponse_expression :: Lens' GetDestinationResponse (Maybe Text)
- getDestinationResponse_description :: Lens' GetDestinationResponse (Maybe Text)
- getDestinationResponse_roleArn :: Lens' GetDestinationResponse (Maybe Text)
- getDestinationResponse_httpStatus :: Lens' GetDestinationResponse Int
Creating a Request
data GetDestination Source #
See: newGetDestination
smart constructor.
Instances
Create a value of GetDestination
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:name:GetDestination'
, getDestination_name
- The name of the resource to get.
Request Lenses
getDestination_name :: Lens' GetDestination Text Source #
The name of the resource to get.
Destructuring the Response
data GetDestinationResponse Source #
See: newGetDestinationResponse
smart constructor.
GetDestinationResponse' | |
|
Instances
newGetDestinationResponse Source #
Create a value of GetDestinationResponse
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:expressionType:GetDestinationResponse'
, getDestinationResponse_expressionType
- The type of value in Expression
.
$sel:arn:GetDestinationResponse'
, getDestinationResponse_arn
- The Amazon Resource Name of the resource.
$sel:name:GetDestination'
, getDestinationResponse_name
- The name of the resource.
$sel:expression:GetDestinationResponse'
, getDestinationResponse_expression
- The rule name or topic rule to send messages to.
$sel:description:GetDestinationResponse'
, getDestinationResponse_description
- The description of the resource.
$sel:roleArn:GetDestinationResponse'
, getDestinationResponse_roleArn
- The ARN of the IAM Role that authorizes the destination.
$sel:httpStatus:GetDestinationResponse'
, getDestinationResponse_httpStatus
- The response's http status code.
Response Lenses
getDestinationResponse_expressionType :: Lens' GetDestinationResponse (Maybe ExpressionType) Source #
The type of value in Expression
.
getDestinationResponse_arn :: Lens' GetDestinationResponse (Maybe Text) Source #
The Amazon Resource Name of the resource.
getDestinationResponse_name :: Lens' GetDestinationResponse (Maybe Text) Source #
The name of the resource.
getDestinationResponse_expression :: Lens' GetDestinationResponse (Maybe Text) Source #
The rule name or topic rule to send messages to.
getDestinationResponse_description :: Lens' GetDestinationResponse (Maybe Text) Source #
The description of the resource.
getDestinationResponse_roleArn :: Lens' GetDestinationResponse (Maybe Text) Source #
The ARN of the IAM Role that authorizes the destination.
getDestinationResponse_httpStatus :: Lens' GetDestinationResponse Int Source #
The response's http status code.