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

export interface UploadArgs extends core.ResourceArgs {
  contentType?: string | core.StringOut;

  name: string | core.StringOut;

  projectArn: string | core.StringOut;

  type: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: UploadArgs) {
    super(name, "aws_devicefarm_upload", args);
  }

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