Как вызвать! Ref функцию в стеке aws-cdk? У меня есть ресурс UserPool и UserPoolClientResource со свойством userPoolId:
const userPool = new cognito.cloudformation.UserPoolResource(this, userPoolResourceName, {
userPoolName,
usernameAttributes: ['email'],
autoVerifiedAttributes: ['email'],
policies: {
passwordPolicy: {
minimumLength: 8,
requireLowercase: false,
requireNumbers: false,
requireSymbols: false,
requireUppercase: false
}
}
});
new cognito.cloudformation.UserPoolClientResource(this, userPoolClientResourceName, {
userPoolId: `!Ref ${userPool.id}`, // failed
clientName: userPoolClientName
});