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

export interface ClusterArgs extends core.ResourceArgs {
  allowMajorVersionUpgrade?: boolean | core.BooleanOut;

  applyImmediately?: boolean | core.BooleanOut;

  availabilityZones?: core.Array<string> | core.ArrayOut<core.StringOut>;

  backupRetentionPeriod?: number | core.NumberOut;

  clusterIdentifier?: string | core.StringOut;

  clusterIdentifierPrefix?: string | core.StringOut;

  copyTagsToSnapshot?: boolean | core.BooleanOut;

  deletionProtection?: boolean | core.BooleanOut;

  enableCloudwatchLogsExports?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  engine?: string | core.StringOut;

  engineVersion?: string | core.StringOut;

  finalSnapshotIdentifier?: string | core.StringOut;

  iamDatabaseAuthenticationEnabled?: boolean | core.BooleanOut;

  iamRoles?: core.Array<string> | core.ArrayOut<core.StringOut>;

  kmsKeyArn?: string | core.StringOut;

  neptuneClusterParameterGroupName?: string | core.StringOut;

  neptuneSubnetGroupName?: string | core.StringOut;

  port?: number | core.NumberOut;

  preferredBackupWindow?: string | core.StringOut;

  preferredMaintenanceWindow?: string | core.StringOut;

  replicationSourceIdentifier?: string | core.StringOut;

  skipFinalSnapshot?: boolean | core.BooleanOut;

  snapshotIdentifier?: string | core.StringOut;

  storageEncrypted?: boolean | core.BooleanOut;

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

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

  vpcSecurityGroupIds?: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class Cluster extends core.Resource<ClusterArgs> {
  @core.attr(Boolean, { computed: true })
  public allowMajorVersionUpgrade?: boolean | core.BooleanOut;

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

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

  @core.attr(String, { computed: true, kind: "array" })
  public availabilityZones?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

  @core.attr(String, { computed: true, kind: "array" })
  public clusterMembers!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

  @core.attr(String, { kind: "array" })
  public enableCloudwatchLogsExports?:
    | core.Array<string>
    | core.ArrayOut<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)
  public finalSnapshotIdentifier?: string | core.StringOut;

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

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

  @core.attr(String, { kind: "array" })
  public iamRoles?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

  @core.attr(String)
  public neptuneClusterParameterGroupName?: 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(String, { computed: true })
  public readerEndpoint!: string | core.StringOut;

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

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

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

  @core.attr(Boolean)
  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(String, { computed: true, kind: "array" })
  public vpcSecurityGroupIds?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  constructor(name: string, args?: ClusterArgs) {
    super(name, "aws_neptune_cluster", args);
  }

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