layer_version_permission
Gets an individual layer_version_permission
resource
Overview
Name | layer_version_permission |
Type | Resource |
Description | layer_version_permission |
Id | awscc.lambda.layer_version_permission |
Fields
Name | Datatype | Description |
---|---|---|
id | string | ID generated by service |
action | string | The API action that grants access to the layer. |
layer_version_arn | string | The name or Amazon Resource Name (ARN) of the layer. |
organization_id | 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). |
region | string | AWS region. |
Methods
Currently only SELECT
is supported for this resource resource.
Example
SELECT
region,
id,
action,
layer_version_arn,
organization_id,
principal
FROM awscc.lambda.layer_version_permission
WHERE data__Identifier = '<Id>';
Permissions
To operate on the layer_version_permission
resource, the following permissions are required:
Read
lambda:GetLayerVersionPolicy
Delete
lambda:GetLayerVersionPolicy,
lambda:RemoveLayerVersionPermission