describe_code_repository

SageMaker.Client.describe_code_repository(**kwargs)

Gets details about the specified Git repository.

See also: AWS API Documentation

Request Syntax

response = client.describe_code_repository(
    CodeRepositoryName='string'
)
Parameters
CodeRepositoryName (string) --

[REQUIRED]

The name of the Git repository to describe.

Return type
dict
Returns
Response Syntax
{
    'CodeRepositoryName': 'string',
    'CodeRepositoryArn': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'LastModifiedTime': datetime(2015, 1, 1),
    'GitConfig': {
        'RepositoryUrl': 'string',
        'Branch': 'string',
        'SecretArn': 'string'
    }
}

Response Structure

  • (dict) --
    • CodeRepositoryName (string) --

      The name of the Git repository.

    • CodeRepositoryArn (string) --

      The Amazon Resource Name (ARN) of the Git repository.

    • CreationTime (datetime) --

      The date and time that the repository was created.

    • LastModifiedTime (datetime) --

      The date and time that the repository was last changed.

    • GitConfig (dict) --

      Configuration details about the repository, including the URL where the repository is located, the default branch, and the Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the credentials used to access the 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 Amazon Web Services Secrets Manager secret that contains the credentials used to access the git repository. The secret must have a staging label of AWSCURRENT and must be in the following format:

        {"username": UserName, "password": Password}