Skip to content

SparkWorkspaceProps

Properties for defining a SparkWorkspace.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-emr-sparkworkspace

Initializer

import { SparkWorkspaceProps } from '@alicloud/ros-cdk-emr'
const sparkWorkspaceProps: SparkWorkspaceProps = { ... }

Properties

Name Type Description
ossBucket string | @alicloud/ros-cdk-core.IResolvable Property ossBucket: The OSS bucket path of the workspace.
paymentType string | @alicloud/ros-cdk-core.IResolvable Property paymentType: The billing method of the workspace.
ramRoleName string | @alicloud/ros-cdk-core.IResolvable Property ramRoleName: The RAM role used to run Spark jobs.
resourceSpec @alicloud/ros-cdk-core.IResolvable | ResourceSpecProperty Property resourceSpec: The resource specifications of the workspace.
workspaceName string | @alicloud/ros-cdk-core.IResolvable Property workspaceName: The workspace name.
autoRenew boolean | @alicloud/ros-cdk-core.IResolvable Property autoRenew: Whether to enable automatic renewal for a subscription.
autoRenewPeriod string | @alicloud/ros-cdk-core.IResolvable Property autoRenewPeriod: The automatic renewal duration.
autoRenewPeriodUnit string | @alicloud/ros-cdk-core.IResolvable Property autoRenewPeriodUnit: The unit of the automatic renewal duration.
autoStartSessionCluster boolean | @alicloud/ros-cdk-core.IResolvable Property autoStartSessionCluster: Whether to automatically start a session cluster.
dlfCatalogId string | @alicloud/ros-cdk-core.IResolvable Property dlfCatalogId: The ID of the DLF catalog.
dlfType string | @alicloud/ros-cdk-core.IResolvable Property dlfType: The DLF type bound to the workspace.
duration string | @alicloud/ros-cdk-core.IResolvable Property duration: The subscription duration.
gpuSpec @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property gpuSpec: The GPU instance types of the workspace.
gpuSubscription @alicloud/ros-cdk-core.IResolvable | GpuSubscriptionProperty Property gpuSubscription: The GPU subscription configuration.
ipWhiteList @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property ipWhiteList: The IP whitelist of the workspace.
paymentDurationUnit string | @alicloud/ros-cdk-core.IResolvable Property paymentDurationUnit: The unit of the subscription duration.
releaseType string | @alicloud/ros-cdk-core.IResolvable Property releaseType: The release type of the workspace.
resourceGroupId string | @alicloud/ros-cdk-core.IResolvable Property resourceGroupId: The ID of the resource group.
subscription @alicloud/ros-cdk-core.IResolvable | SubscriptionProperty Property subscription: The configuration used to convert a pay-as-you-go workspace to a subscription workspace.
tags TagsProperty[] Property tags: Tags to attach to workspace.

ossBucketRequired

public readonly ossBucket: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property ossBucket: The OSS bucket path of the workspace.

The path must start with oss:\/\/\/.


paymentTypeRequired

public readonly paymentType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property paymentType: The billing method of the workspace.


ramRoleNameRequired

public readonly ramRoleName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property ramRoleName: The RAM role used to run Spark jobs.


resourceSpecRequired

public readonly resourceSpec: IResolvable | ResourceSpecProperty;

Property resourceSpec: The resource specifications of the workspace.


workspaceNameRequired

public readonly workspaceName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property workspaceName: The workspace name.

The name must be 1 to 64 characters in length and can contain Chinese characters, letters, digits, hyphens (-), and underscores (_).


autoRenewOptional

public readonly autoRenew: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

Property autoRenew: Whether to enable automatic renewal for a subscription.


autoRenewPeriodOptional

public readonly autoRenewPeriod: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property autoRenewPeriod: The automatic renewal duration.


autoRenewPeriodUnitOptional

public readonly autoRenewPeriodUnit: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property autoRenewPeriodUnit: The unit of the automatic renewal duration.


autoStartSessionClusterOptional

public readonly autoStartSessionCluster: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

Property autoStartSessionCluster: Whether to automatically start a session cluster.


dlfCatalogIdOptional

public readonly dlfCatalogId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property dlfCatalogId: The ID of the DLF catalog.


dlfTypeOptional

public readonly dlfType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property dlfType: The DLF type bound to the workspace.


durationOptional

public readonly duration: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property duration: The subscription duration.


gpuSpecOptional

public readonly gpuSpec: IResolvable | string | IResolvable[];
  • Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]

Property gpuSpec: The GPU instance types of the workspace.


gpuSubscriptionOptional

public readonly gpuSubscription: IResolvable | GpuSubscriptionProperty;

Property gpuSubscription: The GPU subscription configuration.

This configuration is applied after the workspace is created.


ipWhiteListOptional

public readonly ipWhiteList: IResolvable | string | IResolvable[];
  • Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]

Property ipWhiteList: The IP whitelist of the workspace.

This configuration is applied after the workspace is created.


paymentDurationUnitOptional

public readonly paymentDurationUnit: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property paymentDurationUnit: The unit of the subscription duration.


releaseTypeOptional

public readonly releaseType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property releaseType: The release type of the workspace.


resourceGroupIdOptional

public readonly resourceGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property resourceGroupId: The ID of the resource group.


subscriptionOptional

public readonly subscription: IResolvable | SubscriptionProperty;

Property subscription: The configuration used to convert a pay-as-you-go workspace to a subscription workspace.

This configuration is applied after the workspace is created.


tagsOptional

public readonly tags: TagsProperty[];

Property tags: Tags to attach to workspace.

Max support 20 tags to add during create workspace. Each tag with two properties Key and Value, and Key is required.