Skip to content
v2.277.0

GitConfigProperty Struct ​

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

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const gitConfigProperty: sagemaker.CfnCodeRepository.GitConfigProperty = {
  repositoryUrl: 'repositoryUrl',

  // the properties below are optional
  branch: 'branch',
  secretArn: 'secretArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

git_config_property = sagemaker.CfnCodeRepository.GitConfigProperty(
    repository_url="repositoryUrl",

    # the properties below are optional
    branch="branch",
    secret_arn="secretArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;

GitConfigProperty gitConfigProperty = GitConfigProperty.builder()
        .repositoryUrl("repositoryUrl")

        // the properties below are optional
        .branch("branch")
        .secretArn("secretArn")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var gitConfigProperty = new GitConfigProperty {
    RepositoryUrl = "repositoryUrl",

    // the properties below are optional
    Branch = "branch",
    SecretArn = "secretArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

gitConfigProperty := &GitConfigProperty{
	RepositoryUrl: jsii.String("repositoryUrl"),

	// the properties below are optional
	Branch: jsii.String("branch"),
	SecretArn: jsii.String("secretArn"),
}

Properties ​

branchoptionalstringbranchoptionalstrbranchoptionalStringBranchoptionalstringBranchoptional*string #
The default branch for the Git repository.
repositoryUrlstringrepository_urlstrrepositoryUrlStringRepositoryUrlstringRepositoryUrl*string required #
The URL where the Git repository is located.
secretArnoptionalstringsecret_arnoptionalstrsecretArnoptionalStringSecretArnoptionalstringSecretArnoptional*string #
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* }