CfnSpaceProps

class aws_cdk.aws_sagemaker.CfnSpaceProps(*, domain_id, space_name, space_settings=None, tags=None)

Bases: object

Properties for defining a CfnSpace.

Parameters:
  • domain_id (str) – The ID of the associated Domain.

  • space_name (str) – The name of the space.

  • space_settings (Union[IResolvable, SpaceSettingsProperty, Dict[str, Any], None]) – A collection of space settings.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – An array of key-value pairs to apply to this resource. For more information, see Tag .

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-space.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_space_props = sagemaker.CfnSpaceProps(
    domain_id="domainId",
    space_name="spaceName",

    # the properties below are optional
    space_settings=sagemaker.CfnSpace.SpaceSettingsProperty(
        jupyter_server_app_settings=sagemaker.CfnSpace.JupyterServerAppSettingsProperty(
            default_resource_spec=sagemaker.CfnSpace.ResourceSpecProperty(
                instance_type="instanceType",
                sage_maker_image_arn="sageMakerImageArn",
                sage_maker_image_version_arn="sageMakerImageVersionArn"
            )
        ),
        kernel_gateway_app_settings=sagemaker.CfnSpace.KernelGatewayAppSettingsProperty(
            custom_images=[sagemaker.CfnSpace.CustomImageProperty(
                app_image_config_name="appImageConfigName",
                image_name="imageName",

                # the properties below are optional
                image_version_number=123
            )],
            default_resource_spec=sagemaker.CfnSpace.ResourceSpecProperty(
                instance_type="instanceType",
                sage_maker_image_arn="sageMakerImageArn",
                sage_maker_image_version_arn="sageMakerImageVersionArn"
            )
        )
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

domain_id

The ID of the associated Domain.

Link:

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

space_name

The name of the space.

Link:

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

space_settings

A collection of space settings.

Link:

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

tags

An array of key-value pairs to apply to this resource.

For more information, see Tag .

Link:

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