interface CfnLayerVersionPermissionMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lambda.Mixins.CfnLayerVersionPermissionMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslambda/mixins#CfnLayerVersionPermissionMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.lambda.mixins.CfnLayerVersionPermissionMixinProps |
Python | aws_cdk.mixins_preview.aws_lambda.mixins.CfnLayerVersionPermissionMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_lambda » mixins » CfnLayerVersionPermissionMixinProps |
Properties for CfnLayerVersionPermissionPropsMixin.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as lambda_mixins } from '@aws-cdk/mixins-preview/aws-lambda';
const cfnLayerVersionPermissionMixinProps: lambda_mixins.CfnLayerVersionPermissionMixinProps = {
action: 'action',
layerVersionArn: 'layerVersionArn',
organizationId: 'organizationId',
principal: 'principal',
};
Properties
| Name | Type | Description |
|---|---|---|
| action? | string | The API action that grants access to the layer. |
| layer | string | The name or Amazon Resource Name (ARN) of the layer. |
| organization | string | With the principal set to * , grant permission to all accounts in the specified organization. |
| principal? | string | An account ID, or * to grant layer usage permission to all accounts in an organization, or all AWS accounts (if organizationId is not specified). |
action?
Type:
string
(optional)
The API action that grants access to the layer.
For example, lambda:GetLayerVersion .
layerVersionArn?
Type:
string
(optional)
The name or Amazon Resource Name (ARN) of the layer.
organizationId?
Type:
string
(optional)
With the principal set to * , grant permission to all accounts in the specified organization.
principal?
Type:
string
(optional)
An account ID, or * to grant layer usage permission to all accounts in an organization, or all AWS accounts (if organizationId is not specified).
For the last case, make sure that you really do want all AWS accounts to have usage permission to this layer.

.NET
Go
Java
Python
TypeScript