Fact
- class aws_cdk.region_info.Fact(*args: Any, **kwargs)
Bases:
object
A database of regional information.
- ExampleMetadata:
infused
Example:
@jsii.implements(region_info.IFact) class MyFact: region_info.Fact.register(MyFact())
Attributes
- names = ['partition', 'domainSuffix', 'cdk:metadata-resource:available', 'aws:is-opt-in-region', 's3-static-website:endpoint', 's3-static-website:route-53-hosted-zone-id', 'ebs-environment:route-53-hosted-zone-id', 'elbv2Account', 'appMeshRepositoryAccount', 'samlSignOnUrl', 'latestNodeRuntime', 'firehoseCidrBlock', 'vpcEndpointServiceNamePrefix', 'cloudwatch-lambda-insights-version:1_0_333_0_arm64', 'cloudwatch-lambda-insights-version:1_0_333_0_x86_64', 'cloudwatch-lambda-insights-version:1_0_317_0_arm64', 'cloudwatch-lambda-insights-version:1_0_317_0_x86_64', 'cloudwatch-lambda-insights-version:1_0_295_0_arm64', 'cloudwatch-lambda-insights-version:1_0_295_0_x86_64', 'cloudwatch-lambda-insights-version:1_0_275_0_arm64', 'cloudwatch-lambda-insights-version:1_0_275_0_x86_64', 'cloudwatch-lambda-insights-version:1_0_273_0_arm64', 'cloudwatch-lambda-insights-version:1_0_273_0_x86_64', 'cloudwatch-lambda-insights-version:1_0_229_0_arm64', 'cloudwatch-lambda-insights-version:1_0_229_0_x86_64', 'cloudwatch-lambda-insights-version:1_0_178_0_x86_64', 'cloudwatch-lambda-insights-version:1_0_143_0_x86_64', 'cloudwatch-lambda-insights-version:1_0_135_0_x86_64', 'cloudwatch-lambda-insights-version:1_0_119_0_x86_64', 'cloudwatch-lambda-insights-version:1_0_98_0_x86_64', 'appconfig-lambda-layer:2_0_181_arm64', 'appconfig-lambda-layer:2_0_181_x86_64', 'appconfig-lambda-layer:2_0_165_x86_64', 'appconfig-lambda-layer:2_0_122_x86_64', 'appconfig-lambda-layer:2_0_58_x86_64', 'appconfig-lambda-layer:2_0_45_x86_64', 'appconfig-lambda-layer:2_0_30_x86_64', 'adot-lambda-layer:JAVA_SDK_1_30_0_x86_64', 'adot-lambda-layer:JAVA_SDK_1_30_0_arm64', 'adot-lambda-layer:JAVA_SDK_1_28_1_x86_64', 'adot-lambda-layer:JAVA_SDK_1_28_1_arm64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_30_0_x86_64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_30_0_arm64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_28_1_x86_64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_28_1_arm64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_16_0_x86_64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_16_0_arm64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_15_0-1_x86_64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_15_0-1_arm64', 'adot-lambda-layer:PYTHON_SDK_1_20_0_x86_64', 'adot-lambda-layer:PYTHON_SDK_1_20_0_arm64', 'adot-lambda-layer:PYTHON_SDK_1_19_0-1_x86_64', 'adot-lambda-layer:PYTHON_SDK_1_19_0-1_arm64', 'adot-lambda-layer:GENERIC_0_84_0_x86_64', 'adot-lambda-layer:GENERIC_0_84_0_arm64', 'adot-lambda-layer:GENERIC_0_82_0_x86_64', 'adot-lambda-layer:GENERIC_0_82_0_arm64', 'params-and-secrets-layer:1_0_103_x86_64', 'params-and-secrets-layer:1_0_103_arm64', 'dlcRepositoryAccount', 'cloudwatch-lambda-insights-version:1_0_135_0_arm64', 'cloudwatch-lambda-insights-version:1_0_119_0_arm64', 'cloudwatch-lambda-insights-version:1_0_89_0_x86_64', 'cloudwatch-lambda-insights-version:1_0_86_0_x86_64', 'cloudwatch-lambda-insights-version:1_0_54_0_x86_64', 'appconfig-lambda-layer:2_0_165_arm64', 'appconfig-lambda-layer:2_0_122_arm64', 'appconfig-lambda-layer:2_0_58_arm64', 'appconfig-lambda-layer:2_0_45_arm64', 'adot-lambda-layer:JAVA_SDK_1_32_0_x86_64', 'adot-lambda-layer:JAVA_SDK_1_32_0_arm64', 'adot-lambda-layer:JAVA_SDK_1_31_0_x86_64', 'adot-lambda-layer:JAVA_SDK_1_31_0_arm64', 'adot-lambda-layer:JAVA_SDK_1_28_0_x86_64', 'adot-lambda-layer:JAVA_SDK_1_28_0_arm64', 'adot-lambda-layer:JAVA_SDK_1_26_0_x86_64', 'adot-lambda-layer:JAVA_SDK_1_26_0_arm64', 'adot-lambda-layer:JAVA_SDK_1_24_0_x86_64', 'adot-lambda-layer:JAVA_SDK_1_24_0_arm64', 'adot-lambda-layer:JAVA_SDK_1_23_0_x86_64', 'adot-lambda-layer:JAVA_SDK_1_23_0_arm64', 'adot-lambda-layer:JAVA_SDK_1_21_1_x86_64', 'adot-lambda-layer:JAVA_SDK_1_21_1_arm64', 'adot-lambda-layer:JAVA_SDK_1_21_0_x86_64', 'adot-lambda-layer:JAVA_SDK_1_21_0_arm64', 'adot-lambda-layer:JAVA_SDK_1_19_0_x86_64', 'adot-lambda-layer:JAVA_SDK_1_19_0_arm64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_32_0_x86_64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_32_0_arm64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_31_0_x86_64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_31_0_arm64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_28_0_x86_64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_28_0_arm64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_26_0_x86_64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_26_0_arm64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_24_0_x86_64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_24_0_arm64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_23_0_x86_64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_23_0_arm64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_21_1_x86_64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_21_1_arm64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_21_0_x86_64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_21_0_arm64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_19_2_x86_64', 'adot-lambda-layer:JAVA_AUTO_INSTRUMENTATION_1_19_2_arm64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_18_1_x86_64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_18_1_arm64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_17_1_x86_64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_17_1_arm64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_15_0_x86_64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_15_0_arm64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_13_0_x86_64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_13_0_arm64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_12_0_x86_64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_12_0_arm64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_9_1_x86_64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_9_1_arm64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_8_0_x86_64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_8_0_arm64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_7_0_x86_64', 'adot-lambda-layer:JAVASCRIPT_SDK_1_7_0_arm64', 'adot-lambda-layer:PYTHON_SDK_1_25_0_x86_64', 'adot-lambda-layer:PYTHON_SDK_1_25_0_arm64', 'adot-lambda-layer:PYTHON_SDK_1_24_0_x86_64', 'adot-lambda-layer:PYTHON_SDK_1_24_0_arm64', 'adot-lambda-layer:PYTHON_SDK_1_21_0_x86_64', 'adot-lambda-layer:PYTHON_SDK_1_21_0_arm64', 'adot-lambda-layer:PYTHON_SDK_1_20_0-1_x86_64', 'adot-lambda-layer:PYTHON_SDK_1_20_0-1_arm64', 'adot-lambda-layer:PYTHON_SDK_1_19_0_x86_64', 'adot-lambda-layer:PYTHON_SDK_1_19_0_arm64', 'adot-lambda-layer:PYTHON_SDK_1_18_0_x86_64', 'adot-lambda-layer:PYTHON_SDK_1_18_0_arm64', 'adot-lambda-layer:PYTHON_SDK_1_17_0_x86_64', 'adot-lambda-layer:PYTHON_SDK_1_17_0_arm64', 'adot-lambda-layer:PYTHON_SDK_1_16_0_x86_64', 'adot-lambda-layer:PYTHON_SDK_1_16_0_arm64', 'adot-lambda-layer:PYTHON_SDK_1_15_0_x86_64', 'adot-lambda-layer:PYTHON_SDK_1_15_0_arm64', 'adot-lambda-layer:PYTHON_SDK_1_13_0_x86_64', 'adot-lambda-layer:PYTHON_SDK_1_13_0_arm64', 'adot-lambda-layer:GENERIC_0_102_1_x86_64', 'adot-lambda-layer:GENERIC_0_102_1_arm64', 'adot-lambda-layer:GENERIC_0_98_0_x86_64', 'adot-lambda-layer:GENERIC_0_98_0_arm64', 'adot-lambda-layer:GENERIC_0_90_1_x86_64', 'adot-lambda-layer:GENERIC_0_90_1_arm64', 'adot-lambda-layer:GENERIC_0_88_0_x86_64', 'adot-lambda-layer:GENERIC_0_88_0_arm64', 'adot-lambda-layer:GENERIC_0_80_0_x86_64', 'adot-lambda-layer:GENERIC_0_80_0_arm64', 'adot-lambda-layer:GENERIC_0_78_2_x86_64', 'adot-lambda-layer:GENERIC_0_78_2_arm64', 'adot-lambda-layer:GENERIC_0_74_0_x86_64', 'adot-lambda-layer:GENERIC_0_74_0_arm64', 'adot-lambda-layer:GENERIC_0_72_0_x86_64', 'adot-lambda-layer:GENERIC_0_72_0_arm64', 'adot-lambda-layer:GENERIC_0_70_0_x86_64', 'adot-lambda-layer:GENERIC_0_70_0_arm64', 'adot-lambda-layer:GENERIC_0_68_0_x86_64', 'adot-lambda-layer:GENERIC_0_68_0_arm64', 'adot-lambda-layer:GENERIC_0_62_1_x86_64', 'adot-lambda-layer:GENERIC_0_62_1_arm64']
- regions = ['af-south-1', 'ap-east-1', 'ap-northeast-1', 'ap-northeast-2', 'ap-northeast-3', 'ap-south-1', 'ap-south-2', 'ap-southeast-1', 'ap-southeast-2', 'ap-southeast-3', 'ap-southeast-4', 'ap-southeast-5', 'ap-southeast-7', 'ca-central-1', 'ca-west-1', 'cn-north-1', 'cn-northwest-1', 'eu-central-1', 'eu-central-2', 'eu-isoe-west-1', 'eu-north-1', 'eu-south-1', 'eu-south-2', 'eu-west-1', 'eu-west-2', 'eu-west-3', 'il-central-1', 'me-central-1', 'me-south-1', 'mx-central-1', 'sa-east-1', 'us-east-1', 'us-east-2', 'us-gov-east-1', 'us-gov-west-1', 'us-iso-east-1', 'us-iso-west-1', 'us-isob-east-1', 'us-west-1', 'us-west-2']
Static Methods
- classmethod defined_facts()
Return all pairs of (region, factName) that are defined.
- Return type:
List
[List
[str
]]
- classmethod find(region, name)
Retrieves a fact from this Fact database.
- Parameters:
region (
str
) – the name of the region (e.g:us-east-1
).name (
str
) – the name of the fact being looked up (see theFactName
class for details).
- Return type:
Optional
[str
]- Returns:
the fact value if it is known, and
undefined
otherwise.
- classmethod register(fact, allow_replacing=None)
Registers a new fact in this Fact database.
- Parameters:
fact (
IFact
) – the new fact to be registered.allow_replacing (
Optional
[bool
]) – whether new facts can replace existing facts or not.
- Return type:
None
- classmethod require_fact(region, name)
Retrieve a fact from the Fact database.
(retrieval will fail if the specified region or fact name does not exist.)
- Parameters:
region (
str
) – the name of the region (e.g:us-east-1
).name (
str
) – the name of the fact being looked up (see theFactName
class for details).
- Return type:
str
- classmethod unregister(region, name, value=None)
Removes a fact from the database.
- Parameters:
region (
str
) – the region for which the fact is to be removed.name (
str
) – the name of the fact to remove.value (
Optional
[str
]) – the value that should be removed (removal will fail if the value is specified, but does not match the current stored value).
- Return type:
None