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 |
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_dependentJobName :: Lens' ListTriggers (Maybe Text)
- listTriggers_maxResults :: Lens' ListTriggers (Maybe Natural)
- listTriggers_nextToken :: Lens' ListTriggers (Maybe Text)
- listTriggers_tags :: Lens' ListTriggers (Maybe (HashMap Text Text))
- data ListTriggersResponse = ListTriggersResponse' {
- nextToken :: Maybe Text
- triggerNames :: Maybe [Text]
- httpStatus :: Int
- newListTriggersResponse :: Int -> ListTriggersResponse
- listTriggersResponse_nextToken :: Lens' ListTriggersResponse (Maybe Text)
- listTriggersResponse_triggerNames :: 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: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.
$sel:maxResults:ListTriggers'
, listTriggers_maxResults
- The maximum size of a list to return.
ListTriggers
, listTriggers_nextToken
- A continuation token, if this is a continuation request.
$sel:tags:ListTriggers'
, listTriggers_tags
- Specifies to return only these tagged resources.
Request Lenses
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.
listTriggers_maxResults :: Lens' ListTriggers (Maybe Natural) Source #
The maximum size of a list to return.
listTriggers_nextToken :: Lens' ListTriggers (Maybe Text) Source #
A continuation token, if this is a continuation request.
listTriggers_tags :: Lens' ListTriggers (Maybe (HashMap Text Text)) Source #
Specifies to return only these tagged resources.
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:
ListTriggers
, listTriggersResponse_nextToken
- A continuation token, if the returned list does not contain the last
metric available.
$sel:triggerNames:ListTriggersResponse'
, listTriggersResponse_triggerNames
- The names of all triggers in the account, or the triggers with the
specified tags.
$sel:httpStatus:ListTriggersResponse'
, listTriggersResponse_httpStatus
- The response's http status code.
Response Lenses
listTriggersResponse_nextToken :: Lens' ListTriggersResponse (Maybe Text) Source #
A continuation token, if the returned list does not contain the last metric available.
listTriggersResponse_triggerNames :: Lens' ListTriggersResponse (Maybe [Text]) Source #
The names of all triggers in the account, or the triggers with the specified tags.
listTriggersResponse_httpStatus :: Lens' ListTriggersResponse Int Source #
The response's http status code.