AWS Lambda 정책 구성 참조
AWS Lambda 정책 구성 참조 (AWS Lambda Policy Configuration Reference)
이 문서는 Kong에서 AWS Lambda 정책을 구성할 때 지정할 수 있는 설정 필드들을 JSON 스키마 형태로 정리한 참조 자료예요. 함수 이름이나 AWS 리전, STS 엔드포인트 같은 연결 설정부터 원본 요청의 메서드와 헤더 전달 여부, 빈 배열 응답 처리 방식 같은 동작 옵션까지 각 필드의 타입과 기본값을 한눈에 확인할 수 있어요. AWS Lambda와 Kong을 연동하는 정책을 작성하거나 조정할 때 어떤 옵션이 어떤 역할을 하는지 궁금하면 여기서 바로 찾아보면 좋아요
출처: 문서
본문
{
"properties": {
"config": {
"type": "object",
"properties": {
"aws_role_session_name": {
"type": "string",
"description": "The identifier of the assumed role session.",
"default": "kong"
},
"qualifier": {
"type": "string",
"description": "The qualifier to use when invoking the function."
},
"forward_request_method": {
"type": "boolean",
"description": "An optional value that defines whether the original HTTP request method verb is sent in the request_method field of the JSON-encoded request.",
"default": false
},
"aws_sts_endpoint_url": {
"type": "string",
"description": "A string representing a URL, such as https://example.com/path/to/resource?q=search."
},
"function_name": {
"type": "string",
"description": "The AWS Lambda function to invoke. Both function name and function ARN (including partial) are supported."
},
"forward_request_headers": {
"type": "boolean",
"description": "An optional value that defines whether the original HTTP request headers are sent as a map in the request_headers field of the JSON-encoded request.",
"default": false
},
"skip_large_bodies": {
"type": "boolean",
"description": "An optional value that defines whether Kong should send large bodies that are buffered to disk",
"default": true
},
"aws_imds_protocol_version": {
"type": "string",
"enum": [
"v1",
"v2"
],
"description": "Identifier to select the IMDS protocol version to use: `v1` or `v2`.",
"default": "v1"
},
"aws_region": {
"type": "string",
"description": "A string representing a host name, such as example.com."
},
"is_proxy_integration": {
"type": "boolean",
"description": "An optional value that defines whether the response format to receive from the Lambda to this format.",
"default": false
},
"awsgateway_compatible": {
"type": "boolean",
"description": "An optional value that defines whether the policy should wrap requests into the Amazon API gateway.",
"default": false
},
"empty_arrays_mode": {
"type": "string",
"enum": [
"correct",
"legacy"
],
"description": "An optional value that defines whether Kong should send empty arrays (returned by Lambda function) as `[]` arrays or `{}` objects in JSON responses. The value `legacy` means Kong will send empty arrays as `{}` objects in response",
"default": "legacy"
},
"keepalive": {
"type": "number",
"description": "An optional value in milliseconds that defines how long an idle connection lives before being closed.",
"default": 60000
},
"aws_assume_role_arn": {
"type": "string",
"description": "The target AWS IAM role ARN used to invoke the Lambda function.",
"x-referenceable": true,
"x-encrypted": true
},
"invocation_type": {
"type": "string",
"enum": [
"DryRun",
"Event",
"RequestResponse"
],
"description": "The InvocationType to use when invoking the function. Available types are RequestResponse, Event, DryRun.",
"default": "RequestResponse"
},
"host": {
"type": "string",
"description": "A string representing a host name, such as example.com."
},
"base64_encode_body": {
"type": "boolean",
"description": "An optional value that Base64-encodes the request body.",
"default": true
},
"aws_key": {
"type": "string",
"description": "The AWS key credential to be used when invoking the function.",
"x-referenceable": true,
"x-encrypted": true
},
"unhandled_status": {
"type": "integer",
"maximum": 999,
"minimum": 100,
"description": "The response status code to use (instead of the default 200, 202, or 204) in the case of an Unhandled Function Error."
},
"forward_request_body": {
"type": "boolean",
"description": "An optional value that defines whether the request body is sent in the request_body field of the JSON-encoded request. If the body arguments can be parsed, they are sent in the separate request_body_args field of the request. ",
"default": false
},
"aws_secret": {
"type": "string",
"description": "The AWS secret credential to be used when invoking the function. ",
"x-referenceable": true,
"x-encrypted": true
},
"log_type": {
"type": "string",
"enum": [
"None",
"Tail"
],
"description": "The LogType to use when invoking the function. By default, None and Tail are supported.",
"default": "Tail"
},
"disable_https": {
"type": "boolean",
"default": false
},
"awsgateway_compatible_payload_version": {
"type": "string",
"enum": [
"1.0",
"2.0"
],
"description": "An optional value that defines which version will be used to generate the AWS API Gateway compatible payload. The default will be `1.0`.",
"default": "1.0"
},
"proxy_url": {
"type": "string",
"description": "A string representing a URL, such as https://example.com/path/to/resource?q=search."
},
"port": {
"type": "integer",
"maximum": 65535,
"minimum": 0,
"description": "An integer representing a port number between 0 and 65535, inclusive.",
"default": 443
},
"ssl_verify": {
"type": "boolean",
"description": "Set to `true` to verify the TLS certificate when connecting to AWS services.",
"default": true
},
"forward_request_uri": {
"type": "boolean",
"description": "An optional value that defines whether the original HTTP request URI is sent in the request_uri field of the JSON-encoded request.",
"default": false
},
"timeout": {
"type": "number",
"description": "An optional timeout in milliseconds when invoking the function.",
"default": 60000
}
}
}
}
}
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.