jsii-rosetta icon indicating copy to clipboard operation
jsii-rosetta copied to clipboard

(python) Incorrect docs translation of three letter acronyms in property names

Open mrgrain opened this issue 2 years ago • 3 comments

https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_ecs/ServiceManagedEBSVolumeConfiguration.html

Is managed_eBSVolume Should be managed_ebs_volume

        volume = ecs.ServiceManagedVolume(self, "EBSVolume",
            name="ebs1",
            managed_ebs_volume=ecs.ServiceManagedEBSVolumeConfiguration(
                size= Size.gibibytes(15),
                volume_type=ec2.EbsDeviceVolumeType.GP3,
                file_system_type=ecs.FileSystemType.XFS,
                tag_specifications=[ecs.EBSTagSpecification(
                    tags={
                        "purpose": "production"
                    },
                    propagate_tags=ecs.EbsPropagatedTagSource.SERVICE
                )]
            )
        )

mrgrain avatar Feb 19 '24 07:02 mrgrain

@mrgrain this is a bug with generated example code only, right?

iliapolo avatar Feb 22 '24 15:02 iliapolo

I thought it's a bug with transliterating an example from TS to Python. But I might be wrong.

mrgrain avatar Feb 22 '24 15:02 mrgrain

Yeah it might be that, I just meant its not a runtime issue, but a doc issue 👍

iliapolo avatar Feb 22 '24 16:02 iliapolo