CfnResourcePolicyProps
- class aws_cdk.aws_lambda.CfnResourcePolicyProps(*, policy_document, resource_arn)
Bases:
objectProperties for defining a
CfnResourcePolicy.- Parameters:
policy_document (
Any) – 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.resource_arn (
str)
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_lambda as lambda_ # policy_document: Any cfn_resource_policy_props = lambda.CfnResourcePolicyProps( policy_document=policy_document, resource_arn="resourceArn" )
Attributes
- policy_document
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.