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

export interface DsDetectorArgs {
  id?: string | core.StringOut;
}

export class DsDetector extends core.Data<DsDetectorArgs> {
  @core.attr(String, { computed: true })
  public findingPublishingFrequency!: string | core.StringOut;

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

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

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

  constructor(name: string, args?: DsDetectorArgs) {
    super(name, "aws_guardduty_detector", args);
  }

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