awsdocs / aws-cdk-guide

User guide for the AWS Cloud Development Kit (CDK).
Other
335 stars 222 forks source link

Instantiating a construct page , sample error . #218

Closed neilkuan closed 4 years ago

neilkuan commented 4 years ago

In aws cdk docs "Translating TypeScript AWS CDK code to other languages" Page

Instantiating a construct python sample

# Instantiate Bucket with redirect_target, which has its own sub-properties
bucket = s3.Bucket(self, "MyBucket", redirect_target=s3.RedirectTarget(
            host_name="aws.amazon.com")) 

see https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_s3/Bucket.html

Bucket

classaws_cdk.aws_s3.Bucket(scope, id, *,bucket_name=None, ... , website_redirect=None, ...)

redirect_target in new cdk api docs , is website_redirect

Hope can modify sample code . Thanks you

ghost commented 4 years ago

@guan840912 Thanks for catching that. I've updated it for all the languages. You should see this change on docs.aws.amazon.com in the next 24 hours.