AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::SSM::ResourcePolicy

CfnResourcePolicy

Creates or updates a Systems Manager resource policy. A resource policy helps you to define the IAM entity (for example, an AWS account ) that can manage your Systems Manager resources. Currently, `OpsItemGroup` is the only resource that supports Systems Manager resource policies. The resource policy for `OpsItemGroup` enables AWS accounts to view and interact with OpsCenter operational work items (OpsItems). OpsCenter is a tool in Systems Manager .

Import

import { CfnResourcePolicy } from 'aws-cdk-lib/aws-ssm';

Or use the module namespace:

import * as ssm from 'aws-cdk-lib/aws-ssm';
// ssm.CfnResourcePolicy

Properties

Configuration passed to the constructor as CfnResourcePolicyProps.

policyRequired
any

A policy you want to associate with a resource.

resourceArnRequired
string

The Amazon Resource Name (ARN) of the resource to which you want to attach a policy.

CloudFormation Resource

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

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter