| 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.CodeStarNotifications.ListTargets
Description
Returns a list of the notification rule targets for an Amazon Web Services account.
This operation returns paginated results.
Synopsis
- data ListTargets = ListTargets' {}
- newListTargets :: ListTargets
- listTargets_filters :: Lens' ListTargets (Maybe [ListTargetsFilter])
- listTargets_maxResults :: Lens' ListTargets (Maybe Natural)
- listTargets_nextToken :: Lens' ListTargets (Maybe Text)
- 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.
Constructors
| ListTargets' | |
Fields
| |
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: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.
ListTargets, listTargets_nextToken - An enumeration token that, when provided in a request, returns the next
batch of the results.
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_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.
listTargets_nextToken :: Lens' ListTargets (Maybe Text) Source #
An enumeration token that, when provided in a request, returns the next batch of the results.
Destructuring the Response
data ListTargetsResponse Source #
See: newListTargetsResponse smart constructor.
Constructors
| ListTargetsResponse' | |
Fields
| |
Instances
newListTargetsResponse Source #
Arguments
| :: Int | |
| -> ListTargetsResponse |
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:
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.