AWS ec2 documentation change
Summary
Updated pagination configuration and added logging in code example
Security assessment
Same as sibling EC2 example change - improves code quality without security implications.
Diff
diff --git a/ec2/latest/devguide/service_code_examples.md index a528f5fcb..da2236647 100644 --- a/ec2/latest/devguide/service_code_examples.md +++ b/ec2/latest/devguide/service_code_examples.md @@ -419 +419,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - response_iterator = paginator.paginate(MaxResults=10) + response_iterator = paginator.paginate(PaginationConfig={'MaxItems': 10}) # List only 10 security groups. + logging.basicConfig(level=logging.INFO) # Enable logging.