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

export interface DsApprovalRuleTemplateArgs {
  name: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsApprovalRuleTemplateArgs) {
    super(name, "aws_codecommit_approval_rule_template", args);
  }

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