> 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/data-types/function-configure.md).

# FunctionConfigure 类型

## 简要

包含无服务器云函数配置的字典类型。

```
{
    'handler': 'index.main',
    'memory_size': 128,
    'time_out': 3,
    'vpc_configure': {
        'vpc_id': ...,
        'subnet_id': ...
    },
    'role_id': 'SCF_QcsRole',
    'log_configure': {
        'logset_id': ...,
        'topic_id': ...
    },
    'environments': {
        'NAME': 'serverless',
        'VALUE': 'cloud-function'
    },
    'eip_configure': {
        'enabled': True,
        'addresses': [
            ...
        ]
    },
    'access_configure': {
        'hostname': ...,
        'ip_address': ...
    },
    'layers': [
        ...
    ],
    'dead_letter': {
        'type': '...',
        'name': '...'
    }
}
```

## 成员

该数据类型包含的成员和成员描述如下：

| 成员                            | 类型          | 必选 | 描述                                                                                                                                               |
| ----------------------------- | ----------- | -- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| handler                       | str         | 否  | 无服务器云函数的入口函数符号名。                                                                                                                                 |
| memory\_size                  | int         | 否  | 无服务器云函数的运行时内存上限（MBytes）。                                                                                                                         |
| time\_out                     | int         | 否  | 无服务器云函数的运行时长上限（秒）。                                                                                                                               |
| vpc\_configure                | dict        | 否  | 无服务器云函数的内网访问配置字典实例。                                                                                                                              |
| vpc\_configure.vpc\_id        | str         | 是  | 无服务器云函数运行时所在私有网络 ID。                                                                                                                             |
| vpc\_configure.subnet\_id     | str         | 是  | 无服务器云函数运行时所在私有网络的子网 ID。                                                                                                                          |
| role\_id                      | str         | 否  | 无服务器云函数的运行角色 ID。                                                                                                                                 |
| log\_configure                | dict        | 否  | 无服务器云函数的日志服务配置字典实例。                                                                                                                              |
| log\_configure.logset\_id     | str         | 是  | 存储无服务器云函数日志的日志集 ID。                                                                                                                              |
| log\_configure.topic\_id      | str         | 是  | 存储无服务器云函数日志的日志主题 ID。                                                                                                                             |
| environments                  | dict        | 否  | 无服务器云函数运行时环境变量字典实例。                                                                                                                              |
| eip\_configure                | dict        | 否  | 包含无服务器云函数弹性公网 IP 配置的字典实例。                                                                                                                        |
| eip\_configure.enabled        | bool        | 是  | 是否启用无服务器云函数公网访问时固定弹性公网 IP 功能。                                                                                                                    |
| eip\_configure.addresses      | list\<str>  | 是  | 包含无服务器云函数公网访问弹性公网 IP 的列表实例。                                                                                                                      |
| access\_configure             | dict        | 否  | 包含无服务器云函数 HTTP 访问端点配置的字典实例。                                                                                                                      |
| access\_configure.hostname    | str         | 是  | 无服务器云函数 HTTP 访问端点主机名。                                                                                                                            |
| access\_configure.ip\_address | str         | 是  | 无服务器云函数 HTTP 访问主机的 VIP 地址。                                                                                                                       |
| layers                        | list\<dict> | 否  | 包含无服务器云函数已关联层信息的列表实例，其成员的数据类型为 [LayerInfo](https://smallso.gitbook.io/tencent-cloud-sdk/python-docs/serverless-functions/data-types/layer-info)。 |
| dead\_letter                  | dict        | 否  | 包含无服务器云函数死信队列配置的字典实例。                                                                                                                            |
| dead\_letter.type             | str         | 是  | 无服务器云函数死信队列类型。                                                                                                                                   |
| dead\_letter.name             | str         | 是  | 无服务器云函数死信队列名称。                                                                                                                                   |

## 适用于

#### Tencent Cloud SDK for Python

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://smallso.gitbook.io/tencent-cloud-sdk/python-docs/serverless-functions/data-types/function-configure.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
