Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed customization in ec2.customizations.json which excluded DryRun property from service request model and marked AmazonEC2Client.DryRun() extension method as obsolete. #3665

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

ashishdhingra
Copy link
Contributor

@ashishdhingra ashishdhingra commented Feb 22, 2025

Description

Removed customization in ec2.customizations.json which excluded DryRun property from service request model and marked AmazonEC2Client.DryRun() extension method as obsolete.

Motivation and Context

Follow up action item for #3595 in V4.

NOTE:

  • It is assumed that API reference docs are auto-generated and we don't have to include (commit) files, similar to what we do for request models and marshallers.
  • Added test case leveraging DryRun property as true when using DescribeImages API operation.
    • The expected result per documentation of DryRun property is error response, which is DryRunOperation if there are necessary permissions, otherwise, it is UnauthorizedOperation.

Testing

Dry-run DRY_RUN-0c782e9e-d350-47d3-91bf-bce3093fc969 completed successfully.

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed

License

  • I confirm that this pull request can be released under the Apache 2 license

@ashishdhingra ashishdhingra force-pushed the user/ashdhin/v4-ec2-DryRun-Inclusion branch from 47f6437 to 675307c Compare February 23, 2025 02:08
@normj normj added the v4 label Feb 24, 2025
Copy link
Member

@normj normj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next time don't include the generated files or just include a small sample. Otherwise the PRs are too large and the page is very unresponsive.

"serviceName": "EC2",
"type": "patch",
"changeLogMessages": [
"Removed customization in ec2.customizations.json which excluded DryRun property from service request model and marked AmazonEC2Client.DryRun() extension method as obsolete."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change log should be focused on the customer and they won't understanding anything about removing the customization file. Here is my suggestion.

[Breaking Change] Removed DryRun method from service client. To perform a dry run use the DryRun property on the request object for individual EC2 operations.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review. Updated change log message.

@ashishdhingra ashishdhingra force-pushed the user/ashdhin/v4-ec2-DryRun-Inclusion branch from 675307c to b877e67 Compare February 24, 2025 16:51
@ashishdhingra ashishdhingra requested a review from normj February 24, 2025 16:52
"serviceName": "EC2",
"type": "patch",
"changeLogMessages": [
"[Breaking Change] Removed DryRun method from service client. To perform a dry run use the DryRun property on the request object for individual EC2 operations."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My mistake in the previous comment. This should say obsoleted not removed.

[Breaking Change] Obsoleted DryRun method from service client. To perform a dry run use the DryRun property on the request object for individual EC2 operations.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

…n property from service request model and marked AmazonEC2Client.DryRun() extension method as obsolete.
@ashishdhingra ashishdhingra force-pushed the user/ashdhin/v4-ec2-DryRun-Inclusion branch from b877e67 to 932bbef Compare February 24, 2025 18:42
@ashishdhingra ashishdhingra requested a review from normj February 24, 2025 18:43
@ashishdhingra ashishdhingra merged commit 0c9e83f into v4-development Feb 24, 2025
1 check passed
@ashishdhingra ashishdhingra deleted the user/ashdhin/v4-ec2-DryRun-Inclusion branch February 24, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants