[−][src]Struct rusoto_events::InputTransformer
Contains the parameters needed for you to provide custom input to a target based on one or more pieces of data extracted from the event.
Fields
input_paths_map: Option<HashMap<String, String>>
Map of JSON paths to be extracted from the event. You can then insert these in the template in InputTemplate
to produce the output you want to be sent to the target.
InputPathsMap
is an array key-value pairs, where each value is a valid JSON path. You can have as many as 10 key-value pairs. You must use JSON dot notation, not bracket notation.
The keys cannot start with "AWS."
input_template: String
Input template where you specify placeholders that will be filled with the values of the keys from InputPathsMap
to customize the data sent to the target. Enclose each InputPathsMaps
value in brackets: <value> The InputTemplate must be valid JSON.
If InputTemplate
is a JSON object (surrounded by curly braces), the following restrictions apply:
-
The placeholder cannot be used as an object key.
-
Object values cannot include quote marks.
The following example shows the syntax for using InputPathsMap
and InputTemplate
.
"InputTransformer":
{
"InputPathsMap": {"instance": "$.detail.instance","status": "$.detail.status"},
"InputTemplate": "<instance> is in state <status>"
}
To have the InputTemplate
include quote marks within a JSON string, escape each quote marks with a slash, as in the following example:
"InputTransformer":
{
"InputPathsMap": {"instance": "$.detail.instance","status": "$.detail.status"},
"InputTemplate": "<instance> is in state \"<status>\""
}
Trait Implementations
impl Clone for InputTransformer
[src]
pub fn clone(&self) -> InputTransformer
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InputTransformer
[src]
impl Default for InputTransformer
[src]
pub fn default() -> InputTransformer
[src]
impl<'de> Deserialize<'de> for InputTransformer
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<InputTransformer> for InputTransformer
[src]
pub fn eq(&self, other: &InputTransformer) -> bool
[src]
pub fn ne(&self, other: &InputTransformer) -> bool
[src]
impl Serialize for InputTransformer
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for InputTransformer
[src]
Auto Trait Implementations
impl RefUnwindSafe for InputTransformer
[src]
impl Send for InputTransformer
[src]
impl Sync for InputTransformer
[src]
impl Unpin for InputTransformer
[src]
impl UnwindSafe for InputTransformer
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,