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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsStateMachineArgs) {
    super(name, "aws_sfn_state_machine", args);
  }

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