class Default
Language | Type name |
---|---|
.NET | Amazon.CDK.RegionInfo.Default |
Go | github.com/aws/aws-cdk-go/awscdk/v2/regioninfo#Default |
Java | software.amazon.awscdk.regioninfo.Default |
Python | aws_cdk.region_info.Default |
TypeScript (source) | aws-cdk-lib » region_info » Default |
⚠️ Deprecated: - Service principals are now globally <SERVICE>.amazonaws.com
, use iam.ServicePrincipal instead.
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
Name | Type | Description |
---|---|---|
static VPC_ENDPOINT_SERVICE_NAME_PREFIX | string | The default value for a VPC Endpoint Service name prefix, useful if you do not have a synthesize-time region literal available (all you have is { "Ref": "AWS::Region" } ). |
static VPC_ENDPOINT_SERVICE_NAME_PREFIX
⚠️ Deprecated: - Use VpceEndpointService.DEFAULT_PREFIX instead
Type:
string
The default value for a VPC Endpoint Service name prefix, useful if you do not have a synthesize-time region literal available (all you have is { "Ref": "AWS::Region" }
).
Methods
Name | Description |
---|---|
static service | Computes a "standard" AWS Service principal for a given service, region and suffix. |
Principal(serviceFqn, region, urlSuffix)
static servicepublic static servicePrincipal(serviceFqn: string, region: string, urlSuffix: string): string
⚠️ Deprecated: - Service principals are now globally <SERVICE>.amazonaws.com
, use iam.ServicePrincipal instead.
Parameters
- serviceFqn
string
— the name of the service (s3, s3.amazonaws.com, ...). - region
string
— the region in which the service principal is needed. - urlSuffix
string
— deprecated and ignored.
Returns
string
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.