Default

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

Bases: object

(deprecated) Provides default values for certain regional information points.

This class is no longer needed because service principals are no longer needed except in very specific cases that are handled in the IAM ServicePrincipal class.

Deprecated:
  • Service principals are now globally <SERVICE>.amazonaws.com, use iam.ServicePrincipal instead.

Stability:

deprecated

Attributes

VPC_ENDPOINT_SERVICE_NAME_PREFIX = 'com.amazonaws.vpce'

Static Methods

classmethod service_principal(service_fqn, region, url_suffix)

(deprecated) 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.

Deprecated:
  • Service principals are now globally <SERVICE>.amazonaws.com, use iam.ServicePrincipal instead.

Stability:

deprecated

Return type:

str