LivyCompute
- Implements: ILivyCompute
This class encapsulates and extends the ROS resource type ALIYUN::EMR::LivyCompute.
Initializers
import com.aliyun.ros.cdk.emr.LivyCompute;
LivyCompute.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.authType(java.lang.String)
.authType(IResolvable)
.cpuLimit(java.lang.String)
.cpuLimit(IResolvable)
.displayReleaseVersion(java.lang.String)
.displayReleaseVersion(IResolvable)
.livyVersion(java.lang.String)
.livyVersion(IResolvable)
.memoryLimit(java.lang.String)
.memoryLimit(IResolvable)
.name(java.lang.String)
.name(IResolvable)
.queueName(java.lang.String)
.queueName(IResolvable)
.workspaceBizId(java.lang.String)
.workspaceBizId(IResolvable)
// .autoStartConfiguration(IResolvable)
// .autoStartConfiguration(AutoStartConfigurationProperty)
// .autoStopConfiguration(IResolvable)
// .autoStopConfiguration(AutoStopConfigurationProperty)
// .enablePublic(java.lang.Boolean)
// .enablePublic(IResolvable)
// .environmentId(java.lang.String)
// .environmentId(IResolvable)
// .fusion(java.lang.Boolean)
// .fusion(IResolvable)
// .livyServerConf(java.lang.String)
// .livyServerConf(IResolvable)
// .networkName(java.lang.String)
// .networkName(IResolvable)
// .releaseVersion(java.lang.String)
// .releaseVersion(IResolvable)
.build();
| Name | Type | Description |
|---|---|---|
scope | com.aliyun.ros.cdk.core.Construct | No description. |
id | java.lang.String | No description. |
enableResourcePropertyConstraint | java.lang.Boolean | No description. |
authType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property authType: The authentication method. |
cpuLimit | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property cpuLimit: The number of CPU cores for the Livy server. |
displayReleaseVersion | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property displayReleaseVersion: The version number of the Spark engine. |
livyVersion | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property livyVersion: The Livy version. |
memoryLimit | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property memoryLimit: The memory size of the Livy server. |
name | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property name: The name of the Livy Gateway. |
queueName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property queueName: The name of the submission queue. |
workspaceBizId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property workspaceBizId: The business ID of the workspace. |
autoStartConfiguration | com.aliyun.ros.cdk.core.IResolvable OR AutoStartConfigurationProperty | Property autoStartConfiguration: The automatic startup configuration. |
autoStopConfiguration | com.aliyun.ros.cdk.core.IResolvable OR AutoStopConfigurationProperty | Property autoStopConfiguration: The automatic stop configuration. |
enablePublic | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property enablePublic: Whether to enable the public endpoint. |
environmentId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property environmentId: The ID of the runtime environment. |
fusion | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property fusion: Whether to enable acceleration with the Fusion engine. |
livyServerConf | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property livyServerConf: The Livy Gateway configuration. |
networkName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property networkName: The name of the network connection. |
releaseVersion | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property releaseVersion: The deprecated Spark engine version. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
authTypeRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property authType: The authentication method.
cpuLimitRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property cpuLimit: The number of CPU cores for the Livy server.
displayReleaseVersionRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property displayReleaseVersion: The version number of the Spark engine.
livyVersionRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property livyVersion: The Livy version.
memoryLimitRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property memoryLimit: The memory size of the Livy server.
nameRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property name: The name of the Livy Gateway.
queueNameRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property queueName: The name of the submission queue.
workspaceBizIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property workspaceBizId: The business ID of the workspace.
autoStartConfigurationOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR AutoStartConfigurationProperty
Property autoStartConfiguration: The automatic startup configuration.
autoStopConfigurationOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR AutoStopConfigurationProperty
Property autoStopConfiguration: The automatic stop configuration.
enablePublicOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property enablePublic: Whether to enable the public endpoint.
environmentIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property environmentId: The ID of the runtime environment.
fusionOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property fusion: Whether to enable acceleration with the Fusion engine.
livyServerConfOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property livyServerConf: The Livy Gateway configuration.
The value must be a JSON-formatted string that supports sparkDefaultsConf, sparkBlackListConf, livyConf, and livyClientConf.
networkNameOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property networkName: The name of the network connection.
releaseVersionOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property releaseVersion: The deprecated Spark engine version.
Use DisplayReleaseVersion instead.
Methods
| Name | Description |
|---|---|
toString | Returns a string representation of this construct. |
synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition | No description. |
addCount | No description. |
addDependency | No description. |
addResourceDesc | No description. |
applyRemovalPolicy | No description. |
fetchCondition | No description. |
fetchDependency | No description. |
fetchResourceDesc | No description. |
getAtt | No description. |
setMetadata | No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
fetchCondition
public RosCondition fetchCondition()
fetchDependency
public java.util.List<java.lang.String> fetchDependency()
fetchResourceDesc
public java.lang.String fetchResourceDesc()
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.emr.LivyCompute;
LivyCompute.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
| Name | Type | Description |
|---|---|---|
node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node associated with this construct. |
env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. |
ref | java.lang.String | No description. |
stack | com.aliyun.ros.cdk.core.Stack | The stack in which this resource is defined. |
resource | com.aliyun.ros.cdk.core.RosResource | No description. |
attrEndpoint | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Endpoint: The public endpoint of the Livy Gateway. |
attrEndpointInner | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute EndpointInner: The internal endpoint of the Livy Gateway. |
attrLivyComputeId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute LivyComputeId: The ID of the Livy Gateway. |
attrStatus | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Status: The status of the Livy Gateway. |
props | LivyComputeProps | No description. |
nodeRequired
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
envRequired
public IResourceEnvironment getEnv();
- Type: com.aliyun.ros.cdk.core.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
refRequired
public java.lang.String getRef();
- Type: java.lang.String
stackRequired
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resourceOptional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrEndpointRequired
public java.lang.Object getAttrEndpoint();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Endpoint: The public endpoint of the Livy Gateway.
attrEndpointInnerRequired
public java.lang.Object getAttrEndpointInner();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute EndpointInner: The internal endpoint of the Livy Gateway.
attrLivyComputeIdRequired
public java.lang.Object getAttrLivyComputeId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute LivyComputeId: The ID of the Livy Gateway.
attrStatusRequired
public java.lang.Object getAttrStatus();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Status: The status of the Livy Gateway.
propsRequired
public LivyComputeProps getProps();
- Type: LivyComputeProps