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

export interface StandardsControlArgs extends core.ResourceArgs {
  controlStatus: string | core.StringOut;

  disabledReason?: string | core.StringOut;

  /**
   * (Required) The standards control ARN.
   */
  standardsControlArn: string | core.StringOut;
}

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

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

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

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

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

  /**
   * The standard control ARN.
   */
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String, { computed: true, kind: "array" })
  public relatedRequirements!:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

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

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

  /**
   * (Required) The standards control ARN.
   */
  @core.attr(String)
  public standardsControlArn!: string | core.StringOut;

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

  constructor(name: string, args?: StandardsControlArgs) {
    super(name, "aws_securityhub_standards_control", args);
  }

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