aws-cdk-lib.aws_sagemaker.CfnCodeRepositoryProps

interface CfnCodeRepositoryProps

LanguageType name
.NETAmazon.CDK.AWS.Sagemaker.CfnCodeRepositoryProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssagemaker#CfnCodeRepositoryProps
Javasoftware.amazon.awscdk.services.sagemaker.CfnCodeRepositoryProps
Pythonaws_cdk.aws_sagemaker.CfnCodeRepositoryProps
TypeScript aws-cdk-lib » aws_sagemaker » CfnCodeRepositoryProps

Properties for defining a CfnCodeRepository.

Example

// 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 cfnCodeRepositoryProps: sagemaker.CfnCodeRepositoryProps = {
  gitConfig: {
    repositoryUrl: 'repositoryUrl',

    // the properties below are optional
    branch: 'branch',
    secretArn: 'secretArn',
  },

  // the properties below are optional
  codeRepositoryName: 'codeRepositoryName',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
gitConfigIResolvable | GitConfigPropertyConfiguration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.
codeRepositoryName?stringThe name of the Git repository.
tags?CfnTag[]List of tags for Code Repository.

gitConfig

Type: IResolvable | GitConfigProperty

Configuration details for the Git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.


codeRepositoryName?

Type: string (optional)

The name of the Git repository.


tags?

Type: CfnTag[] (optional)

List of tags for Code Repository.