CfnResourcePolicyProps

class aws_cdk.aws_lambda.CfnResourcePolicyProps(*, policy_document, resource_arn)

Bases: object

Properties 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-resourcepolicy.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-resourcepolicy.html#cfn-lambda-resourcepolicy-policydocument

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-resourcepolicy.html#cfn-lambda-resourcepolicy-resourcearn