pub struct RemoveTargetsFluentBuilder { /* 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.
The maximum number of entries per request is 10.
Implementations§
source§impl RemoveTargetsFluentBuilder
impl RemoveTargetsFluentBuilder
sourcepub fn as_input(&self) -> &RemoveTargetsInputBuilder
pub fn as_input(&self) -> &RemoveTargetsInputBuilder
Access the RemoveTargets as a reference.
sourcepub async fn send(
self
) -> Result<RemoveTargetsOutput, SdkError<RemoveTargetsError, HttpResponse>>
pub async fn send( self ) -> Result<RemoveTargetsOutput, SdkError<RemoveTargetsError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<RemoveTargetsOutput, RemoveTargetsError, Self>
pub fn customize( self ) -> CustomizableOperation<RemoveTargetsOutput, RemoveTargetsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_event_bus_name(&self) -> &Option<String>
pub fn get_event_bus_name(&self) -> &Option<String>
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.
sourcepub fn get_force(&self) -> &Option<bool>
pub fn get_force(&self) -> &Option<bool>
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§
source§impl Clone for RemoveTargetsFluentBuilder
impl Clone for RemoveTargetsFluentBuilder
source§fn clone(&self) -> RemoveTargetsFluentBuilder
fn clone(&self) -> RemoveTargetsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for RemoveTargetsFluentBuilder
impl !RefUnwindSafe for RemoveTargetsFluentBuilder
impl Send for RemoveTargetsFluentBuilder
impl Sync for RemoveTargetsFluentBuilder
impl Unpin for RemoveTargetsFluentBuilder
impl !UnwindSafe for RemoveTargetsFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more