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

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

  roleArn?: string | core.StringOut;

  schema?: string | core.StringOut;

  typeName: string | core.StringOut;

  typeVersionId?: string | core.StringOut;
}

export class Resource extends core.Resource<ResourceArgs> {
  @core.attr(String)
  public desiredState!: string | core.StringOut;

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

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

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

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

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

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

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

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