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'
}
)
[REQUIRED]
The name of the Git repository to update.
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}
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}
dict
Response Syntax
{
'CodeRepositoryArn': 'string'
}
Response Structure
(dict) --
CodeRepositoryArn (string) --
The ARN of the Git repository.