| 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.CloudWatchLogs.DescribeDestinations
Description
Lists all your destinations. The results are ASCII-sorted by destination name.
This operation returns paginated results.
Synopsis
- data DescribeDestinations = DescribeDestinations' {}
- newDescribeDestinations :: DescribeDestinations
- describeDestinations_destinationNamePrefix :: Lens' DescribeDestinations (Maybe Text)
- describeDestinations_limit :: Lens' DescribeDestinations (Maybe Natural)
- describeDestinations_nextToken :: Lens' DescribeDestinations (Maybe Text)
- data DescribeDestinationsResponse = DescribeDestinationsResponse' {
- destinations :: Maybe [Destination]
- nextToken :: Maybe Text
- httpStatus :: Int
- newDescribeDestinationsResponse :: Int -> DescribeDestinationsResponse
- describeDestinationsResponse_destinations :: Lens' DescribeDestinationsResponse (Maybe [Destination])
- describeDestinationsResponse_nextToken :: Lens' DescribeDestinationsResponse (Maybe Text)
- describeDestinationsResponse_httpStatus :: Lens' DescribeDestinationsResponse Int
Creating a Request
data DescribeDestinations Source #
See: newDescribeDestinations smart constructor.
Constructors
| DescribeDestinations' | |
Fields
| |
Instances
newDescribeDestinations :: DescribeDestinations Source #
Create a value of DescribeDestinations 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:destinationNamePrefix:DescribeDestinations', describeDestinations_destinationNamePrefix - The prefix to match. If you don't specify a value, no prefix filter is
applied.
$sel:limit:DescribeDestinations', describeDestinations_limit - The maximum number of items returned. If you don't specify a value, the
default maximum value of 50 items is used.
DescribeDestinations, describeDestinations_nextToken - The token for the next set of items to return. (You received this token
from a previous call.)
Request Lenses
describeDestinations_destinationNamePrefix :: Lens' DescribeDestinations (Maybe Text) Source #
The prefix to match. If you don't specify a value, no prefix filter is applied.
describeDestinations_limit :: Lens' DescribeDestinations (Maybe Natural) Source #
The maximum number of items returned. If you don't specify a value, the default maximum value of 50 items is used.
describeDestinations_nextToken :: Lens' DescribeDestinations (Maybe Text) Source #
The token for the next set of items to return. (You received this token from a previous call.)
Destructuring the Response
data DescribeDestinationsResponse Source #
See: newDescribeDestinationsResponse smart constructor.
Constructors
| DescribeDestinationsResponse' | |
Fields
| |
Instances
newDescribeDestinationsResponse Source #
Create a value of DescribeDestinationsResponse 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:destinations:DescribeDestinationsResponse', describeDestinationsResponse_destinations - The destinations.
DescribeDestinations, describeDestinationsResponse_nextToken - Undocumented member.
$sel:httpStatus:DescribeDestinationsResponse', describeDestinationsResponse_httpStatus - The response's http status code.
Response Lenses
describeDestinationsResponse_destinations :: Lens' DescribeDestinationsResponse (Maybe [Destination]) Source #
The destinations.
describeDestinationsResponse_nextToken :: Lens' DescribeDestinationsResponse (Maybe Text) Source #
Undocumented member.
describeDestinationsResponse_httpStatus :: Lens' DescribeDestinationsResponse Int Source #
The response's http status code.