This topic describes how to create, update, and delete triggers in the Function Compute console.

Note API triggers are one-way integrated triggers and can be configured only in the event sources and cannot be modified in the Function Compute console. Therefore, triggers described in this topic do not include one-way integrated triggers.

Before you begin

Create a trigger

Notice You can create a maximum of 10 triggers for a single function.

Modify the configurations of a trigger

Note You cannot modify the configurations of existing MNS topic triggers and Tablestore triggers.
  1. Log on to the Function Compute console.
  2. In the left-side navigation pane, click Services and Functions.
  3. In the top navigation bar, select a region.
  4. Find the specified function in the specified service and click the name of the function.
  5. On the details page of the function, click the Triggers tab. On the Triggers tab, find the trigger that you want to manage and click Modify in the Actions column.
  6. In the Modify Trigger panel, modify the configurations of the trigger as required and click OK.
    Parameters that you can modify for different types of triggers:
    • Time trigger: You can modify the Trigger Mode, Interval, and Trigger Message parameters.
    • OSS trigger: You can modify the Object Prefix, Object Suffix, and Trigger Event parameters. In addition, you can create and select a new role.
    • Log Service trigger: You can modify the Trigger Interval, Retries, Trigger Log, and Invocation Parameters parameters. In addition, you can create and select a new role.
    • Alibaba Cloud CDN trigger: You can modify the Domain Name and Description parameters. In addition, you can create and select a new role.
    • HTTP trigger: You can modify the Authentication and Request Method parameters.
      Parameters:
      Parameter Description Example
      Authentication Specifies whether authentication is required and whether anonymous access is supported. Valid values:
      • Yes: Authentication is required, and anonymous access is not supported. In this case, security is high. For more information, see Signature authentication.
      • No: No authentication is required, and anonymous access is supported. In this case, security is low. All users can send HTTP requests to invoke the function.
      Yes
      Request Method The HTTP method that can be used to trigger the HTTP trigger.
      • GET
      • POST
    • MNS queue trigger: You can modify only the Queue Name and Invocation Method parameters.
    • Message Queue for Apache RocketMQ trigger: You can modify the Apache RocketMQ Instance, Topic, Tag, Group ID, Consumer Offset, and Invocation Method parameters.
    • Message Queue for RabbitMQ trigger: You can modify the RabbitMQ Instance, vhost, Queue, and Invocation Method parameters.
    • Message Queue for Apache Kafka trigger: You can modify the Kafka Instance, Topic, Group ID, Consumer Offset, Network Settings, and Invocation Method.
    • Alibaba Cloud event source trigger: In this example, an Elastic Compute Service (ECS) trigger is used. You can modify only the Event Type parameter.

You can also delete triggers that are no longer used as prompted.