{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/GetRolePolicyResponse", "title": "GetRolePolicyResponse", "type": "object", "required": [ "RoleName", "PolicyName", "PolicyDocument" ], "properties": { "RoleName": { "allOf": [ { "$ref": "#/components/schemas/roleNameType" }, { "description": "The role 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 GetRolePolicy request. " }