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

export interface ClusterEndpointsArgs extends core.SchemaArgs {
  endpoint: string | core.StringOut;

  region: string | core.StringOut;
}

export class ClusterEndpoints extends core.Schema<ClusterEndpointsArgs> {
  @core.attr(String, { computed: true })
  public endpoint!: string | core.StringOut;

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

export interface ClusterArgs extends core.ResourceArgs {
  name: string | core.StringOut;
}

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

  @core.attr(ClusterEndpoints, { computed: true, kind: "array" })
  public clusterEndpoints!:
    | core.Array<ClusterEndpoints>
    | core.ArrayOut<ClusterEndpoints>;

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

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

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

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

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