<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
# Serverless Cold Start Security — API Reference

## AWS Lambda API

```bash
aws lambda list-functions --output json
aws lambda get-function-configuration --function-name NAME
aws lambda list-layers --output json
aws lambda get-layer-version-policy --layer-name NAME --version-number VER
aws lambda get-code-signing-config --code-signing-config-arn ARN
aws lambda get-policy --function-name NAME
```

## CloudWatch Insights Queries

```
filter @type = "REPORT" | stats count(@initDuration) as coldStarts by bin(1h)
filter @type = "REPORT" | filter @initDuration > 5000
```

## GCP Cloud Functions API

```bash
gcloud functions list --format=json
gcloud functions describe FUNC --region REGION
gcloud functions get-iam-policy FUNC --region REGION
```
