Class VirtualClusterInput
Class that returns a virtual cluster's id depending on input type.
Inheritance
System.Object
VirtualClusterInput
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VirtualClusterInput : DeputyBase
Syntax (vb)
Public Class VirtualClusterInput
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
new EmrContainersStartJobRun(this, "EMR Containers Start Job Run", new EmrContainersStartJobRunProps {
VirtualCluster = VirtualClusterInput.FromVirtualClusterId("de92jdei2910fwedz"),
ReleaseLabel = ReleaseLabel.EMR_6_2_0,
JobName = "EMR-Containers-Job",
JobDriver = new JobDriver {
SparkSubmitJobDriver = new SparkSubmitJobDriver {
EntryPoint = TaskInput.FromText("local:///usr/lib/spark/examples/src/main/python/pi.py")
}
},
ApplicationConfig = new [] { new ApplicationConfiguration {
Classification = Classification.SPARK_DEFAULTS,
Properties = new Dictionary<string, string> {
{ "spark.executor.instances", "1" },
{ "spark.executor.memory", "512M" }
}
} }
});
Synopsis
Constructors
VirtualClusterInput(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
VirtualClusterInput(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Id | The VirtualCluster Id. |
Methods
FromTaskInput(TaskInput) | Input for a virtualClusterId from a Task Input. |
FromVirtualClusterId(String) | Input for virtualClusterId from a literal string. |
Constructors
VirtualClusterInput(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected VirtualClusterInput(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
VirtualClusterInput(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected VirtualClusterInput(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Id
The VirtualCluster Id.
public virtual string Id { get; }
Property Value
System.String
Methods
FromTaskInput(TaskInput)
Input for a virtualClusterId from a Task Input.
public static VirtualClusterInput FromTaskInput(TaskInput taskInput)
Parameters
- taskInput TaskInput
Returns
FromVirtualClusterId(String)
Input for virtualClusterId from a literal string.
public static VirtualClusterInput FromVirtualClusterId(string virtualClusterId)
Parameters
- virtualClusterId System.String
Returns