Class CfnResourcePolicyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.organizations.CfnResourcePolicyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourcePolicyMixinProps>
- Enclosing interface:
CfnResourcePolicyMixinProps
@Stability(Stable)
public static final class CfnResourcePolicyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourcePolicyMixinProps>
A builder for
CfnResourcePolicyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnResourcePolicyMixinProps.getContent()Sets the value ofCfnResourcePolicyMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
content
Sets the value ofCfnResourcePolicyMixinProps.getContent()- Parameters:
content- The 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.
- Returns:
this
-
tags
Sets the value ofCfnResourcePolicyMixinProps.getTags()- Parameters:
tags- 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 tonull. 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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourcePolicyMixinProps>- Returns:
- a new instance of
CfnResourcePolicyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-