import * as core from "@terrascript/core";

export interface BucketRequestPaymentConfigurationArgs
  extends core.ResourceArgs {
  bucket: string | core.StringOut;

  expectedBucketOwner?: string | core.StringOut;

  payer: string | core.StringOut;
}

export class BucketRequestPaymentConfiguration extends core.Resource<BucketRequestPaymentConfigurationArgs> {
  @core.attr(String)
  public bucket!: string | core.StringOut;

  @core.attr(String)
  public expectedBucketOwner?: string | core.StringOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String)
  public payer!: string | core.StringOut;

  constructor(name: string, args?: BucketRequestPaymentConfigurationArgs) {
    super(name, "aws_s3_bucket_request_payment_configuration", args);
  }

  public override getNamespace(): string {
    return "aws_s3";
  }
}
