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

export interface DsRepositoryEndpointArgs {
  domain: string | core.StringOut;

  domainOwner?: string | core.StringOut;

  format: string | core.StringOut;

  repository: string | core.StringOut;
}

export class DsRepositoryEndpoint extends core.Data<DsRepositoryEndpointArgs> {
  @core.attr(String)
  public domain!: string | core.StringOut;

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

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

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

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

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

  constructor(name: string, args?: DsRepositoryEndpointArgs) {
    super(name, "aws_codeartifact_repository_endpoint", args);
  }

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