pulumi/tests/testdata/codegen/aws-s3-logging-pp/python/aws-s3-logging.py

9 lines
216 B
Python

import pulumi
import pulumi_aws as aws
logs = aws.s3.Bucket("logs")
bucket = aws.s3.Bucket("bucket", loggings=[{
"target_bucket": logs.bucket,
}])
pulumi.export("targetBucket", bucket.loggings[0].target_bucket)