CfnCodeRepositoryProps

class aws_cdk.aws_sagemaker.CfnCodeRepositoryProps(*, git_config, code_repository_name=None, tags=None)

Bases: object

Properties for defining a CfnCodeRepository.

Parameters:
  • git_config (Union[IResolvable, GitConfigProperty, Dict[str, Any]]) – 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.

  • code_repository_name (Optional[str]) – The name of the Git repository.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – List of tags for Code Repository.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-coderepository.html

ExampleMetadata:

fixture=_generated

Example:

# 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

cfn_code_repository_props = sagemaker.CfnCodeRepositoryProps(
    git_config=sagemaker.CfnCodeRepository.GitConfigProperty(
        repository_url="repositoryUrl",

        # the properties below are optional
        branch="branch",
        secret_arn="secretArn"
    ),

    # the properties below are optional
    code_repository_name="codeRepositoryName",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

code_repository_name

The name of the Git repository.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-coderepository.html#cfn-sagemaker-coderepository-coderepositoryname

git_config

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-coderepository.html#cfn-sagemaker-coderepository-gitconfig

tags

List of tags for Code Repository.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-coderepository.html#cfn-sagemaker-coderepository-tags