"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.UserPoolIdentityProviderAmazon=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cognito_generated_1=require("../cognito.generated"),user_pool_idp_base_1=require("./private/user-pool-idp-base");class UserPoolIdentityProviderAmazon extends user_pool_idp_base_1.UserPoolIdentityProviderBase{constructor(scope,id,props){var _b;super(scope,id,props);jsiiDeprecationWarnings.aws_cdk_lib_aws_cognito_UserPoolIdentityProviderAmazonProps(props);const scopes=(_b=props.scopes)!==null&&_b!==void 0?_b:["profile"],resource=new cognito_generated_1.CfnUserPoolIdentityProvider(this,"Resource",{userPoolId:props.userPool.userPoolId,providerName:"LoginWithAmazon",providerType:"LoginWithAmazon",providerDetails:{client_id:props.clientId,client_secret:props.clientSecret,authorize_scopes:scopes.join(" ")},attributeMapping:super.configureAttributeMapping()});this.providerName=super.getResourceNameAttribute(resource.ref)}}exports.UserPoolIdentityProviderAmazon=UserPoolIdentityProviderAmazon,_a=JSII_RTTI_SYMBOL_1,UserPoolIdentityProviderAmazon[_a]={fqn:"aws-cdk-lib.aws_cognito.UserPoolIdentityProviderAmazon",version:"2.13.0"};
//# sourceMappingURL=amazon.js.map
