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) – 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:
- 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.
- resource_arn
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.