API Gateway
| 0 円/月 |
お金に困っているため、邪魔な場所に広告を置いています。お目汚し。
リクエスト数
API Gatewayへ送信されるリクエストの数を入力してください。
データ転送量
API Gatewayから送信されるデータ転送量をGB単位で入力してください。
キャッシュ
キャッシュを使用する場合は、サイズを選択してください。
- 東京リージョン
- ひと月は30.5日
- 145.075円/ドル(毎朝10時更新)
API Gatewayについてざっくり
APIのエンドポイントを作成できるやつ。
バックエンドにはEC2やLambdaなどを設定できるほか、マッピングテンプレートを使用してモックもできます。最近、WebSocketもサポートされました。
API Gatewayの料金計算式をざっくり
function calc(row, priceList) {
const request = toNumber(row.request)
const transfer = toNumber(row.transfer)
let total = 0
if (request) {
total += calcInRange(request, priceList.apigateway.request.priceRange)
}
if (row.cache) {
const cacheMemory = parseCacheMemory(row.cache, priceList.apigateway.cache)
if (cacheMemory) {
total += cacheMemory.price * MONTHLY_HOURS
}
}
if (transfer) {
total += calcInRange(transfer, priceList.transfer.out.priceRange)
}
return total
}