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"))
In aws cdk docs "Translating TypeScript AWS CDK code to other languages" Page
Instantiating a construct
python sample
see https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_s3/Bucket.html
Bucket
redirect_target
in new cdk api docs , iswebsite_redirect
Hope can modify sample code . Thanks you