class Aws::Partitions::EndpointProvider
def build_is_global_fn(sts_regional_endpoints='regional')
returns a callable that takes a region
def build_is_global_fn(sts_regional_endpoints='regional') lambda do |service, region, endpoints, service_cfg| # Check for sts legacy behavior sts_legacy = service == 'sts' && sts_regional_endpoints == 'legacy' && STS_LEGACY_REGIONS.include?(region) is_global = !endpoints.key?(region) && service_cfg['isRegionalized'] == false sts_legacy || is_global end end