AWS::SageMaker::CodeRepository GitConfig - AWS CloudFormation
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::SageMaker::CodeRepository GitConfig

Specifies configuration details for a Git repository in your AWS account.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "Branch" : String, "RepositoryUrl" : String, "SecretArn" : String }

YAML

Branch: String RepositoryUrl: String SecretArn: String

Properties

Branch

The default branch for the Git repository.

Required: No

Type: String

Pattern: [^ ~^:?*\[]+

Minimum: 1

Maximum: 1024

Update requires: Replacement

RepositoryUrl

The URL where the Git repository is located.

Required: Yes

Type: String

Pattern: https://([^/]+)/?.{3,1016}

Minimum: 11

Maximum: 1024

Update requires: Replacement

SecretArn

The Amazon Resource Name (ARN) of the AWS 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}

Required: No

Type: String

Pattern: arn:aws[a-z\-]*:secretsmanager:[a-z0-9\-]*:[0-9]{12}:secret:.*

Minimum: 1

Maximum: 2048

Update requires: No interruption