Struct aws_sdk_eventbridge::input::TestEventPatternInput
source · [−]#[non_exhaustive]pub struct TestEventPatternInput {
pub event_pattern: Option<String>,
pub event: Option<String>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.event_pattern: Option<String>
The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
event: 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
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TestEventPattern, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TestEventPattern, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<TestEventPattern
>
Creates a new builder-style object to manufacture TestEventPatternInput
The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TestEventPatternInput
impl Send for TestEventPatternInput
impl Sync for TestEventPatternInput
impl Unpin for TestEventPatternInput
impl UnwindSafe for TestEventPatternInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more