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 RemoveLayerVersionPermission operation. Removes a statement from the permissions policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
Namespace: Amazon.Lambda.Model
Assembly: AWSSDK.Lambda.dll
Version: 3.x.y.z
public class RemoveLayerVersionPermissionRequest : AmazonLambdaRequest IAmazonWebServiceRequest
The RemoveLayerVersionPermissionRequest type exposes the following members
| Name | Description | |
|---|---|---|
|
RemoveLayerVersionPermissionRequest() |
| Name | Type | Description | |
|---|---|---|---|
|
LayerName | System.String |
Gets and sets the property LayerName. The name or Amazon Resource Name (ARN) of the layer. |
|
RevisionId | System.String |
Gets and sets the property RevisionId. Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it. |
|
StatementId | System.String |
Gets and sets the property StatementId. The identifier that was specified when the statement was added. |
|
VersionNumber | System.Int64 |
Gets and sets the property VersionNumber. The version number. |
The following example deletes permission for an account to configure a layer version.
var client = new AmazonLambdaClient();
var response = client.AddLayerVersionPermission(new AddLayerVersionPermissionRequest
{
Action = "lambda:GetLayerVersion",
LayerName = "my-layer",
Principal = "223456789012",
StatementId = "xaccount",
VersionNumber = 1
});
string revisionId = response.RevisionId;
string statement = response.Statement;
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5