How to use the @aws-cdk/region-info.Default.servicePrincipal function in @aws-cdk/region-info

To help you get started, we’ve selected a few @aws-cdk/region-info examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws / aws-cdk / packages / @aws-cdk / aws-iam / lib / principals.ts View on Github external
public resolve(ctx: cdk.IResolveContext) {
    const region = this.opts.region || cdk.Stack.of(ctx.scope).region;
    const fact = RegionInfo.get(region).servicePrincipal(this.service);
    return fact || Default.servicePrincipal(this.service, region, cdk.Aws.URL_SUFFIX);
  }

@aws-cdk/region-info

AWS region information, such as service principal names

Apache-2.0
Latest version published 2 days ago

Package Health Score

98 / 100
Full package analysis