Class InputTransformation
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.pipes.alpha.InputTransformation
- All Implemented Interfaces:
IInputTransformation
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:29.594Z")
@Stability(Experimental)
public class InputTransformation
extends software.amazon.jsii.JsiiObject
implements IInputTransformation
(experimental) Transform or replace the input event payload.
Example:
Queue sourceQueue; IStateMachine targetStateMachine; SfnStateMachine pipeTarget = SfnStateMachine.Builder.create(targetStateMachine) .inputTransformation(InputTransformation.fromObject(Map.of("body", "<$.body>"))) .invocationType(StateMachineInvocationType.FIRE_AND_FORGET) .build(); Pipe pipe = Pipe.Builder.create(this, "Pipe") .source(new SqsSource(sourceQueue)) .target(pipeTarget) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.pipes.alpha.IInputTransformation
IInputTransformation.Jsii$Default, IInputTransformation.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
InputTransformation
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
InputTransformation
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescription(experimental) Bind the input transformation to the pipe and returns the inputTemplate string.static InputTransformation
fromEventPath
(String jsonPathExpression) (experimental) Creates an InputTransformation from a jsonPath expression of the input event.static InputTransformation
fromObject
(Map<String, ? extends Object> inputTemplate) (experimental) Creates an InputTransformation from a pipe variable.static InputTransformation
(experimental) Creates an InputTransformation from a string.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
InputTransformation
protected InputTransformation(software.amazon.jsii.JsiiObjectRef objRef) -
InputTransformation
protected InputTransformation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
fromEventPath
@Stability(Experimental) @NotNull public static InputTransformation fromEventPath(@NotNull String jsonPathExpression) (experimental) Creates an InputTransformation from a jsonPath expression of the input event.- Parameters:
jsonPathExpression
- This parameter is required.
-
fromObject
@Stability(Experimental) @NotNull public static InputTransformation fromObject(@NotNull Map<String, ? extends Object> inputTemplate) (experimental) Creates an InputTransformation from a pipe variable.- Parameters:
inputTemplate
- This parameter is required.
-
fromText
@Stability(Experimental) @NotNull public static InputTransformation fromText(@NotNull String inputTemplate) (experimental) Creates an InputTransformation from a string.- Parameters:
inputTemplate
- This parameter is required.
-
bind
(experimental) Bind the input transformation to the pipe and returns the inputTemplate string.- Specified by:
bind
in interfaceIInputTransformation
- Parameters:
pipe
- This parameter is required.
-