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 fn as_input(&self) -> &TestEventPatternInputBuilder
pub fn as_input(&self) -> &TestEventPatternInputBuilder
Access the TestEventPattern as a reference.
sourcepub async fn send(
self
) -> Result<TestEventPatternOutput, SdkError<TestEventPatternError, HttpResponse>>
pub async fn send( self ) -> Result<TestEventPatternOutput, SdkError<TestEventPatternError, 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<TestEventPatternOutput, TestEventPatternError, Self>
pub fn customize( self ) -> CustomizableOperation<TestEventPatternOutput, TestEventPatternError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_event_pattern(&self) -> &Option<String>
pub fn get_event_pattern(&self) -> &Option<String>
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
sourcepub fn get_event(&self) -> &Option<String>
pub fn get_event(&self) -> &Option<String>
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 moreAuto Trait Implementations§
impl Freeze for TestEventPatternFluentBuilder
impl !RefUnwindSafe for TestEventPatternFluentBuilder
impl Send for TestEventPatternFluentBuilder
impl Sync for TestEventPatternFluentBuilder
impl Unpin for TestEventPatternFluentBuilder
impl !UnwindSafe for TestEventPatternFluentBuilder
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