| 120 | return 0 |
| 121 | |
| 122 | def _validate_args(self, parsed_args): |
| 123 | validate_s3_location(parsed_args, 's3_location') |
| 124 | if ( |
| 125 | parsed_args.ignore_hidden_files |
| 126 | and parsed_args.no_ignore_hidden_files |
| 127 | ): |
| 128 | raise ParamValidationError( |
| 129 | 'You cannot specify both --ignore-hidden-files and ' |
| 130 | '--no-ignore-hidden-files.' |
| 131 | ) |
| 132 | if not parsed_args.description: |
| 133 | parsed_args.description = ( |
| 134 | f'Uploaded by AWS CLI {datetime.utcnow().isoformat()} UTC' |
| 135 | ) |
| 136 | |
| 137 | def _push(self, params): |
| 138 | with self._compress( |