You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Query the Action Table from the Policy Sentry database"""
85
88
ifverbose:
@@ -95,7 +98,8 @@ def query_action_table(
95
98
"""Query the Action Table from the Policy Sentry database.
96
99
Use this one when leveraging Policy Sentry as a library."""
97
100
ifos.path.exists(LOCAL_DATASTORE_FILE_PATH):
98
-
logger.info(f"Using the Local IAM definition: {LOCAL_DATASTORE_FILE_PATH}. To leverage the bundled definition instead, remove the folder $HOME/.policy_sentry/")
101
+
logger.info(
102
+
f"Using the Local IAM definition: {LOCAL_DATASTORE_FILE_PATH}. To leverage the bundled definition instead, remove the folder $HOME/.policy_sentry/")
99
103
else:
100
104
# Otherwise, leverage the datastore inside the python package
101
105
logger.debug("Leveraging the bundled IAM Definition.")
@@ -171,19 +175,22 @@ def query_action_table(
171
175
172
176
@query.command(
173
177
short_help="Query the ARN table to show RAW ARNs, like `aws:s3:::bucket/object`. "
174
-
"Use --list-arn-types ARN types, like `object`."
178
+
"Use --list-arn-types ARN types, like `object`."
175
179
)
176
180
@click.option(
177
-
"--service", type=str, required=True, help="Filter according to AWS service."
181
+
"--service", "-s",
182
+
type=str,
183
+
required=True,
184
+
help="Filter according to AWS service."
178
185
)
179
186
@click.option(
180
-
"--name",
187
+
"--name","-n",
181
188
type=str,
182
189
required=False,
183
190
help="The short name of the resource ARN type. For example, `bucket` under service `s3`.",
184
191
)
185
192
@click.option(
186
-
"--list-arn-types",
193
+
"--list-arn-types","-l",
187
194
is_flag=True,
188
195
required=False,
189
196
help="Show the short names of ARN Types. If empty, this will show RAW ARNs only.",
"""Query the ARN Table from the Policy Sentry database. Use this one when leveraging Policy Sentry as a library."""
212
219
ifos.path.exists(LOCAL_DATASTORE_FILE_PATH):
213
-
logger.info(f"Using the Local IAM definition: {LOCAL_DATASTORE_FILE_PATH}. To leverage the bundled definition instead, remove the folder $HOME/.policy_sentry/")
220
+
logger.info(
221
+
f"Using the Local IAM definition: {LOCAL_DATASTORE_FILE_PATH}. To leverage the bundled definition instead, remove the folder $HOME/.policy_sentry/")
214
222
else:
215
223
# Otherwise, leverage the datastore inside the python package
216
224
logger.debug("Leveraging the bundled IAM Definition.")
"""Query the condition table from the Policy Sentry database.
269
280
Use this one when leveraging Policy Sentry as a library."""
270
281
ifos.path.exists(LOCAL_DATASTORE_FILE_PATH):
271
-
logger.info(f"Using the Local IAM definition: {LOCAL_DATASTORE_FILE_PATH}. To leverage the bundled definition instead, remove the folder $HOME/.policy_sentry/")
282
+
logger.info(
283
+
f"Using the Local IAM definition: {LOCAL_DATASTORE_FILE_PATH}. To leverage the bundled definition instead, remove the folder $HOME/.policy_sentry/")
272
284
else:
273
285
# Otherwise, leverage the datastore inside the python package
274
286
logger.debug("Leveraging the bundled IAM Definition.")
0 commit comments