Class EmrContainersStartJobRunJsonataProps
Properties for calling EMR Containers StartJobRun using JSONata.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EmrContainersStartJobRunJsonataProps : Object, IEmrContainersStartJobRunJsonataProps, ITaskStateJsonataBaseProps, IStateBaseProps, ITaskStateBaseOptions, IAssignableStateOptions, IJsonataCommonOptions
Syntax (vb)
Public Class EmrContainersStartJobRunJsonataProps
Inherits Object
Implements IEmrContainersStartJobRunJsonataProps, ITaskStateJsonataBaseProps, IStateBaseProps, ITaskStateBaseOptions, IAssignableStateOptions, IJsonataCommonOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.IAM;
using Amazon.CDK.AWS.Logs;
using Amazon.CDK.AWS.S3;
using Amazon.CDK.AWS.StepFunctions;
using Amazon.CDK.AWS.StepFunctions.Tasks;
ApplicationConfiguration applicationConfiguration_;
var assign;
Bucket bucket;
Classification classification;
LogGroup logGroup;
var outputs;
ReleaseLabel releaseLabel;
Role role;
TaskInput taskInput;
TaskRole taskRole;
Timeout timeout;
VirtualClusterInput virtualClusterInput;
var emrContainersStartJobRunJsonataProps = new EmrContainersStartJobRunJsonataProps {
JobDriver = new JobDriver {
SparkSubmitJobDriver = new SparkSubmitJobDriver {
EntryPoint = taskInput,
// the properties below are optional
EntryPointArguments = taskInput,
SparkSubmitParameters = "sparkSubmitParameters"
}
},
ReleaseLabel = releaseLabel,
VirtualCluster = virtualClusterInput,
// the properties below are optional
ApplicationConfig = new [] { new ApplicationConfiguration {
Classification = classification,
// the properties below are optional
NestedConfig = new [] { applicationConfiguration_ },
Properties = new Dictionary<string, string> {
{ "propertiesKey", "properties" }
}
} },
Assign = new Dictionary<string, object> {
{ "assignKey", assign }
},
Comment = "comment",
Credentials = new Credentials {
Role = taskRole
},
ExecutionRole = role,
Heartbeat = Duration.Minutes(30),
HeartbeatTimeout = timeout,
IntegrationPattern = IntegrationPattern.REQUEST_RESPONSE,
JobName = "jobName",
Monitoring = new Monitoring {
LogBucket = bucket,
Logging = false,
LogGroup = logGroup,
LogStreamNamePrefix = "logStreamNamePrefix",
PersistentAppUI = false
},
Outputs = outputs,
QueryLanguage = QueryLanguage.JSON_PATH,
StateName = "stateName",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
},
TaskTimeout = timeout,
Timeout = Duration.Minutes(30)
};
Synopsis
Constructors
Emr |
Properties
Application |
The configurations for the application running in the job run. |
Assign | Workflow variables to store in this step. |
Comment | A comment describing this state. |
Credentials | Credentials for an IAM Role that the State Machine assumes for executing the task. |
Execution |
The execution role for the job run. |
Heartbeat | (deprecated) Timeout for the heartbeat. |
Heartbeat |
Timeout for the heartbeat. |
Integration |
AWS Step Functions integrates with services directly in the Amazon States Language. |
Job |
The job driver for the job run. |
Job |
The name of the job run. |
Monitoring | Configuration for monitoring the job run. |
Outputs | Used to specify and transform output from the state. |
Query |
The name of the query language used by the state. |
Release |
The Amazon EMR release version to use for the job run. |
State |
Optional name for this state. |
Tags | The tags assigned to job runs. |
Task |
Timeout for the task. |
Timeout | (deprecated) Timeout for the task. |
Virtual |
The ID of the virtual cluster where the job will be run. |
Constructors
EmrContainersStartJobRunJsonataProps()
public EmrContainersStartJobRunJsonataProps()
Properties
ApplicationConfig
The configurations for the application running in the job run.
public IApplicationConfiguration[] ApplicationConfig { get; set; }
Property Value
Remarks
Maximum of 100 items
Default: - No application config
See: https://docs.aws.amazon.com/emr-on-eks/latest/APIReference/API_Configuration.html
Assign
Workflow variables to store in this step.
public IDictionary<string, object> Assign { get; set; }
Property Value
System.
Remarks
Using workflow variables, you can store data in a step and retrieve that data in future steps.
Default: - Not assign variables
See: https://docs.aws.amazon.com/step-functions/latest/dg/workflow-variables.html
Comment
A comment describing this state.
public string Comment { get; set; }
Property Value
System.
Remarks
Default: No comment
Credentials
Credentials for an IAM Role that the State Machine assumes for executing the task.
public ICredentials Credentials { get; set; }
Property Value
Remarks
This enables cross-account resource invocations.
Default: - None (Task is executed using the State Machine's execution role)
See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html
ExecutionRole
The execution role for the job run.
public IRole ExecutionRole { get; set; }
Property Value
Remarks
If virtualClusterId
is from a JSON input path, an execution role must be provided.
If an execution role is provided, follow the documentation to update the role trust policy.
Default: - Automatically generated only when the provided virtualClusterId
is not an encoded JSON path
See: https://docs.aws.amazon.com/emr/latest/EMR-on-EKS-DevelopmentGuide/setting-up-trust-policy.html
Heartbeat
(deprecated) Timeout for the heartbeat.
public Duration Heartbeat { get; set; }
Property Value
Remarks
Default: - None
Stability: Deprecated
HeartbeatTimeout
Timeout for the heartbeat.
public Timeout HeartbeatTimeout { get; set; }
Property Value
Remarks
[disable-awslint:duration-prop-type] is needed because all props interface in aws-stepfunctions-tasks extend this interface
Default: - None
IntegrationPattern
AWS Step Functions integrates with services directly in the Amazon States Language.
public Nullable<IntegrationPattern> IntegrationPattern { get; set; }
Property Value
System.
Remarks
You can control these AWS services using service integration patterns.
Depending on the AWS Service, the Service Integration Pattern availability will vary.
Default: - IntegrationPattern.REQUEST_RESPONSE
for most tasks.
IntegrationPattern.RUN_JOB
for the following exceptions:
BatchSubmitJob
, EmrAddStep
, EmrCreateCluster
, EmrTerminationCluster
, and EmrContainersStartJobRun
.
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html
JobDriver
The job driver for the job run.
public IJobDriver JobDriver { get; set; }
Property Value
Remarks
JobName
The name of the job run.
public string JobName { get; set; }
Property Value
System.
Remarks
Default: - No job run name
Monitoring
Configuration for monitoring the job run.
public IMonitoring Monitoring { get; set; }
Property Value
Remarks
Default: - logging enabled and resources automatically generated if monitoring.logging
is set to true
See: https://docs.aws.amazon.com/emr-on-eks/latest/APIReference/API_MonitoringConfiguration.html
Outputs
Used to specify and transform output from the state.
public object Outputs { get; set; }
Property Value
System.
Remarks
When specified, the value overrides the state output default. The output field accepts any JSON value (object, array, string, number, boolean, null). Any string value, including those inside objects or arrays, will be evaluated as JSONata if surrounded by {% %} characters. Output also accepts a JSONata expression directly.
Default: - $states.result or $states.errorOutput
See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-input-output-filtering.html
QueryLanguage
The name of the query language used by the state.
public Nullable<QueryLanguage> QueryLanguage { get; set; }
Property Value
System.
Remarks
If the state does not contain a queryLanguage
field,
then it will use the query language specified in the top-level queryLanguage
field.
Default: - JSONPath
ReleaseLabel
The Amazon EMR release version to use for the job run.
public ReleaseLabel ReleaseLabel { get; set; }
Property Value
StateName
Optional name for this state.
public string StateName { get; set; }
Property Value
System.
Remarks
Default: - The construct ID will be used as state name
Tags
The tags assigned to job runs.
public IDictionary<string, string> Tags { get; set; }
Property Value
System.
Remarks
Default: - None
TaskTimeout
Timeout for the task.
public Timeout TaskTimeout { get; set; }
Property Value
Remarks
[disable-awslint:duration-prop-type] is needed because all props interface in aws-stepfunctions-tasks extend this interface
Default: - None
Timeout
(deprecated) Timeout for the task.
public Duration Timeout { get; set; }
Property Value
Remarks
Default: - None
Stability: Deprecated
VirtualCluster
The ID of the virtual cluster where the job will be run.
public VirtualClusterInput VirtualCluster { get; set; }
Property Value