Description
Describe the bug
I am making an assertion as follows
const assertion1 = integ.assertions .awsApiCall('CognitoIdentityServiceProvider', 'describeUserPool', { UserPoolId: 'ap-southeast-1_1234567' }) .expect(ExpectedResult.objectLike({ UserPool: { Id: 'ap-southeast-1_1234567' }, }));
When I run npm run integ-test
I get the error
CREATE_FAILED | Custom::DeployAssert@SdkCallCognitoIdentityServiceProviderde | CognitoStackTest/DefaultTest/DeployAssert/AwsApiCallCognitoIdentityServiceProviderdescribeUserPool31f29c4a94406a13295f446784a03bfb/Default/Default (AwsApiCallCognitoIdentityServiceProviderdescribeUserPool31f29c4a94406a13295f446784a03bfb) Response object is too long.
Expected Behavior
The CognitoStackTestDefaultTestDeployAssert stack needs to successfully deploy.
Current Behavior
I get the error
CREATE_FAILED | Custom::DeployAssert@SdkCallCognitoIdentityServiceProviderde | CognitoStackTest/DefaultTest/DeployAssert/AwsApiCallCognitoIdentityServiceProviderdescribeUserPool31f29c4a94406a13295f446784a03bfb/Default/Default (AwsApiCallCognitoIdentityServiceProviderdescribeUserPool31f29c4a94406a13295f446784a03bfb) Response object is too long.
Reproduction Steps
Create an assertion using the following code
const assertion1 = integ.assertions .awsApiCall('CognitoIdentityServiceProvider', 'describeUserPool', { UserPoolId: 'ap-southeast-1_1234567' }) .expect(ExpectedResult.objectLike({ UserPool: { Id: 'ap-southeast-1_1234567' }, }));
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.108.0
Framework Version
No response
Node.js Version
v16.20.2
OS
Linux
Language
TypeScript
Language Version
No response
Other information
No response