You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Glue::Types::CreateTriggerRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateTriggerRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  name: "NameString", # required
  type: "SCHEDULED", # required, accepts SCHEDULED, CONDITIONAL, ON_DEMAND
  schedule: "GenericString",
  predicate: {
    logical: "AND", # accepts AND
    conditions: [
      {
        logical_operator: "EQUALS", # accepts EQUALS
        job_name: "NameString",
        state: "STARTING", # accepts STARTING, RUNNING, STOPPING, STOPPED, SUCCEEDED, FAILED
      },
    ],
  },
  actions: [ # required
    {
      job_name: "NameString",
      arguments: {
        "GenericString" => "GenericString",
      },
    },
  ],
  description: "DescriptionString",
}

Instance Attribute Summary collapse

Instance Attribute Details

#actionsArray<Types::Action>

The actions initiated by this trigger when it fires.

Returns:

  • (Array<Types::Action>)

    The actions initiated by this trigger when it fires.

#descriptionString

A description of the new trigger.

Returns:

  • (String)

    A description of the new trigger.

#nameString

The name to assign to the new trigger.

Returns:

  • (String)

    The name to assign to the new trigger.

#predicateTypes::Predicate

A predicate to specify when the new trigger should fire.

Returns:

  • (Types::Predicate)

    A predicate to specify when the new trigger should fire.

#scheduleString

A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

Returns:

  • (String)

    A cron expression used to specify the schedule (see [Time-Based Schedules for Jobs and Crawlers][1]. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

#typeString

The type of the new trigger.

Possible values:

  • SCHEDULED
  • CONDITIONAL
  • ON_DEMAND

Returns:

  • (String)

    The type of the new trigger.