"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.UserPoolResourceServer=exports.ResourceServerScope=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),core_1=require("../../core"),cognito_generated_1=require("./cognito.generated");class ResourceServerScope{constructor(props){try{jsiiDeprecationWarnings.aws_cdk_lib_aws_cognito_ResourceServerScopeProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,ResourceServerScope),error}this.scopeName=props.scopeName,this.scopeDescription=props.scopeDescription}}exports.ResourceServerScope=ResourceServerScope,_a=JSII_RTTI_SYMBOL_1,ResourceServerScope[_a]={fqn:"aws-cdk-lib.aws_cognito.ResourceServerScope",version:"2.29.0"};class UserPoolResourceServer extends core_1.Resource{constructor(scope,id,props){super(scope,id,{physicalName:props.identifier});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_cognito_UserPoolResourceServerProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,UserPoolResourceServer),error}const resource=new cognito_generated_1.CfnUserPoolResourceServer(this,"Resource",{identifier:this.physicalName,name:props.userPoolResourceServerName??this.physicalName,scopes:props.scopes,userPoolId:props.userPool.userPoolId});this.userPoolResourceServerId=resource.ref}static fromUserPoolResourceServerId(scope,id,userPoolResourceServerId){class Import extends core_1.Resource{constructor(){super(...arguments),this.userPoolResourceServerId=userPoolResourceServerId}}return new Import(scope,id)}}exports.UserPoolResourceServer=UserPoolResourceServer,_b=JSII_RTTI_SYMBOL_1,UserPoolResourceServer[_b]={fqn:"aws-cdk-lib.aws_cognito.UserPoolResourceServer",version:"2.29.0"};
//# sourceMappingURL=user-pool-resource-server.js.map
