Class CfnResourcePolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.policyDocument(Object policyDocument) Sets the value ofCfnResourcePolicyProps.getPolicyDocument()resourceArn(String resourceArn) Sets the value ofCfnResourcePolicyProps.getResourceArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyDocument
Sets the value ofCfnResourcePolicyProps.getPolicyDocument()- Parameters:
policyDocument- The policy document you want to add to your LAM resource. This parameter is required. This is formatted as a JSON string. For more information, see Working with resource-based policies in in the Developer Guide.- Returns:
this
-
resourceArn
Sets the value ofCfnResourcePolicyProps.getResourceArn()- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the LAM resource you want to add the policy to. This parameter is required. For a function, you can use a qualified or an unqualified ARN. The value must be a complete ARN, and the operation does not accept wildcard characters.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourcePolicyProps>- Returns:
- a new instance of
CfnResourcePolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-