import * as core from "@terrascript/core"; export interface DomainArgs extends core.ResourceArgs { /** * (Required) The name of the domain to create. All domain names in an AWS Region that are in the same * AWS account must be unique. The domain name is used as the prefix in DNS hostnames. Do not use sensi * tive information in a domain name because it is publicly discoverable. */ domain: string | core.StringOut; /** * (Optional) The encryption key for the domain. This is used to encrypt content stored in a domain. Th * e KMS Key Amazon Resource Name (ARN). The default aws/codeartifact AWS KMS master key is used if thi * s element is absent. */ encryptionKey?: 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; } export class Domain extends core.Resource { /** * The ARN of the Domain. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The total size of all assets in the domain. */ @core.attr(Number, { computed: true }) public assetSizeBytes!: number | core.NumberOut; /** * A timestamp that represents the date and time the domain was created in [RFC3339 format](https://too * ls.ietf.org/html/rfc3339#section-5.8). */ @core.attr(String, { computed: true }) public createdTime!: string | core.StringOut; /** * (Required) The name of the domain to create. All domain names in an AWS Region that are in the same * AWS account must be unique. The domain name is used as the prefix in DNS hostnames. Do not use sensi * tive information in a domain name because it is publicly discoverable. */ @core.attr(String) public domain!: string | core.StringOut; /** * (Optional) The encryption key for the domain. This is used to encrypt content stored in a domain. Th * e KMS Key Amazon Resource Name (ARN). The default aws/codeartifact AWS KMS master key is used if thi * s element is absent. */ @core.attr(String, { computed: true }) public encryptionKey?: string | core.StringOut; /** * The ARN of the Domain. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The AWS account ID that owns the domain. */ @core.attr(String, { computed: true }) public owner!: string | core.StringOut; /** * The number of repositories in the domain. */ @core.attr(Number, { computed: true }) public repositoryCount!: number | core.NumberOut; /** * (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; constructor(name: string, args?: DomainArgs) { super(name, "aws_codeartifact_domain", args); } public override getNamespace(): string { return "aws_codeartifact"; } }