> For the complete documentation index, see [llms.txt](https://smallso.gitbook.io/tencent-cloud-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smallso.gitbook.io/tencent-cloud-sdk/python-docs/serverless-functions/class-and-method/function-trigger/get-trigger-kind.md).

# get\_trigger\_kind 方法

## 简要

获取触发器种类，该方法通常用于确定当前配置的触发器类型。

```python
def get_trigger_kind(self) -> str
```

## 参数

该方法没有参数。

## 返回值

该方法返回触发器种类名称，与受支持的触发器种类名称相对应的是 [FunctionTriggerKind](https://smallso.gitbook.io/tencent-cloud-sdk/python-docs/serverless-functions/data-types/function-trigger-kind-enum) 枚举器。

## 异常

该方法不会主动引发任何异常。

## 示例

下面我们将通过一段 Python 代码向您演示如何使用该方法：

```python
functions.FunctionTrigger().get_trigger_kind()
```

## 适用于

#### Tencent Cloud SDK for Python

产品软件包：tencent-cloud-sdk-serverless-functions >= 0.1.1
