{"tool":"aws","tool_display":"Aws","intent":"describe-iam-policy","intent_display":"describe iam policy","title":"Aws Command: describe iam policy","command_string":"aws iam get-policy --policy-arn arn:aws:iam::aws:policy/<policy_name>","raw_command_string":"aws iam get-policy --policy-arn arn:aws:iam::aws:policy/{{policy_name}}","description":"Exact CLI syntax to describe iam policy using Aws.","usage_scenario":"When needing to understand permissions and rules defined by a specific IAM policy.","scenario_context":"Always check IAM policies regularly for compliance and security best practices.","simulated_output":"Policy\n----------------------------------\nPolicy Name               : {{policy_name}}\nPolicy Id                 : ABCDEFGHIJKLMNOP\nDefault Version Id        : v1\nAttachment Count          : 5\nCreate Date               : 2021-01-01T12:00:00Z\nUpdate Date               : 2023-01-01T12:00:00Z\nPermissions                : {\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":\"s3:*\",\"Resource\":\"*\"}]}","how_to_steps":["Run the command: aws iam get-policy --policy-arn arn:aws:iam::aws:policy/{{policy_name}}","Verify the output to understand the IAM policy details and permissions."],"inferred_category":"Cloud Infrastructure","canonical_url":"https://www.syntaxstandard.com/aws/describe-iam-policy"}