| 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.GuardDuty.ListPublishingDestinations
Description
Returns a list of publishing destinations associated with the specified
detectorId.
Synopsis
- data ListPublishingDestinations = ListPublishingDestinations' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- detectorId :: Text
- newListPublishingDestinations :: Text -> ListPublishingDestinations
- listPublishingDestinations_maxResults :: Lens' ListPublishingDestinations (Maybe Natural)
- listPublishingDestinations_nextToken :: Lens' ListPublishingDestinations (Maybe Text)
- listPublishingDestinations_detectorId :: Lens' ListPublishingDestinations Text
- data ListPublishingDestinationsResponse = ListPublishingDestinationsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- destinations :: [Destination]
- newListPublishingDestinationsResponse :: Int -> ListPublishingDestinationsResponse
- listPublishingDestinationsResponse_nextToken :: Lens' ListPublishingDestinationsResponse (Maybe Text)
- listPublishingDestinationsResponse_httpStatus :: Lens' ListPublishingDestinationsResponse Int
- listPublishingDestinationsResponse_destinations :: Lens' ListPublishingDestinationsResponse [Destination]
Creating a Request
data ListPublishingDestinations Source #
See: newListPublishingDestinations smart constructor.
Constructors
| ListPublishingDestinations' | |
Fields
| |
Instances
newListPublishingDestinations Source #
Arguments
| :: Text | |
| -> ListPublishingDestinations |
Create a value of ListPublishingDestinations 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:maxResults:ListPublishingDestinations', listPublishingDestinations_maxResults - The maximum number of results to return in the response.
ListPublishingDestinations, listPublishingDestinations_nextToken - A token to use for paginating results that are returned in the response.
Set the value of this parameter to null for the first request to a list
action. For subsequent calls, use the NextToken value returned from
the previous request to continue listing results after the first page.
ListPublishingDestinations, listPublishingDestinations_detectorId - The ID of the detector to retrieve publishing destinations for.
Request Lenses
listPublishingDestinations_maxResults :: Lens' ListPublishingDestinations (Maybe Natural) Source #
The maximum number of results to return in the response.
listPublishingDestinations_nextToken :: Lens' ListPublishingDestinations (Maybe Text) Source #
A token to use for paginating results that are returned in the response.
Set the value of this parameter to null for the first request to a list
action. For subsequent calls, use the NextToken value returned from
the previous request to continue listing results after the first page.
listPublishingDestinations_detectorId :: Lens' ListPublishingDestinations Text Source #
The ID of the detector to retrieve publishing destinations for.
Destructuring the Response
data ListPublishingDestinationsResponse Source #
See: newListPublishingDestinationsResponse smart constructor.
Constructors
| ListPublishingDestinationsResponse' | |
Fields
| |
Instances
newListPublishingDestinationsResponse Source #
Arguments
| :: Int | |
| -> ListPublishingDestinationsResponse |
Create a value of ListPublishingDestinationsResponse 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:
ListPublishingDestinations, listPublishingDestinationsResponse_nextToken - A token to use for paginating results that are returned in the response.
Set the value of this parameter to null for the first request to a list
action. For subsequent calls, use the NextToken value returned from
the previous request to continue listing results after the first page.
$sel:httpStatus:ListPublishingDestinationsResponse', listPublishingDestinationsResponse_httpStatus - The response's http status code.
$sel:destinations:ListPublishingDestinationsResponse', listPublishingDestinationsResponse_destinations - A Destinations object that includes information about each publishing
destination returned.
Response Lenses
listPublishingDestinationsResponse_nextToken :: Lens' ListPublishingDestinationsResponse (Maybe Text) Source #
A token to use for paginating results that are returned in the response.
Set the value of this parameter to null for the first request to a list
action. For subsequent calls, use the NextToken value returned from
the previous request to continue listing results after the first page.
listPublishingDestinationsResponse_httpStatus :: Lens' ListPublishingDestinationsResponse Int Source #
The response's http status code.
listPublishingDestinationsResponse_destinations :: Lens' ListPublishingDestinationsResponse [Destination] Source #
A Destinations object that includes information about each publishing
destination returned.