Default

class aws_cdk.region_info.Default(*args: Any, **kwargs)

Bases: object

Provides default values for certain regional information points.

Attributes

VPC_ENDPOINT_SERVICE_NAME_PREFIX = 'com.amazonaws.vpce'

Static Methods

classmethod service_principal(service_fqn, region, url_suffix)

Computes a “standard” AWS Service principal for a given service, region and suffix.

This is useful for example when you need to compute a service principal name, but you do not have a synthesize-time region literal available (so all you have is { "Ref": "AWS::Region" }). This way you get the same defaulting behavior that is normally used for built-in data.

Parameters:
  • service_fqn (str) – the name of the service (s3, s3.amazonaws.com, …).

  • region (str) – the region in which the service principal is needed.

  • url_suffix (str) – deprecated and ignored.

Return type:

str