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

export interface DsServerArgs {
  serverId: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsServerArgs) {
    super(name, "aws_transfer_server", args);
  }

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