CfnSpacePropsMixin
- class aws_cdk.mixins_preview.aws_sagemaker.mixins.CfnSpacePropsMixin(props, *, strategy=None)
Bases:
MixinCreates a private space or a space used for real time collaboration in a domain.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-space.html
- CloudformationResource:
AWS::SageMaker::Space
- Mixin:
true
- 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.mixins_preview import mixins from aws_cdk.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins cfn_space_props_mixin = sagemaker_mixins.CfnSpacePropsMixin(sagemaker_mixins.CfnSpaceMixinProps( domain_id="domainId", ownership_settings=sagemaker_mixins.CfnSpacePropsMixin.OwnershipSettingsProperty( owner_user_profile_name="ownerUserProfileName" ), space_display_name="spaceDisplayName", space_name="spaceName", space_settings=sagemaker_mixins.CfnSpacePropsMixin.SpaceSettingsProperty( app_type="appType", code_editor_app_settings=sagemaker_mixins.CfnSpacePropsMixin.SpaceCodeEditorAppSettingsProperty( app_lifecycle_management=sagemaker_mixins.CfnSpacePropsMixin.SpaceAppLifecycleManagementProperty( idle_settings=sagemaker_mixins.CfnSpacePropsMixin.SpaceIdleSettingsProperty( idle_timeout_in_minutes=123 ) ), default_resource_spec=sagemaker_mixins.CfnSpacePropsMixin.ResourceSpecProperty( instance_type="instanceType", lifecycle_config_arn="lifecycleConfigArn", sage_maker_image_arn="sageMakerImageArn", sage_maker_image_version_arn="sageMakerImageVersionArn" ) ), custom_file_systems=[sagemaker_mixins.CfnSpacePropsMixin.CustomFileSystemProperty( efs_file_system=sagemaker_mixins.CfnSpacePropsMixin.EFSFileSystemProperty( file_system_id="fileSystemId" ), f_sx_lustre_file_system=sagemaker_mixins.CfnSpacePropsMixin.FSxLustreFileSystemProperty( file_system_id="fileSystemId" ), s3_file_system=sagemaker_mixins.CfnSpacePropsMixin.S3FileSystemProperty( s3_uri="s3Uri" ) )], jupyter_lab_app_settings=sagemaker_mixins.CfnSpacePropsMixin.SpaceJupyterLabAppSettingsProperty( app_lifecycle_management=sagemaker_mixins.CfnSpacePropsMixin.SpaceAppLifecycleManagementProperty( idle_settings=sagemaker_mixins.CfnSpacePropsMixin.SpaceIdleSettingsProperty( idle_timeout_in_minutes=123 ) ), code_repositories=[sagemaker_mixins.CfnSpacePropsMixin.CodeRepositoryProperty( repository_url="repositoryUrl" )], default_resource_spec=sagemaker_mixins.CfnSpacePropsMixin.ResourceSpecProperty( instance_type="instanceType", lifecycle_config_arn="lifecycleConfigArn", sage_maker_image_arn="sageMakerImageArn", sage_maker_image_version_arn="sageMakerImageVersionArn" ) ), jupyter_server_app_settings=sagemaker_mixins.CfnSpacePropsMixin.JupyterServerAppSettingsProperty( default_resource_spec=sagemaker_mixins.CfnSpacePropsMixin.ResourceSpecProperty( instance_type="instanceType", lifecycle_config_arn="lifecycleConfigArn", sage_maker_image_arn="sageMakerImageArn", sage_maker_image_version_arn="sageMakerImageVersionArn" ), lifecycle_config_arns=["lifecycleConfigArns"] ), kernel_gateway_app_settings=sagemaker_mixins.CfnSpacePropsMixin.KernelGatewayAppSettingsProperty( custom_images=[sagemaker_mixins.CfnSpacePropsMixin.CustomImageProperty( app_image_config_name="appImageConfigName", image_name="imageName", image_version_number=123 )], default_resource_spec=sagemaker_mixins.CfnSpacePropsMixin.ResourceSpecProperty( instance_type="instanceType", lifecycle_config_arn="lifecycleConfigArn", sage_maker_image_arn="sageMakerImageArn", sage_maker_image_version_arn="sageMakerImageVersionArn" ), lifecycle_config_arns=["lifecycleConfigArns"] ), remote_access="remoteAccess", space_managed_resources="spaceManagedResources", space_storage_settings=sagemaker_mixins.CfnSpacePropsMixin.SpaceStorageSettingsProperty( ebs_storage_settings=sagemaker_mixins.CfnSpacePropsMixin.EbsStorageSettingsProperty( ebs_volume_size_in_gb=123 ) ) ), space_sharing_settings=sagemaker_mixins.CfnSpacePropsMixin.SpaceSharingSettingsProperty( sharing_type="sharingType" ), tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::SageMaker::Space.- Parameters:
props (
Union[CfnSpaceMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['domainId', 'ownershipSettings', 'spaceDisplayName', 'spaceName', 'spaceSettings', 'spaceSharingSettings', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
CodeRepositoryProperty
- class CfnSpacePropsMixin.CodeRepositoryProperty(*, repository_url=None)
Bases:
objectA Git repository that SageMaker AI automatically displays to users for cloning in the JupyterServer application.
- Parameters:
repository_url (
Optional[str]) – The URL of the Git repository.- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins code_repository_property = sagemaker_mixins.CfnSpacePropsMixin.CodeRepositoryProperty( repository_url="repositoryUrl" )
Attributes
- repository_url
The URL of the Git repository.
CustomFileSystemProperty
- class CfnSpacePropsMixin.CustomFileSystemProperty(*, efs_file_system=None, f_sx_lustre_file_system=None, s3_file_system=None)
Bases:
objectA file system, created by you, that you assign to a user profile or space for an Amazon SageMaker AI Domain.
Permitted users can access this file system in Amazon SageMaker AI Studio.
- Parameters:
efs_file_system (
Union[IResolvable,EFSFileSystemProperty,Dict[str,Any],None]) – A custom file system in Amazon EFS.f_sx_lustre_file_system (
Union[IResolvable,FSxLustreFileSystemProperty,Dict[str,Any],None]) – A custom file system in Amazon FSx for Lustre.s3_file_system (
Union[IResolvable,S3FileSystemProperty,Dict[str,Any],None]) – A custom file system in Amazon S3. This is only supported in Amazon SageMaker Unified Studio.
- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins custom_file_system_property = sagemaker_mixins.CfnSpacePropsMixin.CustomFileSystemProperty( efs_file_system=sagemaker_mixins.CfnSpacePropsMixin.EFSFileSystemProperty( file_system_id="fileSystemId" ), f_sx_lustre_file_system=sagemaker_mixins.CfnSpacePropsMixin.FSxLustreFileSystemProperty( file_system_id="fileSystemId" ), s3_file_system=sagemaker_mixins.CfnSpacePropsMixin.S3FileSystemProperty( s3_uri="s3Uri" ) )
Attributes
- efs_file_system
A custom file system in Amazon EFS.
- f_sx_lustre_file_system
A custom file system in Amazon FSx for Lustre.
- s3_file_system
A custom file system in Amazon S3.
This is only supported in Amazon SageMaker Unified Studio.
CustomImageProperty
- class CfnSpacePropsMixin.CustomImageProperty(*, app_image_config_name=None, image_name=None, image_version_number=None)
Bases:
objectA custom SageMaker AI image.
For more information, see Bring your own SageMaker AI image .
- Parameters:
app_image_config_name (
Optional[str]) – The name of the AppImageConfig.image_name (
Optional[str]) – The name of the CustomImage. Must be unique to your account.image_version_number (
Union[int,float,None]) – The version number of the CustomImage.
- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins custom_image_property = sagemaker_mixins.CfnSpacePropsMixin.CustomImageProperty( app_image_config_name="appImageConfigName", image_name="imageName", image_version_number=123 )
Attributes
- app_image_config_name
The name of the AppImageConfig.
- image_name
The name of the CustomImage.
Must be unique to your account.
- image_version_number
The version number of the CustomImage.
EFSFileSystemProperty
- class CfnSpacePropsMixin.EFSFileSystemProperty(*, file_system_id=None)
Bases:
objectA file system, created by you in Amazon EFS, that you assign to a user profile or space for an Amazon SageMaker AI Domain.
Permitted users can access this file system in Amazon SageMaker AI Studio.
- Parameters:
file_system_id (
Optional[str]) – The ID of your Amazon EFS file system.- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins e_fSFile_system_property = sagemaker_mixins.CfnSpacePropsMixin.EFSFileSystemProperty( file_system_id="fileSystemId" )
Attributes
- file_system_id
The ID of your Amazon EFS file system.
EbsStorageSettingsProperty
- class CfnSpacePropsMixin.EbsStorageSettingsProperty(*, ebs_volume_size_in_gb=None)
Bases:
objectA collection of EBS storage settings that apply to both private and shared spaces.
- Parameters:
ebs_volume_size_in_gb (
Union[int,float,None]) – The size of an EBS storage volume for a space.- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins ebs_storage_settings_property = sagemaker_mixins.CfnSpacePropsMixin.EbsStorageSettingsProperty( ebs_volume_size_in_gb=123 )
Attributes
- ebs_volume_size_in_gb
The size of an EBS storage volume for a space.
FSxLustreFileSystemProperty
- class CfnSpacePropsMixin.FSxLustreFileSystemProperty(*, file_system_id=None)
Bases:
objectA custom file system in Amazon FSx for Lustre.
- Parameters:
file_system_id (
Optional[str]) – Amazon FSx for Lustre file system ID.- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins f_sx_lustre_file_system_property = sagemaker_mixins.CfnSpacePropsMixin.FSxLustreFileSystemProperty( file_system_id="fileSystemId" )
Attributes
- file_system_id
Amazon FSx for Lustre file system ID.
JupyterServerAppSettingsProperty
- class CfnSpacePropsMixin.JupyterServerAppSettingsProperty(*, default_resource_spec=None, lifecycle_config_arns=None)
Bases:
objectThe JupyterServer app settings.
- Parameters:
default_resource_spec (
Union[IResolvable,ResourceSpecProperty,Dict[str,Any],None]) – The default instance type and the Amazon Resource Name (ARN) of the default SageMaker AI image used by the JupyterServer app. If you use theLifecycleConfigArnsparameter, then this parameter is also required.lifecycle_config_arns (
Optional[Sequence[str]]) – The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the JupyterServerApp. If you use this parameter, theDefaultResourceSpecparameter is also required. .. epigraph:: To remove a Lifecycle Config, you must setLifecycleConfigArnsto an empty list.
- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins jupyter_server_app_settings_property = sagemaker_mixins.CfnSpacePropsMixin.JupyterServerAppSettingsProperty( default_resource_spec=sagemaker_mixins.CfnSpacePropsMixin.ResourceSpecProperty( instance_type="instanceType", lifecycle_config_arn="lifecycleConfigArn", sage_maker_image_arn="sageMakerImageArn", sage_maker_image_version_arn="sageMakerImageVersionArn" ), lifecycle_config_arns=["lifecycleConfigArns"] )
Attributes
- default_resource_spec
The default instance type and the Amazon Resource Name (ARN) of the default SageMaker AI image used by the JupyterServer app.
If you use the
LifecycleConfigArnsparameter, then this parameter is also required.
- lifecycle_config_arns
The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the JupyterServerApp.
If you use this parameter, the
DefaultResourceSpecparameter is also required. .. epigraph:To remove a Lifecycle Config, you must set ``LifecycleConfigArns`` to an empty list.
KernelGatewayAppSettingsProperty
- class CfnSpacePropsMixin.KernelGatewayAppSettingsProperty(*, custom_images=None, default_resource_spec=None, lifecycle_config_arns=None)
Bases:
objectThe KernelGateway app settings.
- Parameters:
custom_images (
Union[IResolvable,Sequence[Union[IResolvable,CustomImageProperty,Dict[str,Any]]],None]) – A list of custom SageMaker AI images that are configured to run as a KernelGateway app. The maximum number of custom images are as follows. - On a domain level: 200 - On a space level: 5 - On a user profile level: 5default_resource_spec (
Union[IResolvable,ResourceSpecProperty,Dict[str,Any],None]) – The default instance type and the Amazon Resource Name (ARN) of the default SageMaker AI image used by the KernelGateway app. .. epigraph:: The Amazon SageMaker AI Studio UI does not use the default instance type value set here. The default instance type set here is used when Apps are created using the AWS CLI or CloudFormation and the instance type parameter value is not passed.lifecycle_config_arns (
Optional[Sequence[str]]) – The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the the user profile or domain. .. epigraph:: To remove a Lifecycle Config, you must setLifecycleConfigArnsto an empty list.
- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins kernel_gateway_app_settings_property = sagemaker_mixins.CfnSpacePropsMixin.KernelGatewayAppSettingsProperty( custom_images=[sagemaker_mixins.CfnSpacePropsMixin.CustomImageProperty( app_image_config_name="appImageConfigName", image_name="imageName", image_version_number=123 )], default_resource_spec=sagemaker_mixins.CfnSpacePropsMixin.ResourceSpecProperty( instance_type="instanceType", lifecycle_config_arn="lifecycleConfigArn", sage_maker_image_arn="sageMakerImageArn", sage_maker_image_version_arn="sageMakerImageVersionArn" ), lifecycle_config_arns=["lifecycleConfigArns"] )
Attributes
- custom_images
A list of custom SageMaker AI images that are configured to run as a KernelGateway app.
The maximum number of custom images are as follows.
On a domain level: 200
On a space level: 5
On a user profile level: 5
- default_resource_spec
The default instance type and the Amazon Resource Name (ARN) of the default SageMaker AI image used by the KernelGateway app.
The Amazon SageMaker AI Studio UI does not use the default instance type value set here. The default instance type set here is used when Apps are created using the AWS CLI or CloudFormation and the instance type parameter value is not passed.
- lifecycle_config_arns
The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the the user profile or domain.
To remove a Lifecycle Config, you must set
LifecycleConfigArnsto an empty list.
OwnershipSettingsProperty
- class CfnSpacePropsMixin.OwnershipSettingsProperty(*, owner_user_profile_name=None)
Bases:
objectThe collection of ownership settings for a space.
- Parameters:
owner_user_profile_name (
Optional[str]) – The user profile who is the owner of the space.- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins ownership_settings_property = sagemaker_mixins.CfnSpacePropsMixin.OwnershipSettingsProperty( owner_user_profile_name="ownerUserProfileName" )
Attributes
- owner_user_profile_name
The user profile who is the owner of the space.
ResourceSpecProperty
- class CfnSpacePropsMixin.ResourceSpecProperty(*, instance_type=None, lifecycle_config_arn=None, sage_maker_image_arn=None, sage_maker_image_version_arn=None)
Bases:
objectSpecifies the ARN’s of a SageMaker AI image and SageMaker AI image version, and the instance type that the version runs on.
When both
SageMakerImageVersionArnandSageMakerImageArnare passed,SageMakerImageVersionArnis used. Any updates toSageMakerImageArnwill not take effect ifSageMakerImageVersionArnalready exists in theResourceSpecbecauseSageMakerImageVersionArnalways takes precedence. To clear the value set forSageMakerImageVersionArn, passNoneas the value.- Parameters:
instance_type (
Optional[str]) – The instance type that the image version runs on. .. epigraph:: JupyterServer apps only support thesystemvalue. For KernelGateway apps , thesystemvalue is translated toml.t3.medium. KernelGateway apps also support all other values for available instance types.lifecycle_config_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.sage_maker_image_arn (
Optional[str]) – The ARN of the SageMaker AI image that the image version belongs to.sage_maker_image_version_arn (
Optional[str]) – The ARN of the image version created on the instance. To clear the value set forSageMakerImageVersionArn, passNoneas the value.
- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins resource_spec_property = sagemaker_mixins.CfnSpacePropsMixin.ResourceSpecProperty( instance_type="instanceType", lifecycle_config_arn="lifecycleConfigArn", sage_maker_image_arn="sageMakerImageArn", sage_maker_image_version_arn="sageMakerImageVersionArn" )
Attributes
- instance_type
The instance type that the image version runs on.
JupyterServer apps only support the
systemvalue.For KernelGateway apps , the
systemvalue is translated toml.t3.medium. KernelGateway apps also support all other values for available instance types.
- lifecycle_config_arn
The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
- sage_maker_image_arn
The ARN of the SageMaker AI image that the image version belongs to.
- sage_maker_image_version_arn
The ARN of the image version created on the instance.
To clear the value set for
SageMakerImageVersionArn, passNoneas the value.
S3FileSystemProperty
- class CfnSpacePropsMixin.S3FileSystemProperty(*, s3_uri=None)
Bases:
objectA custom file system in Amazon S3.
This is only supported in Amazon SageMaker Unified Studio.
- Parameters:
s3_uri (
Optional[str]) – The Amazon S3 URI that specifies the location in S3 where files are stored, which is mounted within the Studio environment. For example:s3://<bucket-name>/<prefix>/.- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins s3_file_system_property = sagemaker_mixins.CfnSpacePropsMixin.S3FileSystemProperty( s3_uri="s3Uri" )
Attributes
- s3_uri
The Amazon S3 URI that specifies the location in S3 where files are stored, which is mounted within the Studio environment.
For example:
s3://<bucket-name>/<prefix>/.
SpaceAppLifecycleManagementProperty
- class CfnSpacePropsMixin.SpaceAppLifecycleManagementProperty(*, idle_settings=None)
Bases:
objectSettings that are used to configure and manage the lifecycle of Amazon SageMaker Studio applications in a space.
- Parameters:
idle_settings (
Union[IResolvable,SpaceIdleSettingsProperty,Dict[str,Any],None]) – Settings related to idle shutdown of Studio applications.- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins space_app_lifecycle_management_property = sagemaker_mixins.CfnSpacePropsMixin.SpaceAppLifecycleManagementProperty( idle_settings=sagemaker_mixins.CfnSpacePropsMixin.SpaceIdleSettingsProperty( idle_timeout_in_minutes=123 ) )
Attributes
- idle_settings
Settings related to idle shutdown of Studio applications.
SpaceCodeEditorAppSettingsProperty
- class CfnSpacePropsMixin.SpaceCodeEditorAppSettingsProperty(*, app_lifecycle_management=None, default_resource_spec=None)
Bases:
objectThe application settings for a Code Editor space.
- Parameters:
app_lifecycle_management (
Union[IResolvable,SpaceAppLifecycleManagementProperty,Dict[str,Any],None]) – Settings that are used to configure and manage the lifecycle of CodeEditor applications in a space.default_resource_spec (
Union[IResolvable,ResourceSpecProperty,Dict[str,Any],None]) – Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.
- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins space_code_editor_app_settings_property = sagemaker_mixins.CfnSpacePropsMixin.SpaceCodeEditorAppSettingsProperty( app_lifecycle_management=sagemaker_mixins.CfnSpacePropsMixin.SpaceAppLifecycleManagementProperty( idle_settings=sagemaker_mixins.CfnSpacePropsMixin.SpaceIdleSettingsProperty( idle_timeout_in_minutes=123 ) ), default_resource_spec=sagemaker_mixins.CfnSpacePropsMixin.ResourceSpecProperty( instance_type="instanceType", lifecycle_config_arn="lifecycleConfigArn", sage_maker_image_arn="sageMakerImageArn", sage_maker_image_version_arn="sageMakerImageVersionArn" ) )
Attributes
- app_lifecycle_management
Settings that are used to configure and manage the lifecycle of CodeEditor applications in a space.
- default_resource_spec
Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.
SpaceIdleSettingsProperty
- class CfnSpacePropsMixin.SpaceIdleSettingsProperty(*, idle_timeout_in_minutes=None)
Bases:
objectSettings related to idle shutdown of Studio applications in a space.
- Parameters:
idle_timeout_in_minutes (
Union[int,float,None]) – The time that SageMaker waits after the application becomes idle before shutting it down.- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins space_idle_settings_property = sagemaker_mixins.CfnSpacePropsMixin.SpaceIdleSettingsProperty( idle_timeout_in_minutes=123 )
Attributes
- idle_timeout_in_minutes
The time that SageMaker waits after the application becomes idle before shutting it down.
SpaceJupyterLabAppSettingsProperty
- class CfnSpacePropsMixin.SpaceJupyterLabAppSettingsProperty(*, app_lifecycle_management=None, code_repositories=None, default_resource_spec=None)
Bases:
objectThe settings for the JupyterLab application within a space.
- Parameters:
app_lifecycle_management (
Union[IResolvable,SpaceAppLifecycleManagementProperty,Dict[str,Any],None]) – Settings that are used to configure and manage the lifecycle of JupyterLab applications in a space.code_repositories (
Union[IResolvable,Sequence[Union[IResolvable,CodeRepositoryProperty,Dict[str,Any]]],None]) – A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterLab application.default_resource_spec (
Union[IResolvable,ResourceSpecProperty,Dict[str,Any],None]) – Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.
- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins space_jupyter_lab_app_settings_property = sagemaker_mixins.CfnSpacePropsMixin.SpaceJupyterLabAppSettingsProperty( app_lifecycle_management=sagemaker_mixins.CfnSpacePropsMixin.SpaceAppLifecycleManagementProperty( idle_settings=sagemaker_mixins.CfnSpacePropsMixin.SpaceIdleSettingsProperty( idle_timeout_in_minutes=123 ) ), code_repositories=[sagemaker_mixins.CfnSpacePropsMixin.CodeRepositoryProperty( repository_url="repositoryUrl" )], default_resource_spec=sagemaker_mixins.CfnSpacePropsMixin.ResourceSpecProperty( instance_type="instanceType", lifecycle_config_arn="lifecycleConfigArn", sage_maker_image_arn="sageMakerImageArn", sage_maker_image_version_arn="sageMakerImageVersionArn" ) )
Attributes
- app_lifecycle_management
Settings that are used to configure and manage the lifecycle of JupyterLab applications in a space.
- code_repositories
A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterLab application.
- default_resource_spec
Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.
SpaceSettingsProperty
- class CfnSpacePropsMixin.SpaceSettingsProperty(*, app_type=None, code_editor_app_settings=None, custom_file_systems=None, jupyter_lab_app_settings=None, jupyter_server_app_settings=None, kernel_gateway_app_settings=None, remote_access=None, space_managed_resources=None, space_storage_settings=None)
Bases:
objectA collection of space settings.
- Parameters:
app_type (
Optional[str]) – The type of app created within the space. If using the UpdateSpace API, you can’t change the app type of your space by specifying a different value for this field.code_editor_app_settings (
Union[IResolvable,SpaceCodeEditorAppSettingsProperty,Dict[str,Any],None]) – The Code Editor application settings.custom_file_systems (
Union[IResolvable,Sequence[Union[IResolvable,CustomFileSystemProperty,Dict[str,Any]]],None]) – A file system, created by you, that you assign to a space for an Amazon SageMaker AI Domain. Permitted users can access this file system in Amazon SageMaker AI Studio.jupyter_lab_app_settings (
Union[IResolvable,SpaceJupyterLabAppSettingsProperty,Dict[str,Any],None]) – The settings for the JupyterLab application.jupyter_server_app_settings (
Union[IResolvable,JupyterServerAppSettingsProperty,Dict[str,Any],None]) – The JupyterServer app settings.kernel_gateway_app_settings (
Union[IResolvable,KernelGatewayAppSettingsProperty,Dict[str,Any],None]) – The KernelGateway app settings.remote_access (
Optional[str]) – A setting that enables or disables remote access for a SageMaker space. When enabled, this allows you to connect to the remote space from your local IDE.space_managed_resources (
Optional[str]) – If you enable this option, SageMaker AI creates the following resources on your behalf when you create the space:. - The user profile that possesses the space. - The app that the space contains.space_storage_settings (
Union[IResolvable,SpaceStorageSettingsProperty,Dict[str,Any],None]) – The storage settings for a space.
- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins space_settings_property = sagemaker_mixins.CfnSpacePropsMixin.SpaceSettingsProperty( app_type="appType", code_editor_app_settings=sagemaker_mixins.CfnSpacePropsMixin.SpaceCodeEditorAppSettingsProperty( app_lifecycle_management=sagemaker_mixins.CfnSpacePropsMixin.SpaceAppLifecycleManagementProperty( idle_settings=sagemaker_mixins.CfnSpacePropsMixin.SpaceIdleSettingsProperty( idle_timeout_in_minutes=123 ) ), default_resource_spec=sagemaker_mixins.CfnSpacePropsMixin.ResourceSpecProperty( instance_type="instanceType", lifecycle_config_arn="lifecycleConfigArn", sage_maker_image_arn="sageMakerImageArn", sage_maker_image_version_arn="sageMakerImageVersionArn" ) ), custom_file_systems=[sagemaker_mixins.CfnSpacePropsMixin.CustomFileSystemProperty( efs_file_system=sagemaker_mixins.CfnSpacePropsMixin.EFSFileSystemProperty( file_system_id="fileSystemId" ), f_sx_lustre_file_system=sagemaker_mixins.CfnSpacePropsMixin.FSxLustreFileSystemProperty( file_system_id="fileSystemId" ), s3_file_system=sagemaker_mixins.CfnSpacePropsMixin.S3FileSystemProperty( s3_uri="s3Uri" ) )], jupyter_lab_app_settings=sagemaker_mixins.CfnSpacePropsMixin.SpaceJupyterLabAppSettingsProperty( app_lifecycle_management=sagemaker_mixins.CfnSpacePropsMixin.SpaceAppLifecycleManagementProperty( idle_settings=sagemaker_mixins.CfnSpacePropsMixin.SpaceIdleSettingsProperty( idle_timeout_in_minutes=123 ) ), code_repositories=[sagemaker_mixins.CfnSpacePropsMixin.CodeRepositoryProperty( repository_url="repositoryUrl" )], default_resource_spec=sagemaker_mixins.CfnSpacePropsMixin.ResourceSpecProperty( instance_type="instanceType", lifecycle_config_arn="lifecycleConfigArn", sage_maker_image_arn="sageMakerImageArn", sage_maker_image_version_arn="sageMakerImageVersionArn" ) ), jupyter_server_app_settings=sagemaker_mixins.CfnSpacePropsMixin.JupyterServerAppSettingsProperty( default_resource_spec=sagemaker_mixins.CfnSpacePropsMixin.ResourceSpecProperty( instance_type="instanceType", lifecycle_config_arn="lifecycleConfigArn", sage_maker_image_arn="sageMakerImageArn", sage_maker_image_version_arn="sageMakerImageVersionArn" ), lifecycle_config_arns=["lifecycleConfigArns"] ), kernel_gateway_app_settings=sagemaker_mixins.CfnSpacePropsMixin.KernelGatewayAppSettingsProperty( custom_images=[sagemaker_mixins.CfnSpacePropsMixin.CustomImageProperty( app_image_config_name="appImageConfigName", image_name="imageName", image_version_number=123 )], default_resource_spec=sagemaker_mixins.CfnSpacePropsMixin.ResourceSpecProperty( instance_type="instanceType", lifecycle_config_arn="lifecycleConfigArn", sage_maker_image_arn="sageMakerImageArn", sage_maker_image_version_arn="sageMakerImageVersionArn" ), lifecycle_config_arns=["lifecycleConfigArns"] ), remote_access="remoteAccess", space_managed_resources="spaceManagedResources", space_storage_settings=sagemaker_mixins.CfnSpacePropsMixin.SpaceStorageSettingsProperty( ebs_storage_settings=sagemaker_mixins.CfnSpacePropsMixin.EbsStorageSettingsProperty( ebs_volume_size_in_gb=123 ) ) )
Attributes
- app_type
The type of app created within the space.
If using the UpdateSpace API, you can’t change the app type of your space by specifying a different value for this field.
- code_editor_app_settings
The Code Editor application settings.
- custom_file_systems
A file system, created by you, that you assign to a space for an Amazon SageMaker AI Domain.
Permitted users can access this file system in Amazon SageMaker AI Studio.
- jupyter_lab_app_settings
The settings for the JupyterLab application.
- jupyter_server_app_settings
The JupyterServer app settings.
- kernel_gateway_app_settings
The KernelGateway app settings.
- remote_access
A setting that enables or disables remote access for a SageMaker space.
When enabled, this allows you to connect to the remote space from your local IDE.
- space_managed_resources
.
The user profile that possesses the space.
The app that the space contains.
- See:
- Type:
If you enable this option, SageMaker AI creates the following resources on your behalf when you create the space
- space_storage_settings
The storage settings for a space.
SpaceSharingSettingsProperty
- class CfnSpacePropsMixin.SpaceSharingSettingsProperty(*, sharing_type=None)
Bases:
objectA collection of space sharing settings.
- Parameters:
sharing_type (
Optional[str]) – Specifies the sharing type of the space.- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins space_sharing_settings_property = sagemaker_mixins.CfnSpacePropsMixin.SpaceSharingSettingsProperty( sharing_type="sharingType" )
Attributes
- sharing_type
Specifies the sharing type of the space.
SpaceStorageSettingsProperty
- class CfnSpacePropsMixin.SpaceStorageSettingsProperty(*, ebs_storage_settings=None)
Bases:
objectThe storage settings for a space.
- Parameters:
ebs_storage_settings (
Union[IResolvable,EbsStorageSettingsProperty,Dict[str,Any],None]) – A collection of EBS storage settings for a space.- See:
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins space_storage_settings_property = sagemaker_mixins.CfnSpacePropsMixin.SpaceStorageSettingsProperty( ebs_storage_settings=sagemaker_mixins.CfnSpacePropsMixin.EbsStorageSettingsProperty( ebs_volume_size_in_gb=123 ) )
Attributes
- ebs_storage_settings
A collection of EBS storage settings for a space.