Class InputTransformation
(experimental) Transform or replace the input event payload.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Pipes.Alpha
Assembly: Amazon.CDK.AWS.Pipes.Alpha.dll
Syntax (csharp)
public class InputTransformation : DeputyBase, IInputTransformation
Syntax (vb)
Public Class InputTransformation
Inherits DeputyBase
Implements IInputTransformation
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
Queue sourceQueue;
Queue targetQueue;
var pipeTarget = new SqsTarget(targetQueue, new SqsTargetParameters {
InputTransformation = InputTransformation.FromObject(new Dictionary<string, object> {
{ "SomeKey", DynamicInput.FromEventPath("$.body") }
})
});
var pipe = new Pipe(this, "Pipe", new PipeProps {
Source = new SomeSource(sourceQueue),
Target = pipeTarget
});
Synopsis
Constructors
InputTransformation(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
InputTransformation(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(IPipe) | (experimental) Bind the input transformation to the pipe and returns the inputTemplate string. |
FromEventPath(String) | (experimental) Creates an InputTransformation from a jsonPath expression of the input event. |
FromObject(IDictionary<String, Object>) | (experimental) Creates an InputTransformation from a pipe variable. |
FromText(String) | (experimental) Creates an InputTransformation from a string. |
Constructors
InputTransformation(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected InputTransformation(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
InputTransformation(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected InputTransformation(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(IPipe)
(experimental) Bind the input transformation to the pipe and returns the inputTemplate string.
public virtual IInputTransformationConfig Bind(IPipe pipe)
Parameters
- pipe IPipe
Returns
Remarks
Stability: Experimental
FromEventPath(String)
(experimental) Creates an InputTransformation from a jsonPath expression of the input event.
public static InputTransformation FromEventPath(string jsonPathExpression)
Parameters
- jsonPathExpression System.String
Returns
Remarks
Stability: Experimental
FromObject(IDictionary<String, Object>)
(experimental) Creates an InputTransformation from a pipe variable.
public static InputTransformation FromObject(IDictionary<string, object> inputTemplate)
Parameters
- inputTemplate System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
Remarks
Stability: Experimental
FromText(String)
(experimental) Creates an InputTransformation from a string.
public static InputTransformation FromText(string inputTemplate)
Parameters
- inputTemplate System.String
Returns
Remarks
Stability: Experimental