Class CfnResourcePolicyPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnResourcePolicyPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourcePolicyPropsMixin>
- Enclosing class:
CfnResourcePolicyPropsMixin
@Stability(Stable)
public static final class CfnResourcePolicyPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourcePolicyPropsMixin>
A fluent builder for
CfnResourcePolicyPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) policyDocument(Object policyDocument) The policy document you want to add to your LAM resource.resourceArn(String resourceArn) The Amazon Resource Name (ARN) of the LAM resource you want to add the policy to.
-
Method Details
-
create
@Stability(Stable) public static CfnResourcePolicyPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnResourcePolicyPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnResourcePolicyPropsMixin.Builder.
-
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.
- Parameters:
policyDocument- The policy document you want to add to your LAM resource. This parameter is required.- Returns:
this- See Also:
-
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.
- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the LAM resource you want to add the policy to. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourcePolicyPropsMixin>- Returns:
- a newly built instance of
CfnResourcePolicyPropsMixin.
-