pub struct DeleteRuleFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteRule
.
Deletes the specified rule.
Before you can delete the rule, you must remove all targets, using RemoveTargets.
When you delete a rule, incoming events might continue to match to the deleted rule. Allow a short period of time for changes to take effect.
If you call delete rule multiple times for the same rule, all calls will succeed. When you call delete rule for a non-existent custom eventbus, ResourceNotFoundException
is returned.
Managed rules are rules created and managed by another Amazon Web Services service on your behalf. These rules are created by those other Amazon Web Services services to support functionality in those services. You can delete these rules using the Force
option, but you should do so only if you are sure the other service is not still using that rule.
Implementations§
source§impl DeleteRuleFluentBuilder
impl DeleteRuleFluentBuilder
sourcepub fn as_input(&self) -> &DeleteRuleInputBuilder
pub fn as_input(&self) -> &DeleteRuleInputBuilder
Access the DeleteRule as a reference.
sourcepub async fn send(
self
) -> Result<DeleteRuleOutput, SdkError<DeleteRuleError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteRuleOutput, SdkError<DeleteRuleError, 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<DeleteRuleOutput, DeleteRuleError, Self>
pub fn customize( self ) -> CustomizableOperation<DeleteRuleOutput, DeleteRuleError, 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 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 delete the rule. 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 delete the rule. 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 delete the rule. 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 DeleteRuleFluentBuilder
impl Clone for DeleteRuleFluentBuilder
source§fn clone(&self) -> DeleteRuleFluentBuilder
fn clone(&self) -> DeleteRuleFluentBuilder
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 DeleteRuleFluentBuilder
impl !RefUnwindSafe for DeleteRuleFluentBuilder
impl Send for DeleteRuleFluentBuilder
impl Sync for DeleteRuleFluentBuilder
impl Unpin for DeleteRuleFluentBuilder
impl !UnwindSafe for DeleteRuleFluentBuilder
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