| 43 | } |
| 44 | |
| 45 | static Aws::Client::ClientConfiguration create_lambda_config() |
| 46 | { |
| 47 | Aws::Client::ClientConfiguration config; |
| 48 | config.requestTimeoutMs = REQUEST_TIMEOUT; |
| 49 | config.region = Aws::Environment::GetEnv("AWS_REGION"); |
| 50 | if (config.region.empty()) { |
| 51 | throw std::invalid_argument("environment variable AWS_REGION not set"); |
| 52 | } |
| 53 | return config; |
| 54 | } |
| 55 | |
| 56 | static Aws::String build_resource_name(Aws::String const& name) |
| 57 | { |