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

export interface StorageLocationArgs extends core.SchemaArgs {
  bucket: string | core.StringOut;

  key: string | core.StringOut;

  objectVersion?: string | core.StringOut;

  roleArn: string | core.StringOut;
}

export class StorageLocation extends core.Schema<StorageLocationArgs> {
  @core.attr(String)
  public bucket!: string | core.StringOut;

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

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

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

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

  operatingSystem: string | core.StringOut;

  storageLocation: StorageLocation;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  version?: string | core.StringOut;
}

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

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

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

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

  @core.attr(StorageLocation)
  public storageLocation!: StorageLocation;

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

  constructor(name: string, args?: BuildArgs) {
    super(name, "aws_gamelift_build", args);
  }

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