Interface CfnResourcePolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResourcePolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:12.888Z")
@Stability(Stable)
public interface CfnResourcePolicyProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnResourcePolicy.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
Object policyDocument;
CfnResourcePolicyProps cfnResourcePolicyProps = CfnResourcePolicyProps.builder()
.policyDocument(policyDocument)
.resourceArn("resourceArn")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnResourcePolicyPropsstatic final classAn implementation forCfnResourcePolicyProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The policy document you want to add to your LAM resource.The Amazon Resource Name (ARN) of the LAM resource you want to add the policy to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPolicyDocument
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.
- See Also:
-
getResourceArn
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.
- See Also:
-
builder
- Returns:
- a
CfnResourcePolicyProps.BuilderofCfnResourcePolicyProps
-