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

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

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

  backupRetentionPeriod?: number | core.NumberOut;

  clusterIdentifier?: string | core.StringOut;

  clusterIdentifierPrefix?: string | core.StringOut;

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

  dbClusterParameterGroupName?: string | core.StringOut;

  dbSubnetGroupName?: string | core.StringOut;

  deletionProtection?: boolean | core.BooleanOut;

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

  engine?: string | core.StringOut;

  engineVersion?: string | core.StringOut;

  finalSnapshotIdentifier?: string | core.StringOut;

  globalClusterIdentifier?: string | core.StringOut;

  kmsKeyId?: string | core.StringOut;

  masterPassword?: string | core.StringOut;

  masterUsername?: string | core.StringOut;

  port?: number | core.NumberOut;

  preferredBackupWindow?: string | core.StringOut;

  preferredMaintenanceWindow?: 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 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(String, { computed: true })
  public dbClusterParameterGroupName?: string | core.StringOut;

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

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

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

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

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

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

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

  @core.attr(String, { computed: true })
  public masterUsername?: 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(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_docdb_cluster", args);
  }

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