pulumi/tests/testdata/codegen/aws-s3-logging-pp/nodejs/aws-s3-logging.ts

9 lines
309 B
TypeScript

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const logs = new aws.s3.Bucket("logs", {});
const bucket = new aws.s3.Bucket("bucket", {loggings: [{
targetBucket: logs.bucket,
}]});
export const targetBucket = bucket.loggings.apply(loggings => loggings?.[0]?.targetBucket);