Struct aws_sdk_eventbridge::operation::test_event_pattern::builders::TestEventPatternFluentBuilder
source · pub struct TestEventPatternFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to TestEventPattern
.
Tests whether the specified event pattern matches the provided event.
Most services in Amazon Web Services treat : or / as the same character in Amazon Resource Names (ARNs). However, EventBridge uses an exact match in event patterns and rules. Be sure to use the correct ARN characters when creating event patterns so that they match the ARN syntax in the event you want to match.
Implementations§
source§impl TestEventPatternFluentBuilder
impl TestEventPatternFluentBuilder
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<TestEventPattern, AwsResponseRetryClassifier>, SdkError<TestEventPatternError>>
pub async fn customize( self ) -> Result<CustomizableOperation<TestEventPattern, AwsResponseRetryClassifier>, SdkError<TestEventPatternError>>
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<TestEventPatternOutput, SdkError<TestEventPatternError>>
pub async fn send( self ) -> Result<TestEventPatternOutput, SdkError<TestEventPatternError>>
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_pattern(self, input: impl Into<String>) -> Self
pub fn event_pattern(self, input: impl Into<String>) -> Self
The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
sourcepub fn set_event_pattern(self, input: Option<String>) -> Self
pub fn set_event_pattern(self, input: Option<String>) -> Self
The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
sourcepub fn event(self, input: impl Into<String>) -> Self
pub fn event(self, input: impl Into<String>) -> Self
The event, in JSON format, to test against the event pattern. The JSON must follow the format specified in Amazon Web Services Events, and the following fields are mandatory:
-
id
-
account
-
source
-
time
-
region
-
resources
-
detail-type
sourcepub fn set_event(self, input: Option<String>) -> Self
pub fn set_event(self, input: Option<String>) -> Self
The event, in JSON format, to test against the event pattern. The JSON must follow the format specified in Amazon Web Services Events, and the following fields are mandatory:
-
id
-
account
-
source
-
time
-
region
-
resources
-
detail-type
Trait Implementations§
source§impl Clone for TestEventPatternFluentBuilder
impl Clone for TestEventPatternFluentBuilder
source§fn clone(&self) -> TestEventPatternFluentBuilder
fn clone(&self) -> TestEventPatternFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more