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 |
Removes the specified targets from the specified rule. When the rule is triggered, those targets are no longer be invoked.
When you remove a target, when the associated rule triggers, removed targets might continue to be invoked. Allow a short period of time for changes to take effect.
This action can partially fail if too many requests are made at the same
time. If that happens, FailedEntryCount
is non-zero in the response
and each entry in FailedEntries
provides the ID of the failed target
and the error code.
Synopsis
- data RemoveTargets = RemoveTargets' {}
- newRemoveTargets :: Text -> NonEmpty Text -> RemoveTargets
- removeTargets_force :: Lens' RemoveTargets (Maybe Bool)
- removeTargets_eventBusName :: Lens' RemoveTargets (Maybe Text)
- removeTargets_rule :: Lens' RemoveTargets Text
- removeTargets_ids :: Lens' RemoveTargets (NonEmpty Text)
- data RemoveTargetsResponse = RemoveTargetsResponse' {}
- newRemoveTargetsResponse :: Int -> RemoveTargetsResponse
- removeTargetsResponse_failedEntryCount :: Lens' RemoveTargetsResponse (Maybe Int)
- removeTargetsResponse_failedEntries :: Lens' RemoveTargetsResponse (Maybe [RemoveTargetsResultEntry])
- removeTargetsResponse_httpStatus :: Lens' RemoveTargetsResponse Int
Creating a Request
data RemoveTargets Source #
See: newRemoveTargets
smart constructor.
RemoveTargets' | |
|
Instances
Create a value of RemoveTargets
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:force:RemoveTargets'
, removeTargets_force
- If this is a managed rule, created by an Amazon Web Services service on
your behalf, you must specify Force
as True
to remove targets. This
parameter is ignored for rules that are not managed rules. You can check
whether a rule is a managed rule by using DescribeRule
or ListRules
and checking the ManagedBy
field of the response.
$sel:eventBusName:RemoveTargets'
, removeTargets_eventBusName
- The name or ARN of the event bus associated with the rule. If you omit
this, the default event bus is used.
$sel:rule:RemoveTargets'
, removeTargets_rule
- The name of the rule.
$sel:ids:RemoveTargets'
, removeTargets_ids
- The IDs of the targets to remove from the rule.
Request Lenses
removeTargets_force :: Lens' RemoveTargets (Maybe Bool) Source #
If this is a managed rule, created by an Amazon Web Services service on
your behalf, you must specify Force
as True
to remove targets. This
parameter is ignored for rules that are not managed rules. You can check
whether a rule is a managed rule by using DescribeRule
or ListRules
and checking the ManagedBy
field of the response.
removeTargets_eventBusName :: Lens' RemoveTargets (Maybe Text) Source #
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
removeTargets_rule :: Lens' RemoveTargets Text Source #
The name of the rule.
removeTargets_ids :: Lens' RemoveTargets (NonEmpty Text) Source #
The IDs of the targets to remove from the rule.
Destructuring the Response
data RemoveTargetsResponse Source #
See: newRemoveTargetsResponse
smart constructor.
RemoveTargetsResponse' | |
|
Instances
newRemoveTargetsResponse Source #
Create a value of RemoveTargetsResponse
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:failedEntryCount:RemoveTargetsResponse'
, removeTargetsResponse_failedEntryCount
- The number of failed entries.
$sel:failedEntries:RemoveTargetsResponse'
, removeTargetsResponse_failedEntries
- The failed target entries.
$sel:httpStatus:RemoveTargetsResponse'
, removeTargetsResponse_httpStatus
- The response's http status code.
Response Lenses
removeTargetsResponse_failedEntryCount :: Lens' RemoveTargetsResponse (Maybe Int) Source #
The number of failed entries.
removeTargetsResponse_failedEntries :: Lens' RemoveTargetsResponse (Maybe [RemoveTargetsResultEntry]) Source #
The failed target entries.
removeTargetsResponse_httpStatus :: Lens' RemoveTargetsResponse Int Source #
The response's http status code.