AwsCustomResource: AwsSdkCall implementations don't support empty parameters for some APIs #30943
Labels
@aws-cdk/aws-ses
Related to Amazon Simple Email Service
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
The SES API has an endpoint to set an active receipt rule set. To deactivate all rulesets you need to call the set-active-receipt-rule-set API and not provide a rule-set-name
CLI example:
When creating a receipt rule set in CDK it is recommended to use an AwsCustomResource, as setting a ruleset active in Cloud Formation is not supported.
Example:
The Problem
Attempting to implement the onDelete handler for this consistently gives an error:
Sample Code:
This error is consistent with the following permutations:
It seems that the AwsSdkCall expects a RuleSetName regardless and it's impossible to unset it via an AwsSdkCall
Expected Behavior
AwsCustomResource objects with AwsSdkCall implementations will only pass in parameters that are explicitly defined in the parameters object
Current Behavior
Certain parameters seem to be hard-coded
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.150.0
Framework Version
No response
Node.js Version
v20.15.1
OS
MacOS Ventura 13.6.7
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: