Class CfnResourcePolicyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.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.policyDocument(Object policyDocument) Sets the value ofCfnResourcePolicyMixinProps.getPolicyDocument()resourceArn(String resourceArn) Sets the value ofCfnResourcePolicyMixinProps.getResourceArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyDocument
Sets the value ofCfnResourcePolicyMixinProps.getPolicyDocument()- Parameters:
policyDocument- The policy document you want to add to your LAM resource. 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 ofCfnResourcePolicyMixinProps.getResourceArn()- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the LAM resource you want to add the policy to. 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<CfnResourcePolicyMixinProps>- Returns:
- a new instance of
CfnResourcePolicyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-