MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / create_lambda_config

Method create_lambda_config

tests/runtime_tests.cpp:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

GetEnvFunction · 0.85

Tested by

no test coverage detected