# CfnLayerVersionPermissionPropsMixin

The `AWS::Lambda::LayerVersionPermission` resource adds permissions to the resource-based policy of a version of an [Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) . Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all AWS accounts, or all accounts in an organization.

> Since the release of the [UpdateReplacePolicy](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatereplacepolicy.html) both `UpdateReplacePolicy` and `DeletionPolicy` are required to protect your Resources/LayerPermissions from deletion.

Extends: [Mixin](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Mixin.html) › CfnLayerVersionPermissionPropsMixin
Implements: [IMixin](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.IMixin.html)

- CloudFormation: [`AWS::Lambda::LayerVersionPermission`](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-lambda-layerversionpermission.html)
- Source: Generated at build time
- Type last changed: v2.269.0 · 16 Sep 2026

## Initializer

TypeScript:

```ts
new CfnLayerVersionPermissionPropsMixin(props: CfnLayerVersionPermissionMixinProps, options?: CfnPropertyMixinOptions)
```

Python:

```python
CfnLayerVersionPermissionPropsMixin(props: CfnLayerVersionPermissionMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
```

Java:

```java
new CfnLayerVersionPermissionPropsMixin(CfnLayerVersionPermissionMixinProps props, CfnPropertyMixinOptions options)
```

C# / .NET:

```csharp
new CfnLayerVersionPermissionPropsMixin(CfnLayerVersionPermissionMixinProps props, CfnPropertyMixinOptions? options = null)
```

Golang:

```go
NewCfnLayerVersionPermissionPropsMixin(Props CfnLayerVersionPermissionMixinProps, Options CfnPropertyMixinOptions)
```

## Methods

- `applyTo(construct: IConstruct): void` — Apply the mixin properties to the construct.

- `isMixin(x: any): boolean` (static) — Checks if `x` is a Mixin.

  **Parameters**

  - `x` — Any object.

  **Returns:** true if `x` is an object created from a class which extends `Mixin`.

- `supports(construct: IConstruct): boolean` — Check if this mixin supports the given construct.
