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

export interface DsResourceArgs {
  identifier: string | core.StringOut;

  roleArn?: string | core.StringOut;

  typeName: string | core.StringOut;

  typeVersionId?: string | core.StringOut;
}

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

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

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

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

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

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

  constructor(name: string, args?: DsResourceArgs) {
    super(name, "aws_cloudcontrolapi_resource", args);
  }

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