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 |
Retrieves the names of all trigger resources in this Amazon Web Services account, or the resources with the specified tag. This operation allows you to see which resources are available in your account, and their names.
This operation takes the optional Tags
field, which you can use as a
filter on the response so that tagged resources can be retrieved as a
group. If you choose to use tags filtering, only resources with the tag
are retrieved.
Synopsis
- data ListTriggers = ListTriggers' {}
- newListTriggers :: ListTriggers
- listTriggers_nextToken :: Lens' ListTriggers (Maybe Text)
- listTriggers_maxResults :: Lens' ListTriggers (Maybe Natural)
- listTriggers_tags :: Lens' ListTriggers (Maybe (HashMap Text Text))
- listTriggers_dependentJobName :: Lens' ListTriggers (Maybe Text)
- data ListTriggersResponse = ListTriggersResponse' {
- triggerNames :: Maybe [Text]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListTriggersResponse :: Int -> ListTriggersResponse
- listTriggersResponse_triggerNames :: Lens' ListTriggersResponse (Maybe [Text])
- listTriggersResponse_nextToken :: Lens' ListTriggersResponse (Maybe Text)
- listTriggersResponse_httpStatus :: Lens' ListTriggersResponse Int
Creating a Request
data ListTriggers Source #
See: newListTriggers
smart constructor.
ListTriggers' | |
|
Instances
newListTriggers :: ListTriggers Source #
Create a value of ListTriggers
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:ListTriggers'
, listTriggers_nextToken
- A continuation token, if this is a continuation request.
$sel:maxResults:ListTriggers'
, listTriggers_maxResults
- The maximum size of a list to return.
$sel:tags:ListTriggers'
, listTriggers_tags
- Specifies to return only these tagged resources.
$sel:dependentJobName:ListTriggers'
, listTriggers_dependentJobName
- The name of the job for which to retrieve triggers. The trigger that can
start this job is returned. If there is no such trigger, all triggers
are returned.
Request Lenses
listTriggers_nextToken :: Lens' ListTriggers (Maybe Text) Source #
A continuation token, if this is a continuation request.
listTriggers_maxResults :: Lens' ListTriggers (Maybe Natural) Source #
The maximum size of a list to return.
listTriggers_tags :: Lens' ListTriggers (Maybe (HashMap Text Text)) Source #
Specifies to return only these tagged resources.
listTriggers_dependentJobName :: Lens' ListTriggers (Maybe Text) Source #
The name of the job for which to retrieve triggers. The trigger that can start this job is returned. If there is no such trigger, all triggers are returned.
Destructuring the Response
data ListTriggersResponse Source #
See: newListTriggersResponse
smart constructor.
ListTriggersResponse' | |
|
Instances
newListTriggersResponse Source #
Create a value of ListTriggersResponse
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:triggerNames:ListTriggersResponse'
, listTriggersResponse_triggerNames
- The names of all triggers in the account, or the triggers with the
specified tags.
$sel:nextToken:ListTriggers'
, listTriggersResponse_nextToken
- A continuation token, if the returned list does not contain the last
metric available.
$sel:httpStatus:ListTriggersResponse'
, listTriggersResponse_httpStatus
- The response's http status code.
Response Lenses
listTriggersResponse_triggerNames :: Lens' ListTriggersResponse (Maybe [Text]) Source #
The names of all triggers in the account, or the triggers with the specified tags.
listTriggersResponse_nextToken :: Lens' ListTriggersResponse (Maybe Text) Source #
A continuation token, if the returned list does not contain the last metric available.
listTriggersResponse_httpStatus :: Lens' ListTriggersResponse Int Source #
The response's http status code.