# Lambda 함수

## 리소스 유형

`AWS.Lambda.Function`

## 리소스 ID 형식

Lambda 함수의 경우 리소스 ID는 ARN입니다.

`arn:aws:lambda:us-west-2:123456789012:function:example-function`

## 배경

AWS Lambda는 서버를 프로비저닝하거나 관리하지 않고도 코드를 실행할 수 있게 해주는 컴퓨팅 서비스입니다.

## 필드

| 필드    | 유형    | 설명                                                            |
| ----- | ----- | ------------------------------------------------------------- |
| `정책`  | `맵`   | 다음 항목을 포함하는 매핑 `정책` (리소스 기반 정책) 및 `RevisionId` (정책의 현재 개정판) 키 |
| `환경`  | `맵`   | 함수의 환경 변수와 오류 상태                                              |
| `런타임` | `문자열` | 예를 들어 함수의 런타임 환경인 `go1.x` 또는 `python3.x`                      |

## 예시

```javascript
{
    "AccountId": "123456789012",
    "Arn": "arn:aws:lambda:us-west-2:123456789012:function:example-function",
    "CodeSha256": "1234=",
    "CodeSize": 10000,
    "DeadLetterConfig": null,
    "Description": "이것은 예제 Lambda 함수입니다",
    "Environment": {
        "Error": null,
        "Variables": {
            "DEBUG": "False",
            "VAR1": "Var1Value"
        }
    },
    "Handler": "handler",
    "KMSKeyArn": null,
    "LastModified": "2019-01-01T00:00:00.000+0000",
    "Layers": null,
    "MasterArn": null,
    "MemorySize": 256,
    "Name": "example-function",
    "Policy": {
        "Policy": "{\"Policy\": \"{\"Version\":\"2012-10-17\",\"Id\":\"default\",\"Statement\":[{\"Sid\":\"sns\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"sns.amazonaws.com\"},\"Action\":\"lambda:InvokeFunction\",\"Resource\":\"arn:aws:lambda:us-west-2:123456789012:function:example-function\"}]}",
        "RevisionId": "abcdefg-1234567890-abcdefg"
    },
    "Region": "us-west-2",
    "ResourceId": "arn:aws:lambda:us-west-2:123456789012:function:example-function",
    "ResourceType": "AWS.Lambda.Function",
    "RevisionId": "1",
    "Role": "arn:aws:iam::123456789012:role/example-function-role",
    "Runtime": "go1.x",
    "Tags": {
        "Key1": "Value1",
        "Key2": "Value2"
    },
    "TimeCreated": null,
    "Timeout": 60,
    "TracingConfig": {
        "Mode": "PassThrough"
    },
    "Version": "$LATEST",
    "VpcConfig": null
}
```


---

# Agent Instructions: 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:

```
GET https://docs.panther.com/ko/cloud-scanning/cloud-resource-attributes/aws/lambda-function.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
