Skip to content

IAM  >  Structures  >  PolicyRole

PolicyRole

Structure Class

PolicyRole dataclass

Bases: _SerdeShape

Contains information about a role that a managed policy is attached to.

This data type is used as a response element in the ListEntitiesForPolicy operation.

For more information about managed policies, refer to Managed policies and inline policies in the IAM User Guide.

Attributes

role_id class-attribute instance-attribute
role_id: str | None = ...

The stable and unique string identifying the role. For more information about IDs, see IAM identifiers in the IAM User Guide.

role_name class-attribute instance-attribute
role_name: str | None = ...

The name (friendly name, not ARN) identifying the role.