Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
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. Please 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.
- removeTargets :: Text -> NonEmpty Text -> RemoveTargets
- data RemoveTargets
- rtRule :: Lens' RemoveTargets Text
- rtIds :: Lens' RemoveTargets (NonEmpty Text)
- removeTargetsResponse :: Int -> RemoveTargetsResponse
- data RemoveTargetsResponse
- rtrsFailedEntryCount :: Lens' RemoveTargetsResponse (Maybe Int)
- rtrsFailedEntries :: Lens' RemoveTargetsResponse [RemoveTargetsResultEntry]
- rtrsResponseStatus :: Lens' RemoveTargetsResponse Int
Creating a Request
Creates a value of RemoveTargets
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RemoveTargets Source #
See: removeTargets
smart constructor.
Request Lenses
rtIds :: Lens' RemoveTargets (NonEmpty Text) Source #
The IDs of the targets to remove from the rule.
Destructuring the Response
removeTargetsResponse Source #
Creates a value of RemoveTargetsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rtrsFailedEntryCount
- The number of failed entries.rtrsFailedEntries
- The failed target entries.rtrsResponseStatus
- -- | The response status code.
data RemoveTargetsResponse Source #
See: removeTargetsResponse
smart constructor.
Response Lenses
rtrsFailedEntryCount :: Lens' RemoveTargetsResponse (Maybe Int) Source #
The number of failed entries.
rtrsFailedEntries :: Lens' RemoveTargetsResponse [RemoveTargetsResultEntry] Source #
The failed target entries.
rtrsResponseStatus :: Lens' RemoveTargetsResponse Int Source #
- - | The response status code.