{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/GetUserPolicyResponse", "title": "GetUserPolicyResponse", "type": "object", "required": [ "UserName", "PolicyName", "PolicyDocument" ], "properties": { "UserName": { "allOf": [ { "$ref": "#/components/schemas/existingUserNameType" }, { "description": "The user the policy is associated with." } ] }, "PolicyName": { "allOf": [ { "$ref": "#/components/schemas/policyNameType" }, { "description": "The name of the policy." } ] }, "PolicyDocument": { "allOf": [ { "$ref": "#/components/schemas/policyDocumentType" }, { "description": "

The policy document.

IAM stores policies in JSON format. However, resources that were created using CloudFormation templates can be formatted in YAML. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.

" } ] } }, "description": "Contains the response to a successful GetUserPolicy request. " }