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

export interface DsServiceArgs {
  dnsName?: string | core.StringOut;

  region?: string | core.StringOut;

  reverseDnsName?: string | core.StringOut;

  reverseDnsPrefix?: string | core.StringOut;

  serviceId?: string | core.StringOut;
}

export class DsService extends core.Data<DsServiceArgs> {
  @core.attr(String, { computed: true })
  public dnsName?: string | core.StringOut;

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

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

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

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

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

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

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

  constructor(name: string, args?: DsServiceArgs) {
    super(name, "aws_service", args);
  }

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