Class ResultWriter
Configuration for writing Distributed Map state results to S3.
Inheritance
Namespace: Amazon.CDK.AWS.StepFunctions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ResultWriter : DeputyBase
Syntax (vb)
Public Class ResultWriter
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.S3;
// create a bucket
var bucket = new Bucket(this, "Bucket");
var distributedMap = new DistributedMap(this, "Distributed Map State", new DistributedMapProps {
ItemReader = new S3JsonItemReader(new S3FileItemReaderProps {
Bucket = bucket,
Key = "my-key.json"
}),
ResultWriter = new ResultWriter(new ResultWriterProps {
Bucket = bucket,
Prefix = "my-prefix"
})
});
distributedMap.ItemProcessor(new Pass(this, "Pass State"));
Synopsis
Constructors
ResultWriter(IResultWriterProps) | |
ResultWriter(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ResultWriter(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Bucket | S3 Bucket in which to save Map Run results. |
Prefix | S3 prefix in which to save Map Run results. |
Methods
ProvidePolicyStatements() | Compile policy statements to provide relevent permissions to the state machine. |
Render() | Render ResultWriter in ASL JSON format. |
Constructors
ResultWriter(IResultWriterProps)
ResultWriter(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ResultWriter(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ResultWriter(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ResultWriter(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Bucket
S3 Bucket in which to save Map Run results.
public virtual IBucket Bucket { get; }
Property Value
Prefix
S3 prefix in which to save Map Run results.
public virtual string Prefix { get; }
Property Value
System.String
Remarks
Default: - No prefix
Methods
ProvidePolicyStatements()
Compile policy statements to provide relevent permissions to the state machine.
public virtual PolicyStatement[] ProvidePolicyStatements()
Returns
Render()
Render ResultWriter in ASL JSON format.
public virtual object Render()
Returns
System.Object