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]) – 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[CfnTag]]) – List of tags for Code Repository.

Link

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.
import aws_cdk.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.

Link

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

Return type

Optional[str]

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.

Link

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

Return type

Union[IResolvable, GitConfigProperty]

tags

List of tags for Code Repository.

Link

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

Return type

Optional[List[CfnTag]]