CfnResourcePolicyMixinProps

class aws_cdk.cfn_property_mixins.aws_lambda.CfnResourcePolicyMixinProps(*, policy_document=None, resource_arn=None)

Bases: object

Properties for CfnResourcePolicyPropsMixin.

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 (Optional[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.cfn_property_mixins import aws_lambda as lambda_

# policy_document: Any

cfn_resource_policy_mixin_props = lambda.CfnResourcePolicyMixinProps(
    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