Struct aws_sdk_eventbridge::client::fluent_builders::RemoveTargets
source · [−]pub struct RemoveTargets { /* 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.
A successful execution of RemoveTargets
doesn't guarantee all targets are removed from the rule, it means that the target(s) listed in the request are removed.
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
sourceimpl RemoveTargets
impl RemoveTargets
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<RemoveTargets, AwsResponseRetryClassifier>, SdkError<RemoveTargetsError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<RemoveTargets, AwsResponseRetryClassifier>, SdkError<RemoveTargetsError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<RemoveTargetsOutput, SdkError<RemoveTargetsError>>
pub async fn send(
self
) -> Result<RemoveTargetsOutput, SdkError<RemoveTargetsError>>
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.
sourcepub fn event_bus_name(self, input: impl Into<String>) -> Self
pub fn event_bus_name(self, input: impl Into<String>) -> Self
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
sourcepub fn set_event_bus_name(self, input: Option<String>) -> Self
pub fn set_event_bus_name(self, input: Option<String>) -> Self
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
sourcepub fn ids(self, input: impl Into<String>) -> Self
pub fn ids(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_ids(self, input: Option<Vec<String>>) -> Self
The IDs of the targets to remove from the rule.
sourcepub fn force(self, input: bool) -> Self
pub fn force(self, input: bool) -> Self
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.
sourcepub fn set_force(self, input: Option<bool>) -> Self
pub fn set_force(self, input: Option<bool>) -> Self
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
sourceimpl Clone for RemoveTargets
impl Clone for RemoveTargets
sourcefn clone(&self) -> RemoveTargets
fn clone(&self) -> RemoveTargets
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more