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 |
Returns a list of the notification rule targets for an AWS account.
This operation returns paginated results.
Synopsis
- data ListTargets = ListTargets' {}
- newListTargets :: ListTargets
- listTargets_filters :: Lens' ListTargets (Maybe [ListTargetsFilter])
- listTargets_nextToken :: Lens' ListTargets (Maybe Text)
- listTargets_maxResults :: Lens' ListTargets (Maybe Natural)
- data ListTargetsResponse = ListTargetsResponse' {
- nextToken :: Maybe Text
- targets :: Maybe [TargetSummary]
- httpStatus :: Int
- newListTargetsResponse :: Int -> ListTargetsResponse
- listTargetsResponse_nextToken :: Lens' ListTargetsResponse (Maybe Text)
- listTargetsResponse_targets :: Lens' ListTargetsResponse (Maybe [TargetSummary])
- listTargetsResponse_httpStatus :: Lens' ListTargetsResponse Int
Creating a Request
data ListTargets Source #
See: newListTargets
smart constructor.
ListTargets' | |
|
Instances
newListTargets :: ListTargets Source #
Create a value of ListTargets
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:filters:ListTargets'
, listTargets_filters
- The filters to use to return information by service or resource type.
Valid filters include target type, target address, and target status.
A filter with the same name can appear more than once when used with OR statements. Filters with different names should be applied with AND statements.
$sel:nextToken:ListTargets'
, listTargets_nextToken
- An enumeration token that, when provided in a request, returns the next
batch of the results.
$sel:maxResults:ListTargets'
, listTargets_maxResults
- A non-negative integer used to limit the number of returned results. The
maximum number of results that can be returned is 100.
Request Lenses
listTargets_filters :: Lens' ListTargets (Maybe [ListTargetsFilter]) Source #
The filters to use to return information by service or resource type. Valid filters include target type, target address, and target status.
A filter with the same name can appear more than once when used with OR statements. Filters with different names should be applied with AND statements.
listTargets_nextToken :: Lens' ListTargets (Maybe Text) Source #
An enumeration token that, when provided in a request, returns the next batch of the results.
listTargets_maxResults :: Lens' ListTargets (Maybe Natural) Source #
A non-negative integer used to limit the number of returned results. The maximum number of results that can be returned is 100.
Destructuring the Response
data ListTargetsResponse Source #
See: newListTargetsResponse
smart constructor.
ListTargetsResponse' | |
|
Instances
newListTargetsResponse Source #
Create a value of ListTargetsResponse
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:nextToken:ListTargets'
, listTargetsResponse_nextToken
- An enumeration token that can be used in a request to return the next
batch of results.
$sel:targets:ListTargetsResponse'
, listTargetsResponse_targets
- The list of notification rule targets.
$sel:httpStatus:ListTargetsResponse'
, listTargetsResponse_httpStatus
- The response's http status code.
Response Lenses
listTargetsResponse_nextToken :: Lens' ListTargetsResponse (Maybe Text) Source #
An enumeration token that can be used in a request to return the next batch of results.
listTargetsResponse_targets :: Lens' ListTargetsResponse (Maybe [TargetSummary]) Source #
The list of notification rule targets.
listTargetsResponse_httpStatus :: Lens' ListTargetsResponse Int Source #
The response's http status code.