Skip to content
v2.278.0

JobActionOptions Struct ​

Options for the execution of a job.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_glue as glue } from 'aws-cdk-lib';

declare const securityConfiguration: glue.SecurityConfiguration;
const jobActionOptions: glue.JobActionOptions = {
  arguments: {
    argumentsKey: 'arguments',
  },
  securityConfiguration: securityConfiguration,
  timeout: cdk.Duration.minutes(30),
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_glue as glue

# security_configuration: glue.SecurityConfiguration

job_action_options = glue.JobActionOptions(
    arguments={
        "arguments_key": "arguments"
    },
    security_configuration=security_configuration,
    timeout=cdk.Duration.minutes(30)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.glue.*;

SecurityConfiguration securityConfiguration;

JobActionOptions jobActionOptions = JobActionOptions.builder()
        .arguments(Map.of(
                "argumentsKey", "arguments"))
        .securityConfiguration(securityConfiguration)
        .timeout(Duration.minutes(30))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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.Glue;

SecurityConfiguration securityConfiguration;

var jobActionOptions = new JobActionOptions {
    Arguments = new Dictionary<string, string> {
        { "argumentsKey", "arguments" }
    },
    SecurityConfiguration = securityConfiguration,
    Timeout = Duration.Minutes(30)
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var securityConfiguration SecurityConfiguration

jobActionOptions := &JobActionOptions{
	Arguments: map[string]*string{
		"argumentsKey": jsii.String("arguments"),
	},
	SecurityConfiguration: securityConfiguration,
	Timeout: cdk.Duration_Minutes(jsii.Number(30)),
}

Properties ​

argumentsoptional{ [key: string]: string }argumentsoptionaltyping.Mapping[str, str]argumentsoptionalMap<String, String>ArgumentsoptionalIDictionary<string, string>Argumentsoptional*map[string]*string #
The arguments used when this trigger fires.

Default: no arguments are passed to the job

securityConfigurationoptionalISecurityConfigurationsecurity_configurationoptionalISecurityConfigurationsecurityConfigurationoptionalISecurityConfigurationSecurityConfigurationoptionalISecurityConfigurationSecurityConfigurationoptionalISecurityConfiguration #
The `SecurityConfiguration` to be used with this action.

Default: no security configuration is used

timeoutoptionalDurationtimeoutoptionalDurationtimeoutoptionalDurationTimeoutoptionalDurationTimeoutoptionalDuration #
The run timeout.

Default: the default timeout value set in the job definition

This is the maximum time that a run can consume resources before it is terminated and enters TIMEOUT status.