Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
}