Action

class aws_cdk.aws_glue_alpha.Action(*, arguments=None, crawler=None, job=None, security_configuration=None, timeout=None)

Bases: object

(experimental) Represents a trigger action.

Parameters:
  • arguments (Optional[Mapping[str, str]]) – (experimental) The job arguments used when this trigger fires. Default: - no arguments are passed to the job

  • crawler (Optional[CfnCrawler]) – (experimental) The name of the crawler to be used with this action. Default: - no crawler is used

  • job (Optional[IJob]) – (experimental) The job to be executed. Default: - no job is executed

  • security_configuration (Optional[ISecurityConfiguration]) – (experimental) The SecurityConfiguration to be used with this action. Default: - no security configuration is used

  • timeout (Optional[Duration]) – (experimental) The job run timeout. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. Default: - the default timeout value set in the job definition

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_glue_alpha as glue_alpha
import aws_cdk as cdk
from aws_cdk import aws_glue as glue

# cfn_crawler: glue.CfnCrawler
# job: glue_alpha.Job
# security_configuration: glue_alpha.SecurityConfiguration

action = glue_alpha.Action(
    arguments={
        "arguments_key": "arguments"
    },
    crawler=cfn_crawler,
    job=job,
    security_configuration=security_configuration,
    timeout=cdk.Duration.minutes(30)
)

Attributes

arguments

(experimental) The job arguments used when this trigger fires.

Default:
  • no arguments are passed to the job

Stability:

experimental

crawler

(experimental) The name of the crawler to be used with this action.

Default:
  • no crawler is used

Stability:

experimental

job

(experimental) The job to be executed.

Default:
  • no job is executed

Stability:

experimental

security_configuration

(experimental) The SecurityConfiguration to be used with this action.

Default:
  • no security configuration is used

Stability:

experimental

timeout

(experimental) The job run timeout.

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

Default:
  • the default timeout value set in the job definition

Stability:

experimental