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

export interface EndpointConfigurationArgs extends core.SchemaArgs {
  types: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class EndpointConfiguration extends core.Schema<EndpointConfigurationArgs> {
  @core.attr(String, { computed: true, kind: "array" })
  public types!: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export interface DsDomainNameArgs {
  domainName: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  constructor(name: string, args?: DsDomainNameArgs) {
    super(name, "aws_api_gateway_domain_name", args);
  }

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