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

export interface AddonArgs extends core.ResourceArgs {
  addonName: string | core.StringOut;

  addonVersion?: string | core.StringOut;

  clusterName: string | core.StringOut;

  preserve?: boolean | core.BooleanOut;

  resolveConflicts?: string | core.StringOut;

  serviceAccountRoleArn?: string | core.StringOut;

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

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

export class Addon extends core.Resource<AddonArgs> {
  @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(Boolean)
  public preserve?: boolean | core.BooleanOut;

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

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

  @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>;

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

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