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

export interface ClusterInstanceArgs extends core.ResourceArgs {
  applyImmediately?: boolean | core.BooleanOut;

  autoMinorVersionUpgrade?: boolean | core.BooleanOut;

  availabilityZone?: string | core.StringOut;

  clusterIdentifier: string | core.StringOut;

  engine?: string | core.StringOut;

  engineVersion?: string | core.StringOut;

  identifier?: string | core.StringOut;

  identifierPrefix?: string | core.StringOut;

  instanceClass: string | core.StringOut;

  neptuneParameterGroupName?: string | core.StringOut;

  neptuneSubnetGroupName?: string | core.StringOut;

  port?: number | core.NumberOut;

  preferredBackupWindow?: string | core.StringOut;

  preferredMaintenanceWindow?: string | core.StringOut;

  promotionTier?: number | core.NumberOut;

  publiclyAccessible?: boolean | core.BooleanOut;

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

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

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

  @core.attr(Boolean, { computed: true })
  public applyImmediately?: boolean | core.BooleanOut;

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

  @core.attr(Boolean)
  public autoMinorVersionUpgrade?: boolean | core.BooleanOut;

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

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

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

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

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

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

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

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

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

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

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

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

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

  @core.attr(Number)
  public port?: number | core.NumberOut;

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

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

  @core.attr(Number)
  public promotionTier?: number | core.NumberOut;

  @core.attr(Boolean)
  public publiclyAccessible?: boolean | core.BooleanOut;

  @core.attr(Boolean, { computed: true })
  public storageEncrypted!: boolean | core.BooleanOut;

  @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(Boolean, { computed: true })
  public writer!: boolean | core.BooleanOut;

  constructor(name: string, args?: ClusterInstanceArgs) {
    super(name, "aws_neptune_cluster_instance", args);
  }

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