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

export interface DsAddonArgs {
  addonName: string | core.StringOut;

  clusterName: string | core.StringOut;

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

export class DsAddon extends core.Data<DsAddonArgs> {
  @core.attr(String)
  public addonName!: string | core.StringOut;

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsAddonArgs) {
    super(name, "aws_eks_addon", args);
  }

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