Class CfnSpace
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.sagemaker.CfnSpace
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggable,ISpaceRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:49.957Z")
@Stability(Stable)
public class CfnSpace
extends CfnResource
implements IInspectable, ISpaceRef, ITaggable
Creates a private space or a space used for real time collaboration in a domain.
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.*;
CfnSpace cfnSpace = CfnSpace.Builder.create(this, "MyCfnSpace")
.domainId("domainId")
.spaceName("spaceName")
// the properties below are optional
.ownershipSettings(OwnershipSettingsProperty.builder()
.ownerUserProfileName("ownerUserProfileName")
.build())
.spaceDisplayName("spaceDisplayName")
.spaceSettings(SpaceSettingsProperty.builder()
.appType("appType")
.codeEditorAppSettings(SpaceCodeEditorAppSettingsProperty.builder()
.appLifecycleManagement(SpaceAppLifecycleManagementProperty.builder()
.idleSettings(SpaceIdleSettingsProperty.builder()
.idleTimeoutInMinutes(123)
.build())
.build())
.defaultResourceSpec(ResourceSpecProperty.builder()
.instanceType("instanceType")
.lifecycleConfigArn("lifecycleConfigArn")
.sageMakerImageArn("sageMakerImageArn")
.sageMakerImageVersionArn("sageMakerImageVersionArn")
.build())
.build())
.customFileSystems(List.of(CustomFileSystemProperty.builder()
.efsFileSystem(EFSFileSystemProperty.builder()
.fileSystemId("fileSystemId")
.build())
.fSxLustreFileSystem(FSxLustreFileSystemProperty.builder()
.fileSystemId("fileSystemId")
.build())
.s3FileSystem(S3FileSystemProperty.builder()
.s3Uri("s3Uri")
.build())
.build()))
.jupyterLabAppSettings(SpaceJupyterLabAppSettingsProperty.builder()
.appLifecycleManagement(SpaceAppLifecycleManagementProperty.builder()
.idleSettings(SpaceIdleSettingsProperty.builder()
.idleTimeoutInMinutes(123)
.build())
.build())
.codeRepositories(List.of(CodeRepositoryProperty.builder()
.repositoryUrl("repositoryUrl")
.build()))
.defaultResourceSpec(ResourceSpecProperty.builder()
.instanceType("instanceType")
.lifecycleConfigArn("lifecycleConfigArn")
.sageMakerImageArn("sageMakerImageArn")
.sageMakerImageVersionArn("sageMakerImageVersionArn")
.build())
.build())
.jupyterServerAppSettings(JupyterServerAppSettingsProperty.builder()
.defaultResourceSpec(ResourceSpecProperty.builder()
.instanceType("instanceType")
.lifecycleConfigArn("lifecycleConfigArn")
.sageMakerImageArn("sageMakerImageArn")
.sageMakerImageVersionArn("sageMakerImageVersionArn")
.build())
.lifecycleConfigArns(List.of("lifecycleConfigArns"))
.build())
.kernelGatewayAppSettings(KernelGatewayAppSettingsProperty.builder()
.customImages(List.of(CustomImageProperty.builder()
.appImageConfigName("appImageConfigName")
.imageName("imageName")
// the properties below are optional
.imageVersionNumber(123)
.build()))
.defaultResourceSpec(ResourceSpecProperty.builder()
.instanceType("instanceType")
.lifecycleConfigArn("lifecycleConfigArn")
.sageMakerImageArn("sageMakerImageArn")
.sageMakerImageVersionArn("sageMakerImageVersionArn")
.build())
.lifecycleConfigArns(List.of("lifecycleConfigArns"))
.build())
.remoteAccess("remoteAccess")
.spaceManagedResources("spaceManagedResources")
.spaceStorageSettings(SpaceStorageSettingsProperty.builder()
.ebsStorageSettings(EbsStorageSettingsProperty.builder()
.ebsVolumeSizeInGb(123)
.build())
.build())
.build())
.spaceSharingSettings(SpaceSharingSettingsProperty.builder()
.sharingType("sharingType")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnSpace.static interfaceA Git repository that SageMaker AI automatically displays to users for cloning in the JupyterServer application.static interfaceA file system, created by you, that you assign to a user profile or space for an Amazon SageMaker AI Domain.static interfaceA custom SageMaker AI image.static interfaceA collection of EBS storage settings that apply to both private and shared spaces.static interfaceA file system, created by you in Amazon EFS, that you assign to a user profile or space for an Amazon SageMaker AI Domain.static interfaceA custom file system in Amazon FSx for Lustre.static interfaceThe JupyterServer app settings.static interfaceThe KernelGateway app settings.static interfaceThe collection of ownership settings for a space.static interfaceSpecifies the ARN's of a SageMaker AI image and SageMaker AI image version, and the instance type that the version runs on.static interfaceA custom file system in Amazon S3.static interfaceSettings that are used to configure and manage the lifecycle of Amazon SageMaker Studio applications in a space.static interfaceThe application settings for a Code Editor space.static interfaceSettings related to idle shutdown of Studio applications in a space.static interfaceThe settings for the JupyterLab application within a space.static interfaceA collection of space settings.static interfaceA collection of space sharing settings.static interfaceThe storage settings for a space.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.sagemaker.ISpaceRef
ISpaceRef.Jsii$Default, ISpaceRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnSpace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSpace(software.amazon.jsii.JsiiObjectRef objRef) CfnSpace(software.constructs.Construct scope, String id, CfnSpaceProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe space's Amazon Resource Name (ARN).Returns the URL of the space.The ID of the associated domain.The collection of ownership settings for a space.The name of the space that appears in the Studio UI.The name of the space.A reference to a Space resource.A collection of space settings.A collection of space sharing settings.getTags()Tag Manager which manages the tags for this resource.An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDomainId(String value) The ID of the associated domain.voidsetOwnershipSettings(IResolvable value) The collection of ownership settings for a space.voidThe collection of ownership settings for a space.voidsetSpaceDisplayName(String value) The name of the space that appears in the Studio UI.voidsetSpaceName(String value) The name of the space.voidsetSpaceSettings(IResolvable value) A collection of space settings.voidA collection of space settings.voidA collection of space sharing settings.voidA collection of space sharing settings.voidsetTagsRaw(List<CfnTag> value) An array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnSpace
protected CfnSpace(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSpace
protected CfnSpace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSpace
@Stability(Stable) public CfnSpace(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSpaceProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrSpaceArn
The space's Amazon Resource Name (ARN). -
getAttrUrl
Returns the URL of the space.If the space is created with AWS IAM Identity Center (Successor to AWS Single Sign-On) authentication, users can navigate to the URL after appending the respective redirect parameter for the application type to be federated through AWS IAM Identity Center.
The following application types are supported:
- Studio Classic:
&redirect=JupyterServer - JupyterLab:
&redirect=JupyterLab - Code Editor, based on Code-OSS, Visual Studio Code - Open Source:
&redirect=CodeEditor
- Studio Classic:
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getSpaceRef
A reference to a Space resource.- Specified by:
getSpaceRefin interfaceISpaceRef
-
getTags
Tag Manager which manages the tags for this resource. -
getDomainId
The ID of the associated domain. -
setDomainId
The ID of the associated domain. -
getSpaceName
The name of the space. -
setSpaceName
The name of the space. -
getOwnershipSettings
The collection of ownership settings for a space.Returns union: either
IResolvableorCfnSpace.OwnershipSettingsProperty -
setOwnershipSettings
The collection of ownership settings for a space. -
setOwnershipSettings
@Stability(Stable) public void setOwnershipSettings(@Nullable CfnSpace.OwnershipSettingsProperty value) The collection of ownership settings for a space. -
getSpaceDisplayName
The name of the space that appears in the Studio UI. -
setSpaceDisplayName
The name of the space that appears in the Studio UI. -
getSpaceSettings
A collection of space settings.Returns union: either
IResolvableorCfnSpace.SpaceSettingsProperty -
setSpaceSettings
A collection of space settings. -
setSpaceSettings
A collection of space settings. -
getSpaceSharingSettings
A collection of space sharing settings.Returns union: either
IResolvableorCfnSpace.SpaceSharingSettingsProperty -
setSpaceSharingSettings
A collection of space sharing settings. -
setSpaceSharingSettings
@Stability(Stable) public void setSpaceSharingSettings(@Nullable CfnSpace.SpaceSharingSettingsProperty value) A collection of space sharing settings. -
getTagsRaw
An array of key-value pairs to apply to this resource. -
setTagsRaw
An array of key-value pairs to apply to this resource.
-