forked from traintocode/serverless-aws-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
StepFunctionsState.cs
33 lines (26 loc) · 766 Bytes
/
StepFunctionsState.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.Text;
namespace ServerlessAwsWebsite;
/// <summary>
/// Mutable state object that is passed between state machine steps in <see cref="LambdaFunctions" />
/// </summary>
public class StepFunctionsState
{
public string? TriggeredS3Key { get; set; }
public string? SongTitle { get; set; }
public string? SongLyrics { get; set; }
public string? LanguageKey { get; set; }
/// <summary>
/// Passed in by the EventBridge S3 trigger
/// </summary>
public StepFunctionsDetail? Detail { get; set; }
}
public class StepFunctionsDetail
{
public StepFunctionsDetailObject? Object {get; set; }
}
public class StepFunctionsDetailObject
{
public string? Key { get; set; }
}