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

export interface MutualTlsAuthenticationArgs extends core.SchemaArgs {
  truststoreUri: string | core.StringOut;

  truststoreVersion?: string | core.StringOut;
}

export class MutualTlsAuthentication extends core.Schema<MutualTlsAuthenticationArgs> {
  @core.attr(String)
  public truststoreUri!: string | core.StringOut;

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

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

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

export interface DomainNameArgs extends core.ResourceArgs {
  certificateArn?: string | core.StringOut;

  certificateBody?: string | core.StringOut;

  certificateChain?: string | core.StringOut;

  certificateName?: string | core.StringOut;

  certificatePrivateKey?: string | core.StringOut;

  domainName: string | core.StringOut;

  endpointConfiguration?: EndpointConfiguration;

  mutualTlsAuthentication?: MutualTlsAuthentication;

  ownershipVerificationCertificateArn?: string | core.StringOut;

  regionalCertificateArn?: string | core.StringOut;

  regionalCertificateName?: string | core.StringOut;

  securityPolicy?: string | core.StringOut;

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

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

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

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

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

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

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

  @core.attr(String)
  public certificatePrivateKey?: 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 })
  public endpointConfiguration?: EndpointConfiguration;

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

  @core.attr(MutualTlsAuthentication)
  public mutualTlsAuthentication?: MutualTlsAuthentication;

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

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

  @core.attr(String)
  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>;

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

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

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