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

export interface ClassificationTypeArgs extends core.SchemaArgs {
  continuous?: string | core.StringOut;

  oneTime?: string | core.StringOut;
}

export class ClassificationType extends core.Schema<ClassificationTypeArgs> {
  @core.attr(String)
  public continuous?: string | core.StringOut;

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

export interface S3BucketAssociationArgs extends core.ResourceArgs {
  bucketName: string | core.StringOut;

  classificationType?: ClassificationType;

  memberAccountId?: string | core.StringOut;

  prefix?: string | core.StringOut;
}

export class S3BucketAssociation extends core.Resource<S3BucketAssociationArgs> {
  @core.attr(String)
  public bucketName!: string | core.StringOut;

  @core.attr(ClassificationType, { computed: true })
  public classificationType?: ClassificationType;

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

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

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

  constructor(name: string, args?: S3BucketAssociationArgs) {
    super(name, "aws_macie_s3_bucket_association", args);
  }

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