CodeCatalyst / Client / create_source_repository
create_source_repository#
- CodeCatalyst.Client.create_source_repository(**kwargs)#
Creates an empty Git-based source repository in a specified project. The repository is created with an initial empty commit with a default branch named
main
.See also: AWS API Documentation
Request Syntax
response = client.create_source_repository( spaceName='string', projectName='string', name='string', description='string' )
- Parameters:
spaceName (string) –
[REQUIRED]
The name of the space.
projectName (string) –
[REQUIRED]
The name of the project in the space.
name (string) –
[REQUIRED]
The name of the source repository. For more information about name requirements, see Quotas for source repositories.
description (string) – The description of the source repository.
- Return type:
dict
- Returns:
Response Syntax
{ 'spaceName': 'string', 'projectName': 'string', 'name': 'string', 'description': 'string' }
Response Structure
(dict) –
spaceName (string) –
The name of the space.
projectName (string) –
The name of the project in the space.
name (string) –
The name of the source repository.
description (string) –
The description of the source repository.
Exceptions
CodeCatalyst.Client.exceptions.ThrottlingException
CodeCatalyst.Client.exceptions.ConflictException
CodeCatalyst.Client.exceptions.ValidationException
CodeCatalyst.Client.exceptions.ServiceQuotaExceededException
CodeCatalyst.Client.exceptions.ResourceNotFoundException
CodeCatalyst.Client.exceptions.AccessDeniedException