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

export interface EksInfoArgs extends core.SchemaArgs {
  namespace: string | core.StringOut;
}

export class EksInfo extends core.Schema<EksInfoArgs> {
  @core.attr(String, { computed: true })
  public namespace!: string | core.StringOut;
}

export interface InfoArgs extends core.SchemaArgs {
  eksInfo: core.Array<EksInfo> | core.ArrayOut<EksInfo>;
}

export class Info extends core.Schema<InfoArgs> {
  @core.attr(EksInfo, { computed: true, kind: "array" })
  public eksInfo!: core.Array<EksInfo> | core.ArrayOut<EksInfo>;
}

export interface ContainerProviderArgs extends core.SchemaArgs {
  id: string | core.StringOut;

  info: core.Array<Info> | core.ArrayOut<Info>;

  type: string | core.StringOut;
}

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

  @core.attr(Info, { computed: true, kind: "array" })
  public info!: core.Array<Info> | core.ArrayOut<Info>;

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

export interface DsVirtualClusterArgs {
  /**
   * Key-value mapping of resource tags.
   */
  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  /**
   * (Required) The ID of the cluster.
   */
  virtualClusterId: string | core.StringOut;
}

export class DsVirtualCluster extends core.Data<DsVirtualClusterArgs> {
  /**
   * The Amazon Resource Name (ARN) of the cluster.
   */
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

  /**
   * Nested attribute containing information about the underlying container provider (EKS cluster) for yo
   * ur EMR Containers cluster.
   */
  @core.attr(ContainerProvider, { computed: true, kind: "array" })
  public containerProvider!:
    | core.Array<ContainerProvider>
    | core.ArrayOut<ContainerProvider>;

  /**
   * The Unix epoch time stamp in seconds for when the cluster was created.
   */
  @core.attr(String, { computed: true })
  public createdAt!: string | core.StringOut;

  /**
   * The ID of the cluster.
   */
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  /**
   * The name of the cluster.
   */
  @core.attr(String, { computed: true })
  public name!: string | core.StringOut;

  /**
   * The status of the EKS cluster. One of `RUNNING`, `TERMINATING`, `TERMINATED`, `ARRESTED`.
   */
  @core.attr(String, { computed: true })
  public state!: string | core.StringOut;

  /**
   * Key-value mapping of resource tags.
   */
  @core.attr(String, { computed: true, kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  /**
   * (Required) The ID of the cluster.
   */
  @core.attr(String)
  public virtualClusterId!: string | core.StringOut;

  constructor(name: string, args?: DsVirtualClusterArgs) {
    super(name, "aws_emrcontainers_virtual_cluster", args);
  }

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