@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.857Z") @Stability(value=Stable) public class CfnCodeRepository extends CfnResource implements IInspectable
Creates a Git repository as a resource in your SageMaker 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 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.
Example:
// 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.*;
CfnCodeRepository cfnCodeRepository = CfnCodeRepository.Builder.create(this, "MyCfnCodeRepository")
.gitConfig(GitConfigProperty.builder()
.repositoryUrl("repositoryUrl")
// the properties below are optional
.branch("branch")
.secretArn("secretArn")
.build())
// the properties below are optional
.codeRepositoryName("codeRepositoryName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnCodeRepository.Builder
A fluent builder for
CfnCodeRepository. |
static interface |
CfnCodeRepository.GitConfigProperty
Specifies configuration details for a Git repository in your AWS account.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnCodeRepository(software.constructs.Construct scope,
String id,
CfnCodeRepositoryProps props)
Create a new `AWS::SageMaker::CodeRepository`.
|
protected |
CfnCodeRepository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnCodeRepository(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrCodeRepositoryName()
The name of the code repository, such as `myCodeRepo` .
|
protected Map<String,Object> |
getCfnProperties() |
String |
getCodeRepositoryName()
The name of the Git repository.
|
Object |
getGitConfig()
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.
|
TagManager |
getTags()
List of tags for Code Repository.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCodeRepositoryName(String value)
The name of the Git repository.
|
void |
setGitConfig(CfnCodeRepository.GitConfigProperty value)
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.
|
void |
setGitConfig(IResolvable value)
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.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnCodeRepository(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnCodeRepository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnCodeRepository(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnCodeRepositoryProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrCodeRepositoryName()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public Object getGitConfig()
@Stability(value=Stable)
public void setGitConfig(@NotNull
CfnCodeRepository.GitConfigProperty value)
@Stability(value=Stable)
public void setGitConfig(@NotNull
IResolvable value)
@Stability(value=Stable) @Nullable public String getCodeRepositoryName()
@Stability(value=Stable)
public void setCodeRepositoryName(@Nullable
String value)
Copyright © 2022. All rights reserved.