Code Repositories
APIs related to Code Repositories.
📄️ List code repositories accessible to the user
Returns a paginated list of SageMaker-linked code repositories the caller can access. SecretArn is stripped; Credentials is the parameter key or 'N/A'. AccessType is owner, editor, or read-only.
📄️ Create a SageMaker-linked code repository
Creates a code repository (GitHub, GitLab, Bitbucket, or CodeCommit), optionally stores git credentials as a SecureString parameter, creates the SageMaker repository, and grants the caller owner access. CodeCommit can be created via CodeCommitRepositoryName or linked via RepositoryUrl. External code-commit + Credentials is rejected.
📄️ Get code repository details
Returns one repository the caller can access (read-only or higher). Credentials is the parameter key or 'N/A'. SecretArn is not returned. CodeCommit repositories created in Amorphic also include CodeCommitRepositoryName.
📄️ Update code repository description, keywords, or credentials
Updates Description and Keywords (editor+). Omit Credentials while the repository has an AccessKeyStore to remove credentials (set to 'N/A'). Provide Credentials.CredentialsName to attach an existing parameter or create new credentials with Username and Password.
📄️ Delete a code repository
Deletes the SageMaker repository, metadata, and ACL. Owner access is required. Blocked when datalabs still attach the repository as default or additional. For CodeCommit created in Amorphic, the AWS repo is deleted unless should_retain_repository is truthy.