AWS::Organizations::ResourcePolicyCreates or updates a resource-based delegation policy that can be used to delegate policy management for AWS Organizations to specified member accounts to perform policy actions that are by default available only to the management account. For more information about delegated policy management, see [Delegated administrator for AWS Organizations](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_delegate_policies.html) in the *AWS Organizations User Guide* . You can only call this operation from the organization's management account.
import { CfnResourcePolicy } from 'aws-cdk-lib/aws-organizations';Or use the module namespace:
import * as organizations from 'aws-cdk-lib/aws-organizations';
// organizations.CfnResourcePolicyConfiguration passed to the constructor as CfnResourcePolicyProps.
contentRequiredanyThe policy text of the organization resource policy. You can specify the resource policy content as a JSON object or a JSON string. > When you specify the resource policy content as a JSON string, you can't perform drift detection on the CloudFormation stack. For this reason, we recommend specifying the resource policy content as a JSON object instead.
tagsOptionalCfnTag[]A list of tags that you want to attach to the newly created resource policy. For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to `null` . For more information about tagging, see [Tagging AWS Organizations resources](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_tagging.html) in the *AWS Organizations User Guide* . > If any one of the tags is not valid or if you exceed the allowed number of tags for the resource policy, then the entire request fails and the resource policy is not created.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-organizationsAWS::Organizations::ResourcePolicy