Sends the given query to the shell for processing. The awscli will process the command and output its results. The results are captured and returned. Args: * command: A string representing the given query. Returns: A string representing the
(self, query)
| 78 | pass |
| 79 | |
| 80 | def _query_aws(self, query): |
| 81 | """Sends the given query to the shell for processing. |
| 82 | |
| 83 | The awscli will process the command and output its results. The |
| 84 | results are captured and returned. |
| 85 | |
| 86 | Args: |
| 87 | * command: A string representing the given query. |
| 88 | |
| 89 | Returns: |
| 90 | A string representing the awscli output. |
| 91 | |
| 92 | Raises: |
| 93 | A subprocess.CalledProcessError if check_output returns a non-zero |
| 94 | exit status. |
| 95 | """ |
| 96 | return subprocess.check_output(query, |
| 97 | universal_newlines=True, |
| 98 | shell=True) |
no outgoing calls