import * as core from "@terrascript/core"; export interface ExternalConnectionsArgs extends core.SchemaArgs { externalConnectionName: string | core.StringOut; packageFormat: string | core.StringOut; status: string | core.StringOut; } export class ExternalConnections extends core.Schema { @core.attr(String) public externalConnectionName!: string | core.StringOut; @core.attr(String, { computed: true }) public packageFormat!: string | core.StringOut; @core.attr(String, { computed: true }) public status!: string | core.StringOut; } export interface UpstreamArgs extends core.SchemaArgs { repositoryName: string | core.StringOut; } export class Upstream extends core.Schema { @core.attr(String) public repositoryName!: string | core.StringOut; } export interface RepositoryArgs extends core.ResourceArgs { /** * (Optional) The description of the repository. */ description?: string | core.StringOut; /** * (Required) The domain that contains the created repository. */ domain: string | core.StringOut; /** * (Optional) The account number of the AWS account that owns the domain. */ domainOwner?: string | core.StringOut; /** * An array of external connections associated with the repository. Only one external connection can be * set per repository. see [External Connections](#external-connections). */ externalConnections?: ExternalConnections; /** * (Required) The name of the repository to create. */ repository: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; /** * (Optional) A list of upstream repositories to associate with the repository. The order of the upstre * am repositories in the list determines their priority order when AWS CodeArtifact looks for a reques * ted package version. see [Upstream](#upstream) */ upstream?: core.Array | core.ArrayOut; } export class Repository extends core.Resource { /** * The account number of the AWS account that manages the repository. */ @core.attr(String, { computed: true }) public administratorAccount!: string | core.StringOut; /** * The ARN of the repository. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The description of the repository. */ @core.attr(String) public description?: string | core.StringOut; /** * (Required) The domain that contains the created repository. */ @core.attr(String) public domain!: string | core.StringOut; /** * (Optional) The account number of the AWS account that owns the domain. */ @core.attr(String, { computed: true }) public domainOwner?: string | core.StringOut; /** * An array of external connections associated with the repository. Only one external connection can be * set per repository. see [External Connections](#external-connections). */ @core.attr(ExternalConnections) public externalConnections?: ExternalConnections; /** * The ARN of the repository. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the repository to create. */ @core.attr(String) public repository!: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * (Optional) A list of upstream repositories to associate with the repository. The order of the upstre * am repositories in the list determines their priority order when AWS CodeArtifact looks for a reques * ted package version. see [Upstream](#upstream) */ @core.attr(Upstream, { kind: "array" }) public upstream?: core.Array | core.ArrayOut; constructor(name: string, args?: RepositoryArgs) { super(name, "aws_codeartifact_repository", args); } public override getNamespace(): string { return "aws_codeartifact"; } }