aws-stepfunction-tasks: verifiiedPermissions createPolicy error on parsing Property Static in Definition. #29968
Labels
@aws-cdk/aws-stepfunctions-tasks
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
When creating a task to use the service verifiedPermissions of action createPolicy, I am getting a field not supported error for the property 'static'. I have tried using pascal and lower camelcase with the same error.
Type:AWS::StepFunctions::StateMachine, StatusReason:Resource handler returned message: "Invalid State Machine Definition: 'SCHEMA_VALIDATION_FAILED: The field "static" is not supported by Step Functions at /States/resource/Parameters' (Service: AWSStepFunctions; Status Code: 400)""
Expected Behavior
I would expect the CallAwsService tasks to be duplicate of the aws sdk v3 for inputs. I would expect this task to create a static policy.
Current Behavior
Type:AWS::StepFunctions::StateMachine, StatusReason:Resource handler returned message: "Invalid State Machine Definition: 'SCHEMA_VALIDATION_FAILED: The field "static" is not supported by Step Functions at /States/create-tenant-admin-policy/Parameters' (Service: AWSStepFunctions; Status Code: 400)""
The above error occurs at the time of deployment, not during synth.
Reproduction Steps
Create a state Machine and use the CallAwsService Construct to create a Policy in verified Permissions. You will get the error at the time of deployment, not during synthesis.
Possible Solution
Update the construct to follow the sdk v3 syntax for all properties.
Additional Information/Context
No response
CDK CLI Version
2.139
Framework Version
2.139
Node.js Version
20.12.0
OS
Linux
Language
TypeScript
Language Version
Typescript 5.4.4
Other information
No response
The text was updated successfully, but these errors were encountered: