Class CfnResourcePolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.logs.CfnResourcePolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourcePolicyProps>
- Enclosing interface:
CfnResourcePolicyProps
@Stability(Stable)
public static final class CfnResourcePolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourcePolicyProps>
A builder for
CfnResourcePolicyProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.policyDocument
(String policyDocument) Sets the value ofCfnResourcePolicyProps.getPolicyDocument()
policyName
(String policyName) Sets the value ofCfnResourcePolicyProps.getPolicyName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyDocument
Sets the value ofCfnResourcePolicyProps.getPolicyDocument()
- Parameters:
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.- Returns:
this
-
policyName
Sets the value ofCfnResourcePolicyProps.getPolicyName()
- Parameters:
policyName
- The name of the resource policy. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourcePolicyProps>
- Returns:
- a new instance of
CfnResourcePolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-