AWS API 网关集成 Kinesis 的 URI。
示例代码:
"Type": "AWS::ApiGateway::Method",
"Properties": {
"RestApiId": "STRING",
"ResourceId": "STRING",
"HttpMethod": "POST",
"AuthorizationType": "NONE",
"Integration": {
"Type": "AWS",
"IntegrationHttpMethod": "POST",
"Uri": "arn:aws:apigateway:REGION:kinesis:action/PutRecords",
"Credentials": "arn:aws:iam::ACCOUNT-ID:role/ROLE-NAME",
"RequestTemplates": {
"application/json": "#set($inputRoot = $input.path('$')){\"Records\": [#foreach($elem in $inputRoot) {\"Data\": \"$util.base64Encode($elem.data)\", \"PartitionKey\": \"$elem.partition_key\"}#if($foreach.hasNext),#end#end]}"
}
}
}