SparkWorkspaceProps
Properties for defining a SparkWorkspace.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-emr-sparkworkspace
Initializer
import ros_cdk_emr
ros_cdk_emr.SparkWorkspaceProps(
oss_bucket: typing.Union[str, IResolvable],
payment_type: typing.Union[str, IResolvable],
ram_role_name: typing.Union[str, IResolvable],
resource_spec: typing.Union[IResolvable, ResourceSpecProperty],
workspace_name: typing.Union[str, IResolvable],
auto_renew: typing.Union[bool, IResolvable] = None,
auto_renew_period: typing.Union[str, IResolvable] = None,
auto_renew_period_unit: typing.Union[str, IResolvable] = None,
auto_start_session_cluster: typing.Union[bool, IResolvable] = None,
dlf_catalog_id: typing.Union[str, IResolvable] = None,
dlf_type: typing.Union[str, IResolvable] = None,
duration: typing.Union[str, IResolvable] = None,
gpu_spec: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
gpu_subscription: typing.Union[IResolvable, GpuSubscriptionProperty] = None,
ip_white_list: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
payment_duration_unit: typing.Union[str, IResolvable] = None,
release_type: typing.Union[str, IResolvable] = None,
resource_group_id: typing.Union[str, IResolvable] = None,
subscription: typing.Union[IResolvable, SubscriptionProperty] = None,
tags: typing.List[TagsProperty] = None
)
Properties
| Name | Type | Description |
|---|---|---|
oss_bucket | typing.Union[str, ros_cdk_core.IResolvable] | Property ossBucket: The OSS bucket path of the workspace. |
payment_type | typing.Union[str, ros_cdk_core.IResolvable] | Property paymentType: The billing method of the workspace. |
ram_role_name | typing.Union[str, ros_cdk_core.IResolvable] | Property ramRoleName: The RAM role used to run Spark jobs. |
resource_spec | typing.Union[ros_cdk_core.IResolvable, ResourceSpecProperty] | Property resourceSpec: The resource specifications of the workspace. |
workspace_name | typing.Union[str, ros_cdk_core.IResolvable] | Property workspaceName: The workspace name. |
auto_renew | typing.Union[bool, ros_cdk_core.IResolvable] | Property autoRenew: Whether to enable automatic renewal for a subscription. |
auto_renew_period | typing.Union[str, ros_cdk_core.IResolvable] | Property autoRenewPeriod: The automatic renewal duration. |
auto_renew_period_unit | typing.Union[str, ros_cdk_core.IResolvable] | Property autoRenewPeriodUnit: The unit of the automatic renewal duration. |
auto_start_session_cluster | typing.Union[bool, ros_cdk_core.IResolvable] | Property autoStartSessionCluster: Whether to automatically start a session cluster. |
dlf_catalog_id | typing.Union[str, ros_cdk_core.IResolvable] | Property dlfCatalogId: The ID of the DLF catalog. |
dlf_type | typing.Union[str, ros_cdk_core.IResolvable] | Property dlfType: The DLF type bound to the workspace. |
duration | typing.Union[str, ros_cdk_core.IResolvable] | Property duration: The subscription duration. |
gpu_spec | typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] | Property gpuSpec: The GPU instance types of the workspace. |
gpu_subscription | typing.Union[ros_cdk_core.IResolvable, GpuSubscriptionProperty] | Property gpuSubscription: The GPU subscription configuration. |
ip_white_list | typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] | Property ipWhiteList: The IP whitelist of the workspace. |
payment_duration_unit | typing.Union[str, ros_cdk_core.IResolvable] | Property paymentDurationUnit: The unit of the subscription duration. |
release_type | typing.Union[str, ros_cdk_core.IResolvable] | Property releaseType: The release type of the workspace. |
resource_group_id | typing.Union[str, ros_cdk_core.IResolvable] | Property resourceGroupId: The ID of the resource group. |
subscription | typing.Union[ros_cdk_core.IResolvable, SubscriptionProperty] | Property subscription: The configuration used to convert a pay-as-you-go workspace to a subscription workspace. |
tags | typing.List[TagsProperty] | Property tags: Tags to attach to workspace. |
oss_bucketRequired
oss_bucket: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property ossBucket: The OSS bucket path of the workspace.
The path must start with oss://
payment_typeRequired
payment_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property paymentType: The billing method of the workspace.
ram_role_nameRequired
ram_role_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property ramRoleName: The RAM role used to run Spark jobs.
resource_specRequired
resource_spec: typing.Union[IResolvable, ResourceSpecProperty]
- Type: typing.Union[ros_cdk_core.IResolvable, ResourceSpecProperty]
Property resourceSpec: The resource specifications of the workspace.
workspace_nameRequired
workspace_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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 (_).
auto_renewOptional
auto_renew: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property autoRenew: Whether to enable automatic renewal for a subscription.
auto_renew_periodOptional
auto_renew_period: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property autoRenewPeriod: The automatic renewal duration.
auto_renew_period_unitOptional
auto_renew_period_unit: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property autoRenewPeriodUnit: The unit of the automatic renewal duration.
auto_start_session_clusterOptional
auto_start_session_cluster: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property autoStartSessionCluster: Whether to automatically start a session cluster.
dlf_catalog_idOptional
dlf_catalog_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property dlfCatalogId: The ID of the DLF catalog.
dlf_typeOptional
dlf_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property dlfType: The DLF type bound to the workspace.
durationOptional
duration: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property duration: The subscription duration.
gpu_specOptional
gpu_spec: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]
Property gpuSpec: The GPU instance types of the workspace.
gpu_subscriptionOptional
gpu_subscription: typing.Union[IResolvable, GpuSubscriptionProperty]
- Type: typing.Union[ros_cdk_core.IResolvable, GpuSubscriptionProperty]
Property gpuSubscription: The GPU subscription configuration.
This configuration is applied after the workspace is created.
ip_white_listOptional
ip_white_list: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]
Property ipWhiteList: The IP whitelist of the workspace.
This configuration is applied after the workspace is created.
payment_duration_unitOptional
payment_duration_unit: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property paymentDurationUnit: The unit of the subscription duration.
release_typeOptional
release_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property releaseType: The release type of the workspace.
resource_group_idOptional
resource_group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property resourceGroupId: The ID of the resource group.
subscriptionOptional
subscription: typing.Union[IResolvable, SubscriptionProperty]
- Type: typing.Union[ros_cdk_core.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
tags: typing.List[TagsProperty]
- Type: typing.List[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.