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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb

Overview

Note:

When making an API call, you may pass CreateTriggerRequest data as a 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:



1637
1638
1639
1640
1641
1642
1643
1644
1645
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 1637

class CreateTriggerRequest < Struct.new(
  :name,
  :type,
  :schedule,
  :predicate,
  :actions,
  :description)
  include Aws::Structure
end

#descriptionString

A description of the new trigger.

Returns:

  • (String)


1637
1638
1639
1640
1641
1642
1643
1644
1645
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 1637

class CreateTriggerRequest < Struct.new(
  :name,
  :type,
  :schedule,
  :predicate,
  :actions,
  :description)
  include Aws::Structure
end

#nameString

The name to assign to the new trigger.

Returns:

  • (String)


1637
1638
1639
1640
1641
1642
1643
1644
1645
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 1637

class CreateTriggerRequest < Struct.new(
  :name,
  :type,
  :schedule,
  :predicate,
  :actions,
  :description)
  include Aws::Structure
end

#predicateTypes::Predicate

A predicate to specify when the new trigger should fire.

Returns:



1637
1638
1639
1640
1641
1642
1643
1644
1645
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 1637

class CreateTriggerRequest < Struct.new(
  :name,
  :type,
  :schedule,
  :predicate,
  :actions,
  :description)
  include Aws::Structure
end

#scheduleString

A cron schedule expression for the new trigger.

Returns:

  • (String)


1637
1638
1639
1640
1641
1642
1643
1644
1645
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 1637

class CreateTriggerRequest < Struct.new(
  :name,
  :type,
  :schedule,
  :predicate,
  :actions,
  :description)
  include Aws::Structure
end

#typeString

The type of the new trigger.

Returns:

  • (String)


1637
1638
1639
1640
1641
1642
1643
1644
1645
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 1637

class CreateTriggerRequest < Struct.new(
  :name,
  :type,
  :schedule,
  :predicate,
  :actions,
  :description)
  include Aws::Structure
end