class InputTransformation
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Pipes.Alpha.InputTransformation |
![]() | github.com/aws/aws-cdk-go/awscdkpipesalpha/v2#InputTransformation |
![]() | software.amazon.awscdk.services.pipes.alpha.InputTransformation |
![]() | aws_cdk.aws_pipes_alpha.InputTransformation |
![]() | @aws-cdk/aws-pipes-alpha ยป InputTransformation |
Implements
IInput
Transform or replace the input event payload.
Example
declare const sourceQueue: sqs.Queue;
declare const targetStateMachine: sfn.IStateMachine;
const pipeTarget = new targets.SfnStateMachine(targetStateMachine,
{
inputTransformation: pipes.InputTransformation.fromObject({ body: '<$.body>' }),
invocationType: targets.StateMachineInvocationType.FIRE_AND_FORGET,
}
);
const pipe = new pipes.Pipe(this, 'Pipe', {
source: new SqsSource(sourceQueue),
target: pipeTarget
});
Methods
Name | Description |
---|---|
bind(pipe) | Bind the input transformation to the pipe and returns the inputTemplate string. |
static from | Creates an InputTransformation from a jsonPath expression of the input event. |
static from | Creates an InputTransformation from a pipe variable. |
static from | Creates an InputTransformation from a string. |
bind(pipe)
public bind(pipe: IPipe): InputTransformationConfig
Parameters
- pipe
IPipe
Returns
Bind the input transformation to the pipe and returns the inputTemplate string.
static fromEventPath(jsonPathExpression)
public static fromEventPath(jsonPathExpression: string): InputTransformation
Parameters
- jsonPathExpression
string
Returns
Creates an InputTransformation from a jsonPath expression of the input event.
static fromObject(inputTemplate)
public static fromObject(inputTemplate: { [string]: any }): InputTransformation
Parameters
- inputTemplate
{ [string]: any }
Returns
Creates an InputTransformation from a pipe variable.
static fromText(inputTemplate)
public static fromText(inputTemplate: string): InputTransformation
Parameters
- inputTemplate
string
Returns
Creates an InputTransformation from a string.