aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 557 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExampleConstruct=void 0;const core_1=require("../../core"),constructs_1=require("constructs"),lib_1=require("../lib");class ExampleConstruct extends constructs_1.Construct{constructor(scope,id){super(scope,id);const user=new lib_1.User(this,"MyUser",{password:core_1.SecretValue.plainText("1234")}),group=new lib_1.Group(this,"MyGroup"),policy=new lib_1.Policy(this,"MyPolicy");policy.attachToUser(user),group.attachInlinePolicy(policy)}}exports.ExampleConstruct=ExampleConstruct;