-
Notifications
You must be signed in to change notification settings - Fork 4k
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
aws-iot: CfnJobTemplate types mismatched cases #32258
Comments
Hi, The see: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnJobTemplate.html#timeoutconfig So you need to specify the raw JSON like const jobTemplate = new iot.CfnJobTemplate(this, `jobTemplate1`, {
jobTemplateId: 'SOME_ID',
description: 'Description',
document: '',
timeoutConfig: {
InProgressTimeoutInMinutes: 100
}
}); |
For the whole CfnJobTemplate that is correct, but the broken-out property types are incorrect:
|
@jknotamzn agree this is confusing. I am reaching out to the team for further inputs here. |
I see what's going on here. The However, because of the capitalization behavior change you are noticing, this change is backwards incompatible. We are therefore not able pick up the new type: we have to forever keep on emitting this type as JSON/any in order to not break existing programs. Which means you need to take care of capitalization yourself. We should have a backlog item for this, but I can't find one offhand. I'll search some more and make a new one if necessary. |
Created this: #32285 |
Root cause is as @rix0rrr described. However for this specific case we know the property (here |
We should handle #32459 as well in case we decide to apply conversion. |
Describe the bug
Several types are incorrectly cased in CfnJobTemplate under aws-iot version 2.166.0
It seems like multiple properties are affected.
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Type should be:
(Note the capital I / Pascal case vs camel case)
Current Behavior
Several properties have this issue in CfnJobTemplate.
Reproduction Steps
Build & deploy
results in:
Possible Solution
Types need to be corrected
Additional Information/Context
No response
CDK CLI Version
2.166.0
Framework Version
2.166.0
Node.js Version
v20.18.0
OS
MacOS
Language
TypeScript
Language Version
5.6.3
Other information
The documentation is conflicted on what it should be, but Pascal case does work if done if forced by using CfnJobTemplate without the property types because they're all 'any'.
Pascal
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-jobtemplate-timeoutconfig.html#cfn-iot-jobtemplate-timeoutconfig-inprogresstimeoutinminutes
Camel
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iot/create-job-template.html
Camel
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnJobTemplate.TimeoutConfigProperty.html
The text was updated successfully, but these errors were encountered: