Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public static fromOriginAccessIdentityName(
scope: cdk.Construct,
id: string,
originAccessIdentityName: string): IOriginAccessIdentity {
class Import extends OriginAccessIdentityBase {
public readonly originAccessIdentityName = originAccessIdentityName;
public readonly grantPrincipal = new iam.ArnPrincipal(this.arn());
constructor(s: cdk.Construct, i: string) {
super(s, i, { physicalName: originAccessIdentityName });
}
}
return new Import(scope, id);
}