We recommend new projects start with resources from the AWS provider.
aws-native.lambda.LayerVersionPermission
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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.
- Layer
Version Arn 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).
- Organization
Id 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.
- Layer
Version Arn 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).
- Organization
Id 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.
- layer
Version Arn 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).
- organization
Id 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.
- layer
Version Arn 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).
- organization
Id 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.
- layer
Version Arn 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).
- organization
Id 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:
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.