1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. sagemaker
  6. CodeRepository

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.81.0
published on Monday, Sep 28, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.81.0
published on Monday, Sep 28, 2026 by Pulumi

    Resource Type definition for AWS::SageMaker::CodeRepository

    Create CodeRepository Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CodeRepository(name: string, args: CodeRepositoryArgs, opts?: CustomResourceOptions);
    @overload
    def CodeRepository(resource_name: str,
                       args: CodeRepositoryArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def CodeRepository(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       git_config: Optional[CodeRepositoryGitConfigArgs] = None,
                       code_repository_name: Optional[str] = None,
                       tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewCodeRepository(ctx *Context, name string, args CodeRepositoryArgs, opts ...ResourceOption) (*CodeRepository, error)
    public CodeRepository(string name, CodeRepositoryArgs args, CustomResourceOptions? opts = null)
    public CodeRepository(String name, CodeRepositoryArgs args)
    public CodeRepository(String name, CodeRepositoryArgs args, CustomResourceOptions options)
    
    type: aws-native:sagemaker:CodeRepository
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_sagemaker_code_repository" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args CodeRepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CodeRepositoryArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CodeRepositoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CodeRepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CodeRepositoryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CodeRepository Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CodeRepository resource accepts the following input properties:

    GitConfig Pulumi.AwsNative.SageMaker.Inputs.CodeRepositoryGitConfig
    Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.
    CodeRepositoryName string
    The name of the Git repository.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    An array of key-value pairs.
    GitConfig CodeRepositoryGitConfigArgs
    Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.
    CodeRepositoryName string
    The name of the Git repository.
    Tags TagArgs
    An array of key-value pairs.
    git_config object
    Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.
    code_repository_name string
    The name of the Git repository.
    tags list(object)
    An array of key-value pairs.
    gitConfig CodeRepositoryGitConfig
    Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.
    codeRepositoryName String
    The name of the Git repository.
    tags List<Tag>
    An array of key-value pairs.
    gitConfig CodeRepositoryGitConfig
    Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.
    codeRepositoryName string
    The name of the Git repository.
    tags Tag[]
    An array of key-value pairs.
    git_config CodeRepositoryGitConfigArgs
    Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.
    code_repository_name str
    The name of the Git repository.
    tags Sequence[TagArgs]
    An array of key-value pairs.
    gitConfig Property Map
    Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.
    codeRepositoryName String
    The name of the Git repository.
    tags List<Property Map>
    An array of key-value pairs.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CodeRepository resource produces the following output properties:

    CodeRepositoryArn string
    The Amazon Resource Name (ARN) of the code repository.
    Id string
    The provider-assigned unique ID for this managed resource.
    CodeRepositoryArn string
    The Amazon Resource Name (ARN) of the code repository.
    Id string
    The provider-assigned unique ID for this managed resource.
    code_repository_arn string
    The Amazon Resource Name (ARN) of the code repository.
    id string
    The provider-assigned unique ID for this managed resource.
    codeRepositoryArn String
    The Amazon Resource Name (ARN) of the code repository.
    id String
    The provider-assigned unique ID for this managed resource.
    codeRepositoryArn string
    The Amazon Resource Name (ARN) of the code repository.
    id string
    The provider-assigned unique ID for this managed resource.
    code_repository_arn str
    The Amazon Resource Name (ARN) of the code repository.
    id str
    The provider-assigned unique ID for this managed resource.
    codeRepositoryArn String
    The Amazon Resource Name (ARN) of the code repository.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    CodeRepositoryGitConfig, CodeRepositoryGitConfigArgs

    RepositoryUrl string
    The URL where the Git repository is located.
    Branch string
    The default branch for the Git repository.
    SecretArn string
    The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository.
    RepositoryUrl string
    The URL where the Git repository is located.
    Branch string
    The default branch for the Git repository.
    SecretArn string
    The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository.
    repository_url string
    The URL where the Git repository is located.
    branch string
    The default branch for the Git repository.
    secret_arn string
    The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository.
    repositoryUrl String
    The URL where the Git repository is located.
    branch String
    The default branch for the Git repository.
    secretArn String
    The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository.
    repositoryUrl string
    The URL where the Git repository is located.
    branch string
    The default branch for the Git repository.
    secretArn string
    The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository.
    repository_url str
    The URL where the Git repository is located.
    branch str
    The default branch for the Git repository.
    secret_arn str
    The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository.
    repositoryUrl String
    The URL where the Git repository is located.
    branch String
    The default branch for the Git repository.
    secretArn String
    The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository.

    Tag, TagArgs

    A set of tags to apply to the resource.
    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.81.0
    published on Monday, Sep 28, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial