public static final class CfnResourcePolicyProps.Builder
extends java.lang.Object
CfnResourcePolicyProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnResourcePolicyProps |
build()
Builds the configured instance.
|
CfnResourcePolicyProps.Builder |
policyDocument(java.lang.String policyDocument)
Sets the value of
CfnResourcePolicyProps.getPolicyDocument() |
CfnResourcePolicyProps.Builder |
policyName(java.lang.String policyName)
Sets the value of
CfnResourcePolicyProps.getPolicyName() |
public CfnResourcePolicyProps.Builder policyDocument(java.lang.String policyDocument)
CfnResourcePolicyProps.getPolicyDocument()
policyDocument
- The details of the policy. This parameter is required.
It must be formatted in JSON, and you must use backslashes to escape characters that need to be escaped in JSON strings, such as double quote marks.this
public CfnResourcePolicyProps.Builder policyName(java.lang.String policyName)
CfnResourcePolicyProps.getPolicyName()
policyName
- The name of the resource policy. This parameter is required.this
public CfnResourcePolicyProps build()
CfnResourcePolicyProps
java.lang.NullPointerException
- if any required attribute was not provided