SparkWorkspaceProps
Properties for defining a SparkWorkspace.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-emr-sparkworkspace
Initializer
import com.aliyun.ros.cdk.emr.SparkWorkspaceProps;
SparkWorkspaceProps.builder()
.ossBucket(java.lang.String)
.ossBucket(IResolvable)
.paymentType(java.lang.String)
.paymentType(IResolvable)
.ramRoleName(java.lang.String)
.ramRoleName(IResolvable)
.resourceSpec(IResolvable)
.resourceSpec(ResourceSpecProperty)
.workspaceName(java.lang.String)
.workspaceName(IResolvable)
// .autoRenew(java.lang.Boolean)
// .autoRenew(IResolvable)
// .autoRenewPeriod(java.lang.String)
// .autoRenewPeriod(IResolvable)
// .autoRenewPeriodUnit(java.lang.String)
// .autoRenewPeriodUnit(IResolvable)
// .autoStartSessionCluster(java.lang.Boolean)
// .autoStartSessionCluster(IResolvable)
// .dlfCatalogId(java.lang.String)
// .dlfCatalogId(IResolvable)
// .dlfType(java.lang.String)
// .dlfType(IResolvable)
// .duration(java.lang.String)
// .duration(IResolvable)
// .gpuSpec(IResolvable)
// .gpuSpec(java.util.List<java.lang.String)
// .gpuSpec(IResolvable>)
// .gpuSubscription(IResolvable)
// .gpuSubscription(GpuSubscriptionProperty)
// .ipWhiteList(IResolvable)
// .ipWhiteList(java.util.List<java.lang.String)
// .ipWhiteList(IResolvable>)
// .paymentDurationUnit(java.lang.String)
// .paymentDurationUnit(IResolvable)
// .releaseType(java.lang.String)
// .releaseType(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .subscription(IResolvable)
// .subscription(SubscriptionProperty)
// .tags(java.util.List<TagsProperty>)
.build();
Properties
| Name | Type | Description |
|---|---|---|
ossBucket | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ossBucket: The OSS bucket path of the workspace. |
paymentType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property paymentType: The billing method of the workspace. |
ramRoleName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ramRoleName: The RAM role used to run Spark jobs. |
resourceSpec | com.aliyun.ros.cdk.core.IResolvable OR ResourceSpecProperty | Property resourceSpec: The resource specifications of the workspace. |
workspaceName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property workspaceName: The workspace name. |
autoRenew | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property autoRenew: Whether to enable automatic renewal for a subscription. |
autoRenewPeriod | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property autoRenewPeriod: The automatic renewal duration. |
autoRenewPeriodUnit | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property autoRenewPeriodUnit: The unit of the automatic renewal duration. |
autoStartSessionCluster | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property autoStartSessionCluster: Whether to automatically start a session cluster. |
dlfCatalogId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property dlfCatalogId: The ID of the DLF catalog. |
dlfType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property dlfType: The DLF type bound to the workspace. |
duration | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property duration: The subscription duration. |
gpuSpec | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property gpuSpec: The GPU instance types of the workspace. |
gpuSubscription | com.aliyun.ros.cdk.core.IResolvable OR GpuSubscriptionProperty | Property gpuSubscription: The GPU subscription configuration. |
ipWhiteList | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property ipWhiteList: The IP whitelist of the workspace. |
paymentDurationUnit | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property paymentDurationUnit: The unit of the subscription duration. |
releaseType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property releaseType: The release type of the workspace. |
resourceGroupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property resourceGroupId: The ID of the resource group. |
subscription | com.aliyun.ros.cdk.core.IResolvable OR SubscriptionProperty | Property subscription: The configuration used to convert a pay-as-you-go workspace to a subscription workspace. |
tags | java.util.List<TagsProperty> | Property tags: Tags to attach to workspace. |
ossBucketRequired
public java.lang.Object getOssBucket();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ossBucket: The OSS bucket path of the workspace.
The path must start with oss://
paymentTypeRequired
public java.lang.Object getPaymentType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property paymentType: The billing method of the workspace.
ramRoleNameRequired
public java.lang.Object getRamRoleName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ramRoleName: The RAM role used to run Spark jobs.
resourceSpecRequired
public java.lang.Object getResourceSpec();
- Type: com.aliyun.ros.cdk.core.IResolvable OR ResourceSpecProperty
Property resourceSpec: The resource specifications of the workspace.
workspaceNameRequired
public java.lang.Object getWorkspaceName();
- Type: java.lang.String OR com.aliyun.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 java.lang.Object getAutoRenew();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenew: Whether to enable automatic renewal for a subscription.
autoRenewPeriodOptional
public java.lang.Object getAutoRenewPeriod();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenewPeriod: The automatic renewal duration.
autoRenewPeriodUnitOptional
public java.lang.Object getAutoRenewPeriodUnit();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenewPeriodUnit: The unit of the automatic renewal duration.
autoStartSessionClusterOptional
public java.lang.Object getAutoStartSessionCluster();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property autoStartSessionCluster: Whether to automatically start a session cluster.
dlfCatalogIdOptional
public java.lang.Object getDlfCatalogId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dlfCatalogId: The ID of the DLF catalog.
dlfTypeOptional
public java.lang.Object getDlfType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dlfType: The DLF type bound to the workspace.
durationOptional
public java.lang.Object getDuration();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property duration: The subscription duration.
gpuSpecOptional
public java.lang.Object getGpuSpec();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property gpuSpec: The GPU instance types of the workspace.
gpuSubscriptionOptional
public java.lang.Object getGpuSubscription();
- Type: com.aliyun.ros.cdk.core.IResolvable OR GpuSubscriptionProperty
Property gpuSubscription: The GPU subscription configuration.
This configuration is applied after the workspace is created.
ipWhiteListOptional
public java.lang.Object getIpWhiteList();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property ipWhiteList: The IP whitelist of the workspace.
This configuration is applied after the workspace is created.
paymentDurationUnitOptional
public java.lang.Object getPaymentDurationUnit();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property paymentDurationUnit: The unit of the subscription duration.
releaseTypeOptional
public java.lang.Object getReleaseType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property releaseType: The release type of the workspace.
resourceGroupIdOptional
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: The ID of the resource group.
subscriptionOptional
public java.lang.Object getSubscription();
- Type: com.aliyun.ros.cdk.core.IResolvable OR 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 java.util.List<TagsProperty> getTags();
- Type: java.util.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.