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

export interface DsDocumentArgs {
  documentFormat?: string | core.StringOut;

  documentVersion?: string | core.StringOut;

  name: string | core.StringOut;
}

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

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

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

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

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

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

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

  constructor(name: string, args?: DsDocumentArgs) {
    super(name, "aws_ssm_document", args);
  }

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