You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the IAmazonEC2 interface does not have access to the DryRun method defined in AmazonEC2Client.
This means that dry run operations (e.g. start instances) cannot be executed with the interface and must be cast down to the AmazonEC2Client, which impacts mocking in unit tests.
Regression Issue
Select this option if this issue appears to be a regression.
Expected Behavior
I expected that all methods in the AmazonEC2Client are defined on the IAmazonEC2 interface, especially functionality that is described in the AWS docs
Current Behavior
IAmazonEC2.DryRun() does not exist
Reproduction Steps
// This compilesvarec2Client=newAmazonEC2Client();ec2Client.DryRun(newStartInstancesRequest{InstanceIds=new(){"i-xxxxxxx"}});// This does not compileIAmazonEC2ec2Interface=ec2Client;ec2Interface.DryRun(newStartInstancesRequest{InstanceIds=new(){"i-xxxxxxx"}});
Possible Solution
Add DryRunResponse DryRun(AmazonEC2Request request) to IAmazonEC2
I'm more than happy to open a PR with this fix
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK.EC2 3.7.405.7 (this issue still applies to the latest version)
Targeted .NET Platform
.NET 6
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered:
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
Using the
IAmazonEC2
interface does not have access to theDryRun
method defined inAmazonEC2Client
.This means that dry run operations (e.g. start instances) cannot be executed with the interface and must be cast down to the
AmazonEC2Client
, which impacts mocking in unit tests.Regression Issue
Expected Behavior
I expected that all methods in the
AmazonEC2Client
are defined on theIAmazonEC2
interface, especially functionality that is described in the AWS docsCurrent Behavior
IAmazonEC2.DryRun()
does not existReproduction Steps
Possible Solution
Add
DryRunResponse DryRun(AmazonEC2Request request)
toIAmazonEC2
I'm more than happy to open a PR with this fix
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK.EC2 3.7.405.7 (this issue still applies to the latest version)
Targeted .NET Platform
.NET 6
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered: