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

export interface S3DestinationArgs extends core.SchemaArgs {
  bucketName: string | core.StringOut;

  keyPrefix?: string | core.StringOut;

  kmsKeyArn: string | core.StringOut;
}

export class S3Destination extends core.Schema<S3DestinationArgs> {
  @core.attr(String)
  public bucketName!: string | core.StringOut;

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

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

export interface ClassificationExportConfigurationArgs
  extends core.ResourceArgs {
  s3Destination?: S3Destination;
}

export class ClassificationExportConfiguration extends core.Resource<ClassificationExportConfigurationArgs> {
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(S3Destination)
  public s3Destination?: S3Destination;

  constructor(name: string, args?: ClassificationExportConfigurationArgs) {
    super(name, "aws_macie2_classification_export_configuration", args);
  }

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