"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.AccessKey=exports.AccessKeyStatus=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var iam_generated_1=()=>{var tmp=require("./iam.generated");return iam_generated_1=()=>tmp,tmp},core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp},AccessKeyStatus;(function(AccessKeyStatus2){AccessKeyStatus2.ACTIVE="Active",AccessKeyStatus2.INACTIVE="Inactive"})(AccessKeyStatus||(exports.AccessKeyStatus=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,AccessKey),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.148.1"};
