AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the PutResourcePolicy operation. Adds a resource-based policy to a Lambda resource. Resource-based policies grant access to other Amazon Web Services accounts, organizations, or services. Resource-based policies apply to a single Lambda resource (for example, a function, function version, or function alias).
This operation replaces any existing policy on the Lambda resource. If you previously added permissions using the AddPermission operation, the new policy overwrites those permissions.
Namespace: Amazon.Lambda.Model
Assembly: AWSSDK.Lambda.dll
Version: 3.x.y.z
public class PutResourcePolicyRequest : AmazonLambdaRequest IAmazonWebServiceRequest
The PutResourcePolicyRequest type exposes the following members
| Name | Description | |
|---|---|---|
|
PutResourcePolicyRequest() |
| Name | Type | Description | |
|---|---|---|---|
|
Policy | System.String |
Gets and sets the property Policy. 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. |
|
ResourceArn | System.String |
Gets and sets the property ResourceArn. 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. |
|
RevisionId | System.String |
Gets and sets the property 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 |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer