MCPcopy
hub / github.com/donnemartin/saws / _query_aws

Method _query_aws

saws/resource/resource.py:80–98  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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)

Callers 8

query_resourceMethod · 0.80
query_resourceMethod · 0.80
query_resourceMethod · 0.80
query_resourceMethod · 0.80

Calls

no outgoing calls