Skip to content
v2.278.0

CfnCodeRepositoryPropsMixin Mixin ​

Creates a Git repository as a resource in your SageMaker AI account.

You can associate the repository with notebook instances so that you can use Git source control for the notebooks you create. The Git repository is a resource in your SageMaker AI account, so it can be associated with more than one notebook instance, and it persists independently from the lifecycle of any notebook instances it is associated with.

The repository can be hosted either in AWS CodeCommit or in any other Git repository.

Initializer ​

ts
new CfnCodeRepositoryPropsMixin(props: CfnCodeRepositoryMixinProps, options?: CfnPropertyMixinOptions)
python
CfnCodeRepositoryPropsMixin(props: CfnCodeRepositoryMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
java
new CfnCodeRepositoryPropsMixin(CfnCodeRepositoryMixinProps props, CfnPropertyMixinOptions options)
csharp
new CfnCodeRepositoryPropsMixin(CfnCodeRepositoryMixinProps props, CfnPropertyMixinOptions? options = null)
go
NewCfnCodeRepositoryPropsMixin(Props CfnCodeRepositoryMixinProps, Options CfnPropertyMixinOptions)

Methods ​

applyTo(construct: IConstruct): voiddef apply_to(self, construct: IConstruct) -> Nonepublic void applyTo(IConstruct construct)public void ApplyTo(IConstruct construct)func ApplyTo(Construct IConstruct) #
Apply the mixin properties to the construct.
isMixin(x: any): boolean@staticmethod def is_mixin(x: Any) -> boolpublic static Boolean isMixin(Object x)public static bool IsMixin(object x)func IsMixin(X interface{}) *bool static #
Checks if `x` is a Mixin.
1 parameter · returns

Parameters

  • xxxxX — Any object.

Returns: true if x is an object created from a class which extends Mixin.

supports(construct: IConstruct): booleandef supports(self, construct: IConstruct) -> boolpublic Boolean supports(IConstruct construct)public bool Supports(IConstruct construct)func Supports(Construct IConstruct) *bool #
Check if this mixin supports the given construct.