Skip to content
v2.275.0

Default Class ​

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.

Properties ​

VPC_ENDPOINT_SERVICE_NAME_PREFIXstringvpc_endpoint_service_name_prefixstrVPC_ENDPOINT_SERVICE_NAME_PREFIXStringVPC_ENDPOINT_SERVICE_NAME_PREFIXstringVPC_ENDPOINT_SERVICE_NAME_PREFIX*stringstaticdeprecated#
- Use VpceEndpointService.DEFAULT_PREFIX instead

Methods ​

servicePrincipal(serviceFqn: string, region: string, urlSuffix: string): string@staticmethod def service_principal(service_fqn: str, region: str, url_suffix: str) -> strpublic static String servicePrincipal(String serviceFqn, String region, String urlSuffix)public static string ServicePrincipal(string serviceFqn, string region, string urlSuffix)func ServicePrincipal(ServiceFqn *string, Region *string, UrlSuffix *string) *stringstaticdeprecated#
- Service principals are now globally `<SERVICE>.amazonaws.com`, use iam.ServicePrincipal instead.
notes · 3 parameters

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

  • serviceFqnservice_fqnserviceFqnserviceFqnServiceFqn — the name of the service (s3, s3.amazonaws.com, ...).
  • regionregionregionregionRegion — the region in which the service principal is needed.
  • urlSuffixurl_suffixurlSuffixurlSuffixUrlSuffix — deprecated and ignored.