AWS SDK Version 3 for .NET
API Reference

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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Lambda.AmazonLambdaRequest
      Amazon.Lambda.Model.RemoveLayerVersionPermissionRequest

Namespace: Amazon.Lambda.Model
Assembly: AWSSDK.Lambda.dll
Version: 3.x.y.z

Syntax

C#
public class RemoveLayerVersionPermissionRequest : AmazonLambdaRequest
         IAmazonWebServiceRequest

The RemoveLayerVersionPermissionRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property LayerName System.String

Gets and sets the property LayerName.

The name or Amazon Resource Name (ARN) of the layer.

Public Property 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.

Public Property StatementId System.String

Gets and sets the property StatementId.

The identifier that was specified when the statement was added.

Public Property VersionNumber System.Int64

Gets and sets the property VersionNumber.

The version number.

Examples

The following example deletes permission for an account to configure a layer version.

To delete layer-version permissions


var response = client.RemoveLayerVersionPermission(new RemoveLayerVersionPermissionRequest 
{
    LayerName = "my-layer",
    StatementId = "xaccount",
    VersionNumber = 1
});


            

Version Information

.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