AWS CloudFormation
User Guide (Version )

AWS::IAM::Role Policy

Contains information about an attached policy.

An attached policy is a managed policy that has been attached to a user, group, or role.

For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "PolicyDocument" : Json, "PolicyName" : String }

YAML

PolicyDocument: Json PolicyName: String

Properties

PolicyDocument

The policy document.

Required: Yes

Type: Json

Minimum: 1

Maximum: 131072

Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+

Update requires: No interruption

PolicyName

The friendly name (not ARN) identifying the policy.

Required: Yes

Type: String

Minimum: 1

Maximum: 128

Pattern: [\w+=,.@-]+

Update requires: No interruption

See Also

  • PolicyDetail in the AWS Identity and Access Management API Reference

On this page: