Role / Sub-Resource / Policy

Policy#

IAM.Role.Policy(name)#

Creates a RolePolicy resource.:

role_policy = role.Policy('name')
Parameters:

name (string) – The Policy’s name identifier. This must be set.

Return type:

IAM.RolePolicy

Returns:

A RolePolicy resource