Struct aws_sdk_eventbridge::client::fluent_builders::ListRules
source · [−]pub struct ListRules { /* private fields */ }
Expand description
Fluent builder constructing a request to ListRules
.
Lists your Amazon EventBridge rules. You can either list all the rules or you can provide a prefix to match to the rule names.
ListRules does not list the targets of a rule. To see the targets associated with a rule, use ListTargetsByRule.
Implementations
sourceimpl ListRules
impl ListRules
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ListRules, AwsResponseRetryClassifier>, SdkError<ListRulesError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ListRules, AwsResponseRetryClassifier>, SdkError<ListRulesError>>
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<ListRulesOutput, SdkError<ListRulesError>>
pub async fn send(self) -> Result<ListRulesOutput, SdkError<ListRulesError>>
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 name_prefix(self, input: impl Into<String>) -> Self
pub fn name_prefix(self, input: impl Into<String>) -> Self
The prefix matching the rule name.
sourcepub fn set_name_prefix(self, input: Option<String>) -> Self
pub fn set_name_prefix(self, input: Option<String>) -> Self
The prefix matching the rule name.
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 to list the rules for. 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 to list the rules for. If you omit this, the default event bus is used.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The token returned by a previous call to retrieve the next set of results.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The token returned by a previous call to retrieve the next set of results.