1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. lambda
  5. LayerVersionPermission

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.lambda.LayerVersionPermission

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Schema for Lambda LayerVersionPermission

Create LayerVersionPermission Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new LayerVersionPermission(name: string, args: LayerVersionPermissionArgs, opts?: CustomResourceOptions);
@overload
def LayerVersionPermission(resource_name: str,
                           args: LayerVersionPermissionArgs,
                           opts: Optional[ResourceOptions] = None)

@overload
def LayerVersionPermission(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           action: Optional[str] = None,
                           layer_version_arn: Optional[str] = None,
                           principal: Optional[str] = None,
                           organization_id: Optional[str] = None)
func NewLayerVersionPermission(ctx *Context, name string, args LayerVersionPermissionArgs, opts ...ResourceOption) (*LayerVersionPermission, error)
public LayerVersionPermission(string name, LayerVersionPermissionArgs args, CustomResourceOptions? opts = null)
public LayerVersionPermission(String name, LayerVersionPermissionArgs args)
public LayerVersionPermission(String name, LayerVersionPermissionArgs args, CustomResourceOptions options)
type: aws-native:lambda:LayerVersionPermission
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. LayerVersionPermissionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. LayerVersionPermissionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. LayerVersionPermissionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LayerVersionPermissionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. LayerVersionPermissionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

LayerVersionPermission Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The LayerVersionPermission resource accepts the following input properties:

Action This property is required. string
The API action that grants access to the layer.
LayerVersionArn This property is required. string
The name or Amazon Resource Name (ARN) of the layer.
Principal This property is required. 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).
OrganizationId string
With the principal set to *, grant permission to all accounts in the specified organization.
Action This property is required. string
The API action that grants access to the layer.
LayerVersionArn This property is required. string
The name or Amazon Resource Name (ARN) of the layer.
Principal This property is required. 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).
OrganizationId string
With the principal set to *, grant permission to all accounts in the specified organization.
action This property is required. String
The API action that grants access to the layer.
layerVersionArn This property is required. String
The name or Amazon Resource Name (ARN) of the layer.
principal This property is required. 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).
organizationId String
With the principal set to *, grant permission to all accounts in the specified organization.
action This property is required. string
The API action that grants access to the layer.
layerVersionArn This property is required. string
The name or Amazon Resource Name (ARN) of the layer.
principal This property is required. 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).
organizationId string
With the principal set to *, grant permission to all accounts in the specified organization.
action This property is required. str
The API action that grants access to the layer.
layer_version_arn This property is required. str
The name or Amazon Resource Name (ARN) of the layer.
principal This property is required. str
An account ID, or * to grant layer usage permission to all accounts in an organization, or all AWS accounts (if organizationId is not specified).
organization_id str
With the principal set to *, grant permission to all accounts in the specified organization.
action This property is required. String
The API action that grants access to the layer.
layerVersionArn This property is required. String
The name or Amazon Resource Name (ARN) of the layer.
principal This property is required. 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).
organizationId String
With the principal set to *, grant permission to all accounts in the specified organization.

Outputs

All input properties are implicitly available as output properties. Additionally, the LayerVersionPermission resource produces the following output properties:

AwsId string
ID generated by service
Id string
The provider-assigned unique ID for this managed resource.
AwsId string
ID generated by service
Id string
The provider-assigned unique ID for this managed resource.
awsId String
ID generated by service
id String
The provider-assigned unique ID for this managed resource.
awsId string
ID generated by service
id string
The provider-assigned unique ID for this managed resource.
aws_id str
ID generated by service
id str
The provider-assigned unique ID for this managed resource.
awsId String
ID generated by service
id String
The provider-assigned unique ID for this managed resource.

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi