激活和停用触发器 - Amazon Glue
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

激活和停用触发器

您可以使用 Amazon Glue 控制台、 Amazon Command Line Interface (Amazon CLI) 或 Amazon Glue API 激活或停用触发器。

注意

目前, Amazon Glue 控制台在使用触发器时仅支持作业,而不支持爬网程序。您可以使用 Amazon CLI 或 Amazon Glue API 来配置同时支持作业和爬网程序的触发器。

激活或停用触发器(控制台)
  1. 登录 Amazon Web Services Management Console,然后打开 Amazon Glue 控制台,网址为:https://console.aws.amazon.com/glue/

  2. 在导航窗格中,于 ETL 下,选择 Triggers (触发器)

  3. 选中所需触发器旁边的复选框,然后在 Action (操作) 菜单上选择 Enable trigger (启用触发器) 以激活触发器,或选择 Disable trigger (禁用触发器) 以停用触发器。

激活或停用触发器 (Amazon CLI)
  • 输入下列命令之一。

    aws glue start-trigger --name MyTrigger aws glue stop-trigger --name MyTrigger

    启动触发器会激活触发器,停止触发器会停用触发器。当您激活按需触发器时,它会立即触发。

有关更多信息,请参阅Amazon Glue 触发器