Skip to content

/AWS1/CL_SGM=>CREATECODEREPOSITORY()

About CreateCodeRepository

Creates a Git repository as a resource in your SageMaker account. You can associate the repository with notebook instances so that you can use Git source control for the notebooks you create. The Git repository is a resource in your SageMaker account, so it can be associated with more than one notebook instance, and it persists independently from the lifecycle of any notebook instances it is associated with.

The repository can be hosted either in Amazon Web Services CodeCommit or in any other Git repository.

Method Signature

IMPORTING

Required arguments:

IV_CODEREPOSITORYNAME TYPE /AWS1/SGMENTITYNAME /AWS1/SGMENTITYNAME

The name of the Git repository. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).

IO_GITCONFIG TYPE REF TO /AWS1/CL_SGMGITCONFIG /AWS1/CL_SGMGITCONFIG

Specifies details about the repository, including the URL where the repository is located, the default branch, and credentials to use to access the repository.

Optional arguments:

IT_TAGS TYPE /AWS1/CL_SGMTAG=>TT_TAGLIST TT_TAGLIST

An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_SGMCRECODEREPOSITOR01 /AWS1/CL_SGMCRECODEREPOSITOR01