Skip to content

GlueClient.create_trigger

rboto-glue==0.4.0 · Service index · Types

Model summary (excerpt): Creates a new trigger. Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Amazon Web Services Secrets Manager or other secret management mechanism if you intend to keep them within the Job.

Install and imports

python -m pip install "rboto[glue]==0.4.0"
from rboto import GlueClient
from collections.abc import Sequence
from rboto_glue.types import (
    Action,
    CreateTriggerOutput,
    EventBatchingCondition,
    Predicate,
    TriggerType,
)

Signature

async def create_trigger(
    *,
    name: str,
    type: TriggerType,
    actions: Sequence[Action],
    workflow_name: str | None = None,
    schedule: str | None = None,
    predicate: Predicate | None = None,
    description: str | None = None,
    start_on_creation: bool | None = None,
    tags: dict[str, str] | None = None,
    event_batching_condition: EventBatchingCondition | None = None,
) -> CreateTriggerOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
name Yes The name of the trigger.
type Yes The type of the new trigger.
actions Yes The actions initiated by this trigger when it fires.
workflow_name No The name of the workflow associated with the trigger.
schedule No 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 * * ? *) . This field is required when the trigger type is SCHEDULED.
predicate No A predicate to specify when the new trigger should fire. This field is required when the trigger type is CONDITIONAL .
description No A description of the new trigger.
start_on_creation No Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers.
tags No The tags to use with this trigger. You may use tags to limit access to the trigger. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.
event_batching_condition No Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.

Output

CreateTriggerOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
name str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

Action, CreateTriggerOutput, EventBatchingCondition, Predicate, TriggerType

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_glue.exceptions:

AlreadyExistsError, ConcurrentModificationError, EntityNotFoundError, IdempotentParameterMismatchError, InternalServiceError, InvalidInputError, OperationTimeoutError, ResourceNumberLimitExceededError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model