Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以创建一个带有“bucket_name”参数的 aws cdk s3.CfnBucket,它看起来不错。“s3.Bucket” cdn 构造是否具有 bucketName 属性?它被记录为 cdk.PhysicalName 属性,但是,我不知道如何构造一个新的 PhysicalName。
答案取决于您使用的 CDK 版本。恕我直言,0.35.0 版更改为使用 PhysicalName。
const srcBucket = new Bucket(this, "ImageResizeSourceBucket", { bucketName: PhysicalName.of("de.freitag.stefan.imageresize") });