aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
18 lines (14 loc) • 400 B
text/typescript
import { Construct } from 'constructs';
import * as iam from '../lib';
export class ExampleConstruct extends Construct {
constructor(scope: Construct, id: string) {
super(scope, id);
/// !show
const role = new iam.Role(this, 'MyRole', {
assumedBy: new iam.AccountPrincipal('123456789012'),
externalIds: ['SUPPLY-ME'],
});
/// !hide
Array.isArray(role);
}
}