AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::IAM::UserPolicy

CfnUserPolicy

L1 CloudFormation construct for AWS::IAM::UserPolicy

Import

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

Or use the module namespace:

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

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