Aws::EC2::Resources raises InvalidParameterCombination
when some parameters are specified
#3028
Labels
InvalidParameterCombination
when some parameters are specified
#3028
Describe the bug
Some AWS APIs are not allowed to use MaxResults parameter.
But aws-sdk-ec2 >= 1.448.1 automatically sets
max_results
.For that reason,
Aws::EC2::Errors::InvalidParameterCombination
will be raised some parameter conditions.AFIK, the following parameters are not allowed to use MaxResults simultaneously.
Aws::EC2::Resources#images
Aws::EC2::Resources#instances
Aws::EC2::Resources#snapshots
Aws::EC2::Resources#volumes
Expected Behavior
Aws::EC2::Resources
does not setmax_results
automatically when the given options contains the parameter which cannot be used withmax_results
in the same request.Current Behavior
Aws::EC2::Resources
setsmax_results
automatically even if the given options contains the parameter which cannot be used withmax_results
in the same request.Reproduction Steps
Use aws-sdk-ec2 >= 1.448.1
Raises
Aws::EC2::Errors::InvalidParameterCombination
Dose not raise
Aws::EC2::Errors::InvalidParameterCombination
Possible Solution
Do not set
max_results
if the options contains parameter which cannot be used withmax_results
.Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-ec2
Environment details (Version of Ruby, OS environment)
Ruby >= 2.7, aws-sdk-ec2 >= 1.448.1
The text was updated successfully, but these errors were encountered: