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 string
- The unique name of the resource.
- args LayerVersionPermissionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args LayerVersionPermissionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LayerVersionPermissionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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
The LayerVersionPermission resource accepts the following input properties:
- Action string
- The API action that grants access to the layer.
- Layer
Version stringArn - The name or Amazon Resource Name (ARN) of the layer.
- 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).
- Organization
Id string - With the principal set to *, grant permission to all accounts in the specified organization.
- Action string
- The API action that grants access to the layer.
- Layer
Version stringArn - The name or Amazon Resource Name (ARN) of the layer.
- 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).
- Organization
Id string - With the principal set to *, grant permission to all accounts in the specified organization.
- action String
- The API action that grants access to the layer.
- layer
Version StringArn - The name or Amazon Resource Name (ARN) of the layer.
- 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).
- organization
Id String - With the principal set to *, grant permission to all accounts in the specified organization.
- action string
- The API action that grants access to the layer.
- layer
Version stringArn - The name or Amazon Resource Name (ARN) of the layer.
- 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).
- organization
Id string - With the principal set to *, grant permission to all accounts in the specified organization.
- action str
- The API action that grants access to the layer.
- layer_
version_ strarn - The name or Amazon Resource Name (ARN) of the layer.
- principal 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 String
- The API action that grants access to the layer.
- layer
Version StringArn - The name or Amazon Resource Name (ARN) of the layer.
- 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).
- 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.