[−][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 PartialEq<InputTransformer> for InputTransformer
[src]
fn eq(&self, other: &InputTransformer) -> bool
[src]
fn ne(&self, other: &InputTransformer) -> bool
[src]
impl Default for InputTransformer
[src]
fn default() -> InputTransformer
[src]
impl Clone for InputTransformer
[src]
fn clone(&self) -> InputTransformer
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for InputTransformer
[src]
impl Serialize for InputTransformer
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for InputTransformer
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for InputTransformer
impl Sync for InputTransformer
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self