Experimental
@aws-cdk/aws-pipes-enrichments-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
StepFunctionsEnrichment
A StepFunctions enrichment for a pipe.
| Stability | Experimental |
|---|---|
| Source | lib/stepfunctions.ts |
Example
ts
declare const sourceQueue: sqs.Queue;
declare const targetQueue: sqs.Queue;
declare const enrichmentStateMachine: stepfunctions.StateMachine;
const enrichment = new enrichments.StepFunctionsEnrichment(enrichmentStateMachine);
const pipe = new pipes.Pipe(this, 'Pipe', {
source: new SomeSource(sourceQueue),
enrichment,
target: new SomeTarget(targetQueue),
});
python
# source_queue: sqs.Queue
# target_queue: sqs.Queue
# enrichment_state_machine: stepfunctions.StateMachine
enrichment = enrichments.StepFunctionsEnrichment(enrichment_state_machine)
pipe = pipes.Pipe(self, "Pipe",
source=SomeSource(source_queue),
enrichment=enrichment,
target=SomeTarget(target_queue)
)
java
Queue sourceQueue;
Queue targetQueue;
StateMachine enrichmentStateMachine;
StepFunctionsEnrichment enrichment = new StepFunctionsEnrichment(enrichmentStateMachine);
Pipe pipe = Pipe.Builder.create(this, "Pipe")
.source(new SomeSource(sourceQueue))
.enrichment(enrichment)
.target(new SomeTarget(targetQueue))
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Pipes.Enrichments.Alpha
Queue sourceQueue;
Queue targetQueue;
StateMachine enrichmentStateMachine;
var enrichment = new StepFunctionsEnrichment(enrichmentStateMachine);
var pipe = new Pipe(this, "Pipe", new PipeProps {
Source = new SomeSource(sourceQueue),
Enrichment = enrichment,
Target = new SomeTarget(targetQueue)
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdkpipesenrichmentsalpha/v2
var sourceQueue Queue
var targetQueue Queue
var enrichmentStateMachine StateMachine
enrichment := enrichments.NewStepFunctionsEnrichment(enrichmentStateMachine)
pipe := pipes.NewPipe(this, jsii.String("Pipe"), &PipeProps{
Source: newSomeSource(sourceQueue),
Enrichment: Enrichment,
Target: newSomeTarget(targetQueue),
})
Initializer
ts
new StepFunctionsEnrichment(stateMachine: IStateMachine, props?: StepFunctionsEnrichmentProps)
python
StepFunctionsEnrichment(state_machine: IStateMachine, props: typing.Optional[StepFunctionsEnrichmentProps] = None)
java
new StepFunctionsEnrichment(IStateMachine stateMachine, StepFunctionsEnrichmentProps props)
csharp
new StepFunctionsEnrichment(IStateMachine stateMachine, StepFunctionsEnrichmentProps? props = null)
go
NewStepFunctionsEnrichment(StateMachine IStateMachine, Props StepFunctionsEnrichmentProps)
Properties
The ARN of the enrichment resource.
Length Constraints: Minimum length of 0. Maximum length of 1600.
Methods
bind(pipe: IPipe): EnrichmentParametersConfigdef bind(self, pipe: IPipe) -> EnrichmentParametersConfigpublic EnrichmentParametersConfig bind(IPipe pipe)public EnrichmentParametersConfig Bind(IPipe pipe)func Bind(Pipe IPipe) EnrichmentParametersConfig #Bind this enrichment to a pipe.