Struct aws_sdk_eventbridge::client::fluent_builders::RemoveTargets
source · [−]pub struct RemoveTargets<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to RemoveTargets
.
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.
Implementations
impl<C, M, R> RemoveTargets<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> RemoveTargets<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<RemoveTargetsOutput, SdkError<RemoveTargetsError>> where
R::Policy: SmithyRetryPolicy<RemoveTargetsInputOperationOutputAlias, RemoveTargetsOutput, RemoveTargetsError, RemoveTargetsInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<RemoveTargetsOutput, SdkError<RemoveTargetsError>> where
R::Policy: SmithyRetryPolicy<RemoveTargetsInputOperationOutputAlias, RemoveTargetsOutput, RemoveTargetsError, RemoveTargetsInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
Appends an item to Ids
.
To override the contents of this collection use set_ids
.
The IDs of the targets to remove from the rule.
The IDs of the targets to remove from the rule.
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.
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.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for RemoveTargets<C, M, R>
impl<C, M, R> Unpin for RemoveTargets<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for RemoveTargets<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more