Struct aws_sdk_iotevents::types::Payload
source · #[non_exhaustive]pub struct Payload {
pub content_expression: String,
pub type: PayloadType,
}
Expand description
Information needed to configure the payload.
By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression
.
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.content_expression: String
The content of the payload. You can use a string expression that includes quoted strings ('
), variables ($variable.
), input values ($input.
), string concatenations, and quoted strings that contain ${}
as the content. The recommended maximum size of a content expression is 1 KB.
type: PayloadType
The value of the payload type can be either STRING
or JSON
.
Implementations§
source§impl Payload
impl Payload
sourcepub fn content_expression(&self) -> &str
pub fn content_expression(&self) -> &str
The content of the payload. You can use a string expression that includes quoted strings ('
), variables ($variable.
), input values ($input.
), string concatenations, and quoted strings that contain ${}
as the content. The recommended maximum size of a content expression is 1 KB.
sourcepub fn type(&self) -> &PayloadType
pub fn type(&self) -> &PayloadType
The value of the payload type can be either STRING
or JSON
.
Trait Implementations§
source§impl PartialEq for Payload
impl PartialEq for Payload
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
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