import * as core from "@terrascript/core"; export interface GitConfigArgs extends core.SchemaArgs { branch?: string | core.StringOut; repositoryUrl: string | core.StringOut; secretArn?: string | core.StringOut; } export class GitConfig extends core.Schema { @core.attr(String) public branch?: string | core.StringOut; @core.attr(String) public repositoryUrl!: string | core.StringOut; @core.attr(String) public secretArn?: string | core.StringOut; } export interface CodeRepositoryArgs extends core.ResourceArgs { /** * (Required) The name of the Code Repository (must be unique). */ codeRepositoryName: string | core.StringOut; /** * (Required) Specifies details about the repository. see [Git Config](#git-config) details below. */ gitConfig: GitConfig; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ 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 CodeRepository extends core.Resource { /** * The Amazon Resource Name (ARN) assigned by AWS to this Code Repository. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) The name of the Code Repository (must be unique). */ @core.attr(String) public codeRepositoryName!: string | core.StringOut; /** * (Required) Specifies details about the repository. see [Git Config](#git-config) details below. */ @core.attr(GitConfig) public gitConfig!: GitConfig; /** * The name of the Code Repository. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @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?: CodeRepositoryArgs) { super(name, "aws_sagemaker_code_repository", args); } public override getNamespace(): string { return "aws_sagemaker"; } }