| 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.CloudWatchEvents.ListRuleNamesByTarget
Description
Lists the rules for the specified target. You can see which of the rules in Amazon EventBridge can invoke a specific target in your account.
This operation returns paginated results.
Synopsis
- data ListRuleNamesByTarget = ListRuleNamesByTarget' {}
- newListRuleNamesByTarget :: Text -> ListRuleNamesByTarget
- listRuleNamesByTarget_eventBusName :: Lens' ListRuleNamesByTarget (Maybe Text)
- listRuleNamesByTarget_limit :: Lens' ListRuleNamesByTarget (Maybe Natural)
- listRuleNamesByTarget_nextToken :: Lens' ListRuleNamesByTarget (Maybe Text)
- listRuleNamesByTarget_targetArn :: Lens' ListRuleNamesByTarget Text
- data ListRuleNamesByTargetResponse = ListRuleNamesByTargetResponse' {}
- newListRuleNamesByTargetResponse :: Int -> ListRuleNamesByTargetResponse
- listRuleNamesByTargetResponse_nextToken :: Lens' ListRuleNamesByTargetResponse (Maybe Text)
- listRuleNamesByTargetResponse_ruleNames :: Lens' ListRuleNamesByTargetResponse (Maybe [Text])
- listRuleNamesByTargetResponse_httpStatus :: Lens' ListRuleNamesByTargetResponse Int
Creating a Request
data ListRuleNamesByTarget Source #
See: newListRuleNamesByTarget smart constructor.
Constructors
| ListRuleNamesByTarget' | |
Fields
| |
Instances
newListRuleNamesByTarget Source #
Create a value of ListRuleNamesByTarget 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:
ListRuleNamesByTarget, listRuleNamesByTarget_eventBusName - The name or ARN of the event bus to list rules for. If you omit this,
the default event bus is used.
$sel:limit:ListRuleNamesByTarget', listRuleNamesByTarget_limit - The maximum number of results to return.
ListRuleNamesByTarget, listRuleNamesByTarget_nextToken - The token returned by a previous call to retrieve the next set of
results.
$sel:targetArn:ListRuleNamesByTarget', listRuleNamesByTarget_targetArn - The Amazon Resource Name (ARN) of the target resource.
Request Lenses
listRuleNamesByTarget_eventBusName :: Lens' ListRuleNamesByTarget (Maybe Text) Source #
The name or ARN of the event bus to list rules for. If you omit this, the default event bus is used.
listRuleNamesByTarget_limit :: Lens' ListRuleNamesByTarget (Maybe Natural) Source #
The maximum number of results to return.
listRuleNamesByTarget_nextToken :: Lens' ListRuleNamesByTarget (Maybe Text) Source #
The token returned by a previous call to retrieve the next set of results.
listRuleNamesByTarget_targetArn :: Lens' ListRuleNamesByTarget Text Source #
The Amazon Resource Name (ARN) of the target resource.
Destructuring the Response
data ListRuleNamesByTargetResponse Source #
See: newListRuleNamesByTargetResponse smart constructor.
Constructors
| ListRuleNamesByTargetResponse' | |
Instances
newListRuleNamesByTargetResponse Source #
Create a value of ListRuleNamesByTargetResponse 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:
ListRuleNamesByTarget, listRuleNamesByTargetResponse_nextToken - Indicates whether there are additional results to retrieve. If there are
no more results, the value is null.
$sel:ruleNames:ListRuleNamesByTargetResponse', listRuleNamesByTargetResponse_ruleNames - The names of the rules that can invoke the given target.
$sel:httpStatus:ListRuleNamesByTargetResponse', listRuleNamesByTargetResponse_httpStatus - The response's http status code.
Response Lenses
listRuleNamesByTargetResponse_nextToken :: Lens' ListRuleNamesByTargetResponse (Maybe Text) Source #
Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
listRuleNamesByTargetResponse_ruleNames :: Lens' ListRuleNamesByTargetResponse (Maybe [Text]) Source #
The names of the rules that can invoke the given target.
listRuleNamesByTargetResponse_httpStatus :: Lens' ListRuleNamesByTargetResponse Int Source #
The response's http status code.