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

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

    Using getCodeRepository

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCodeRepository(args: GetCodeRepositoryArgs, opts?: InvokeOptions): Promise<GetCodeRepositoryResult>
    function getCodeRepositoryOutput(args: GetCodeRepositoryOutputArgs, opts?: InvokeOutputOptions): Output<GetCodeRepositoryResult>
    def get_code_repository(code_repository_arn: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetCodeRepositoryResult
    def get_code_repository_output(code_repository_arn: pulumi.Input[Optional[str]] = None,
                            opts: Optional[InvokeOutputOptions] = None) -> Output[GetCodeRepositoryResult]
    func LookupCodeRepository(ctx *Context, args *LookupCodeRepositoryArgs, opts ...InvokeOption) (*LookupCodeRepositoryResult, error)
    func LookupCodeRepositoryOutput(ctx *Context, args *LookupCodeRepositoryOutputArgs, opts ...InvokeOption) LookupCodeRepositoryResultOutput

    > Note: This function is named LookupCodeRepository in the Go SDK.

    public static class GetCodeRepository 
    {
        public static Task<GetCodeRepositoryResult> InvokeAsync(GetCodeRepositoryArgs args, InvokeOptions? opts = null)
        public static Output<GetCodeRepositoryResult> Invoke(GetCodeRepositoryInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetCodeRepositoryResult> Invoke(GetCodeRepositoryInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetCodeRepositoryResult> getCodeRepository(GetCodeRepositoryArgs args, InvokeOptions options)
    public static Output<GetCodeRepositoryResult> getCodeRepository(GetCodeRepositoryArgs args, InvokeOptions options)
    public static Output<GetCodeRepositoryResult> getCodeRepository(GetCodeRepositoryArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:sagemaker:getCodeRepository
      arguments:
        # arguments dictionary
    data "aws-native_sagemaker_get_code_repository" "name" {
        # arguments
    }

    The following arguments are supported:

    CodeRepositoryArn string
    The Amazon Resource Name (ARN) of the code repository.
    CodeRepositoryArn string
    The Amazon Resource Name (ARN) of the code repository.
    code_repository_arn string
    The Amazon Resource Name (ARN) of the code repository.
    codeRepositoryArn String
    The Amazon Resource Name (ARN) of the code repository.
    codeRepositoryArn string
    The Amazon Resource Name (ARN) of the code repository.
    code_repository_arn str
    The Amazon Resource Name (ARN) of the code repository.
    codeRepositoryArn String
    The Amazon Resource Name (ARN) of the code repository.

    getCodeRepository Result

    The following output properties are available:

    CodeRepositoryArn string
    The Amazon Resource Name (ARN) of the code repository.
    GitConfig Pulumi.AwsNative.SageMaker.Outputs.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.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    An array of key-value pairs.
    CodeRepositoryArn string
    The Amazon Resource Name (ARN) of the code repository.
    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.
    Tags Tag
    An array of key-value pairs.
    code_repository_arn string
    The Amazon Resource Name (ARN) of the code repository.
    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.
    tags list(object)
    An array of key-value pairs.
    codeRepositoryArn String
    The Amazon Resource Name (ARN) of the code repository.
    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.
    tags List<Tag>
    An array of key-value pairs.
    codeRepositoryArn string
    The Amazon Resource Name (ARN) of the code repository.
    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.
    tags Tag[]
    An array of key-value pairs.
    code_repository_arn str
    The Amazon Resource Name (ARN) of the code repository.
    git_config 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.
    tags Sequence[root_Tag]
    An array of key-value pairs.
    codeRepositoryArn String
    The Amazon Resource Name (ARN) of the code repository.
    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.
    tags List<Property Map>
    An array of key-value pairs.

    Supporting Types

    CodeRepositoryGitConfig

    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

    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