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

export interface GlobalReplicationGroupArgs extends core.ResourceArgs {
  engineVersion?: string | core.StringOut;

  globalReplicationGroupDescription?: string | core.StringOut;

  globalReplicationGroupIdSuffix: string | core.StringOut;

  parameterGroupName?: string | core.StringOut;

  primaryReplicationGroupId: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: GlobalReplicationGroupArgs) {
    super(name, "aws_elasticache_global_replication_group", args);
  }

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