PutResourcePolicyRequest
¶
Source code in docs_src/capo_lambda/types/put_resource_policy_request.py
policy
instance-attribute
¶
policy: ResourcePolicy
The policy document you want to add to your Lambda resource. This is formatted as a JSON string.
For more information, see Working with resource-based policies in Lambda in the Lambda Developer Guide.
resource_arn
instance-attribute
¶
resource_arn: PolicyResourceArn
The Amazon Resource Name (ARN) of the Lambda resource you want to add the policy to. You can use a qualified or an unqualified ARN. The value must be a complete ARN, and the operation does not accept wildcard characters.
revision_id
instance-attribute
¶
revision_id: NotRequired[RevisionId]
The revision ID that the existing policy must match for the replacement to proceed. If the revision ID doesn't match, the operation fails with a PreconditionFailedException error. To retrieve the current revision ID, use the GetResourcePolicy operation.