-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release-1.10.29: Bumping version to 1.10.29 Update changelog based on model updates Remove back-compat shorthand features from new services Use service_name in process-cli-arg event Print better error when using pagination params and no paginate Default ec2 page size to 1000 updated describe-scheduled-actions example
- Loading branch information
Showing
37 changed files
with
821 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[ | ||
{ | ||
"category": "``dynamodb``", | ||
"description": "Update dynamodb command to latest version", | ||
"type": "feature" | ||
}, | ||
{ | ||
"category": "Shorthand", | ||
"description": "Remove back-compat shorthand features from new services.", | ||
"type": "bugfix" | ||
}, | ||
{ | ||
"category": "Paginator", | ||
"description": "Print a better error when pagination params are supplied along with no-paginate.", | ||
"type": "bugfix" | ||
}, | ||
{ | ||
"category": "ec2", | ||
"description": "Sets MaxResults to default value of 1000.", | ||
"type": "bugfix" | ||
}, | ||
{ | ||
"category": "``workspaces``", | ||
"description": "Update workspaces command to latest version", | ||
"type": "feature" | ||
}, | ||
{ | ||
"category": "``discovery``", | ||
"description": "Update discovery command to latest version", | ||
"type": "feature" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"). You | ||
# may not use this file except in compliance with the License. A copy of | ||
# the License is located at | ||
# | ||
# http://aws.amazon.com/apache2.0/ | ||
# | ||
# or in the "license" file accompanying this file. This file is | ||
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF | ||
# ANY KIND, either express or implied. See the License for the specific | ||
# language governing permissions and limitations under the License. | ||
DEFAULT_MAX_RESULTS = 1000 | ||
|
||
|
||
def set_max_results_default(parsed_args, parsed_globals, **kwargs): | ||
""" | ||
In order to have EC2 return results you can paginate you need to inject | ||
the `MaxItems` parameter. In the CLI we should be setting this by default | ||
to avoid users having to wait exceedingly long times for the full results. | ||
""" | ||
|
||
# The check for page size validates that the operation is a pagination | ||
# operation. | ||
if parsed_globals.paginate and hasattr(parsed_args, 'page_size') and \ | ||
parsed_args.page_size is None and parsed_args.max_results is None: | ||
parsed_args.page_size = DEFAULT_MAX_RESULTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.