import * as core from "@terrascript/core"; export interface BucketPolicyArgs extends core.ResourceArgs { /** * (Required) Amazon Resource Name (ARN) of the bucket. */ bucket: string | core.StringOut; /** * (Required) JSON string of the resource policy. For more information about building AWS IAM policy do * cuments with Terraform, see the [AWS IAM Policy Document Guide](https://learn.hashicorp.com/terrafor * m/aws/iam-policy). */ policy: string | core.StringOut; } export class BucketPolicy extends core.Resource { /** * (Required) Amazon Resource Name (ARN) of the bucket. */ @core.attr(String) public bucket!: string | core.StringOut; /** * Amazon Resource Name (ARN) of the bucket. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) JSON string of the resource policy. For more information about building AWS IAM policy do * cuments with Terraform, see the [AWS IAM Policy Document Guide](https://learn.hashicorp.com/terrafor * m/aws/iam-policy). */ @core.attr(String) public policy!: string | core.StringOut; constructor(name: string, args?: BucketPolicyArgs) { super(name, "aws_s3control_bucket_policy", args); } public override getNamespace(): string { return "aws_s3control"; } }