import * as core from "@terrascript/core"; export interface RepositoryArgs extends core.ResourceArgs { /** * (Optional) The default branch of the repository. The branch specified here needs to exist. */ defaultBranch?: string | core.StringOut; /** * (Optional) The description of the repository. This needs to be less than 1000 characters */ description?: string | core.StringOut; /** * (Required) The name for the repository. This needs to be less than 100 characters. */ repositoryName: 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 Repository extends core.Resource { /** * The ARN of the repository */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The URL to use for cloning the repository over HTTPS. */ @core.attr(String, { computed: true }) public cloneUrlHttp!: string | core.StringOut; /** * The URL to use for cloning the repository over SSH. */ @core.attr(String, { computed: true }) public cloneUrlSsh!: string | core.StringOut; /** * (Optional) The default branch of the repository. The branch specified here needs to exist. */ @core.attr(String) public defaultBranch?: string | core.StringOut; /** * (Optional) The description of the repository. This needs to be less than 1000 characters */ @core.attr(String) public description?: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The ID of the repository */ @core.attr(String, { computed: true }) public repositoryId!: string | core.StringOut; /** * (Required) The name for the repository. This needs to be less than 100 characters. */ @core.attr(String) public repositoryName!: 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; constructor(name: string, args?: RepositoryArgs) { super(name, "aws_codecommit_repository", args); } public override getNamespace(): string { return "aws_codecommit"; } }