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)
  public namespace?: string | core.StringOut;
}

export interface InfoArgs extends core.SchemaArgs {
  eksInfo: EksInfo;
}

export class Info extends core.Schema<InfoArgs> {
  @core.attr(EksInfo)
  public eksInfo!: EksInfo;
}

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

  info: Info;

  type: string | core.StringOut;
}

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

  @core.attr(Info)
  public info!: Info;

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

export interface VirtualClusterArgs extends core.ResourceArgs {
  /**
   * (Required) Configuration block for the container provider associated with your cluster.
   */
  containerProvider: ContainerProvider;

  name: string | core.StringOut;

  /**
   * (Optional) Key-value mapping of resource tags. If configured with a provider [`default_tags` configu
   * ration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configu
   * ration-block) present, tags with matching keys will overwrite those defined at the provider-level.
   */
  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  /**
   * Map of tags assigned to the resource, including those inherited from the provider [`default_tags` co
   * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co
   * nfiguration-block).
   */
  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

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

  /**
   * (Required) Configuration block for the container provider associated with your cluster.
   */
  @core.attr(ContainerProvider)
  public containerProvider!: ContainerProvider;

  /**
   * The name of the container provider that is running your EMR Containers cluster
   */
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

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

  /**
   * (Optional) Key-value mapping of resource tags. If configured with a provider [`default_tags` configu
   * ration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configu
   * ration-block) present, tags with matching keys will overwrite those defined at the provider-level.
   */
  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  /**
   * Map of tags assigned to the resource, including those inherited from the provider [`default_tags` co
   * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co
   * nfiguration-block).
   */
  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

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