Open adrianjhunter opened 7 months ago
They are actually untyped because of this patch to avoid breaking changes and you should see that from the IDE as below.
or from the API reference doc:
With the untyped properties, you will need to define JSON-like property and specify correct capitalization.
Check this out for more details about the patches https://github.com/aws/aws-cdk/issues/21767
Let me know if it helps for you.
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
True, but if I use something like the OfflineStoreConfigProperty for instance (https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnFeatureGroup.OfflineStoreConfigProperty.html), it is typed but has the incorrect case.
For instance, this snippet of guidance from https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_sagemaker/CfnFeatureGroup.html#offlinestoreconfigproperty
Doesn't actually work as it generates incorrect case. The any type helps, e.g. if I ignore most of the properties under CfnFeatureGroup, I would be able to use the resource, but I feel like the properties should be corrected.
Describe the bug
I attempted to create a new CfnFeatureGroup with the OnlineStoreConfig and OfflineStoreConfig properties configured. When the template is synthesized, the resulting CFN template uses lower camel case for these specific properties while the CFN specification requires upper camel case.
Expected Behavior
Expecting output in upper camel case as per spec.
Current Behavior
As show below, the CFN template that is outputted is in lower camel case for the OfflineStorageConfig, OnlineStoreConfig, OnlineStoreSecurityConfig, DataCatalogConfig and S3StorageConfig properties.
Reproduction Steps
Below is a snippet of some CDK resources which creates an S3 bucket, KMS key and a FeatureGroup referencing said bucket and key.
Possible Solution
Not sure where this error occurs, but originally discovered this using CDK Python before replicating in Typescript. So its pre the JSII step and might be related to the raw CFN import into L1 Constructs.
Additional Information/Context
No response
CDK CLI Version
2.138.0 (build 6b41c8b)
Framework Version
2.138.0
Node.js Version
v18.16.0
OS
MacOS 13.6.4
Language
TypeScript, Python
Language Version
No response
Other information
CFN doc of impacted properties found:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-offlinestoreconfig.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-s3storageconfig.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-datacatalogconfig.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-onlinestoreconfig.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-onlinestoresecurityconfig.html