AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::IAM::RolePolicy

CfnRolePolicy

L1 CloudFormation construct for AWS::IAM::RolePolicy

Import

import { CfnRolePolicy } from 'aws-cdk-lib/aws-iam';

Or use the module namespace:

import * as iam from 'aws-cdk-lib/aws-iam';
// iam.CfnRolePolicy

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the AWS IAM Cheat Sheet

Everything you need to know about AWS IAM on one page. HD quality, print-friendly.

Download Free Infographic