SageMaker / Client / update_code_repository

update_code_repository#

SageMaker.Client.update_code_repository(**kwargs)#

Updates the specified Git repository with the specified values.

See also: AWS API Documentation

Request Syntax

response = client.update_code_repository(
    CodeRepositoryName='string',
    GitConfig={
        'SecretArn': 'string'
    }
)
Parameters:
  • CodeRepositoryName (string) –

    [REQUIRED]

    The name of the Git repository to update.

  • GitConfig (dict) –

    The configuration of the git repository, including the URL and the Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the credentials used to access the repository. The secret must have a staging label of AWSCURRENT and must be in the following format:

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

    • 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}

Return type:

dict

Returns:

Response Syntax

{
    'CodeRepositoryArn': 'string'
}

Response Structure

  • (dict) –

    • CodeRepositoryArn (string) –

      The ARN of the Git repository.

Exceptions