pub struct Builder { /* private fields */ }Expand description
A builder for TestEventPatternInput.
Implementations§
source§impl Builder
impl Builder
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
sourcepub fn build(self) -> Result<TestEventPatternInput, BuildError>
pub fn build(self) -> Result<TestEventPatternInput, BuildError>
Consumes the builder and constructs a TestEventPatternInput.