import * as core from "@terrascript/core"; export interface RuleArgs extends core.SchemaArgs { objectOwnership: string | core.StringOut; } export class Rule extends core.Schema { @core.attr(String) public objectOwnership!: string | core.StringOut; } export interface BucketOwnershipControlsArgs extends core.ResourceArgs { /** * (Required) The name of the bucket that you want to associate this access point with. */ bucket: string | core.StringOut; /** * (Required) Configuration block(s) with Ownership Controls rules. Detailed below. */ rule: Rule; } export class BucketOwnershipControls extends core.Resource { /** * (Required) The name of the bucket that you want to associate this access point with. */ @core.attr(String) public bucket!: string | core.StringOut; /** * S3 Bucket name. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Configuration block(s) with Ownership Controls rules. Detailed below. */ @core.attr(Rule) public rule!: Rule; constructor(name: string, args?: BucketOwnershipControlsArgs) { super(name, "aws_s3_bucket_ownership_controls", args); } public override getNamespace(): string { return "aws_s3"; } }