Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: $AWS.SDK method types return Date in step functions #489

Open
thantos opened this issue Sep 9, 2022 · 2 comments
Open

Bug: $AWS.SDK method types return Date in step functions #489

thantos opened this issue Sep 9, 2022 · 2 comments
Labels
bug Something isn't working sdk step-functions

Comments

@thantos
Copy link
Collaborator

thantos commented Sep 9, 2022

$AWS.SDK method types return Date in step functions, but are actually a string.

DescribeStacks

"CreationTime": "2013-08-23T01:02:15.422Z",

$AWS.SDK.CloudFormation.describeStacks

export type CreationTime = Date;
    /**
     * The time at which the stack was created.
     */
    CreationTime: CreationTime;
  
@thantos thantos added bug Something isn't working step-functions sdk labels Sep 9, 2022
@sam-goodwin
Copy link
Collaborator

What do the step function isTimestsmp Intrinsics do? Check the string against a regex? Can they be used or do we need to change the types?

@thantos
Copy link
Collaborator Author

thantos commented Sep 9, 2022

They can check if the string is a valid timestamp and compare (>, <, etc) between timestamps, but they cannot do timestamp math or work with non-iso timestamps or timezones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sdk step-functions
Projects
None yet
Development

No branches or pull requests

2 participants