Class CfnResourcePolicyProps
Properties for defining a CfnResourcePolicy
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Organizations
Assembly: Amazon.CDK.AWS.Organizations.dll
Syntax (csharp)
public class CfnResourcePolicyProps : Object, ICfnResourcePolicyProps
Syntax (vb)
Public Class CfnResourcePolicyProps
Inherits Object
Implements ICfnResourcePolicyProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Organizations;
var content;
var cfnResourcePolicyProps = new CfnResourcePolicyProps {
Content = content,
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnResourcePolicyProps() |
Properties
Content | The policy text of the organization resource policy. |
Tags | A list of tags that you want to attach to the newly created resource policy. |
Constructors
CfnResourcePolicyProps()
public CfnResourcePolicyProps()
Properties
Content
The policy text of the organization resource policy.
public object Content { get; set; }
Property Value
System.Object
Remarks
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.
Tags
A list of tags that you want to attach to the newly created resource policy.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
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 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.