"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.AccessKey=exports.AccessKeyStatus=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),core_1=require("../../core"),iam_generated_1=require("./iam.generated");var AccessKeyStatus;(function(AccessKeyStatus2){AccessKeyStatus2.ACTIVE="Active",AccessKeyStatus2.INACTIVE="Inactive"})(AccessKeyStatus=exports.AccessKeyStatus||(exports.AccessKeyStatus={}));class AccessKey extends core_1.Resource{constructor(scope,id,props){super(scope,id);try{jsiiDeprecationWarnings.aws_cdk_lib_aws_iam_AccessKeyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.constructor),error}const accessKey=new iam_generated_1.CfnAccessKey(this,"Resource",{userName:props.user.userName,serial:props.serial,status:props.status});this.accessKeyId=accessKey.ref,this.secretAccessKey=core_1.SecretValue.resourceAttribute(accessKey.attrSecretAccessKey)}}exports.AccessKey=AccessKey,_a=JSII_RTTI_SYMBOL_1,AccessKey[_a]={fqn:"aws-cdk-lib.aws_iam.AccessKey",version:"2.21.0"};
//# sourceMappingURL=access-key.js.map
