We recommend new projects start with resources from the AWS provider.
aws-native.lambda.LayerVersion
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::Lambda::LayerVersion
Create LayerVersion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LayerVersion(name: string, args: LayerVersionArgs, opts?: CustomResourceOptions);@overload
def LayerVersion(resource_name: str,
                 args: LayerVersionArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def LayerVersion(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 content: Optional[_lambda_.LayerVersionContentArgs] = None,
                 compatible_architectures: Optional[Sequence[str]] = None,
                 compatible_runtimes: Optional[Sequence[str]] = None,
                 description: Optional[str] = None,
                 layer_name: Optional[str] = None,
                 license_info: Optional[str] = None)func NewLayerVersion(ctx *Context, name string, args LayerVersionArgs, opts ...ResourceOption) (*LayerVersion, error)public LayerVersion(string name, LayerVersionArgs args, CustomResourceOptions? opts = null)
public LayerVersion(String name, LayerVersionArgs args)
public LayerVersion(String name, LayerVersionArgs args, CustomResourceOptions options)
type: aws-native:lambda:LayerVersion
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 LayerVersionArgs
- 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 LayerVersionArgs
- 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 LayerVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LayerVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LayerVersionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
LayerVersion 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 LayerVersion resource accepts the following input properties:
- Content
Pulumi.Aws Native. Lambda. Inputs. Layer Version Content 
- The function layer archive.
- CompatibleArchitectures List<string>
- A list of compatible instruction set architectures.
- CompatibleRuntimes List<string>
- A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.
- Description string
- The description of the version.
- LayerName string
- The name or Amazon Resource Name (ARN) of the layer.
- LicenseInfo string
- The layer's software license.
- Content
LayerVersion Content Args 
- The function layer archive.
- CompatibleArchitectures []string
- A list of compatible instruction set architectures.
- CompatibleRuntimes []string
- A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.
- Description string
- The description of the version.
- LayerName string
- The name or Amazon Resource Name (ARN) of the layer.
- LicenseInfo string
- The layer's software license.
- content
LayerVersion Content 
- The function layer archive.
- compatibleArchitectures List<String>
- A list of compatible instruction set architectures.
- compatibleRuntimes List<String>
- A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.
- description String
- The description of the version.
- layerName String
- The name or Amazon Resource Name (ARN) of the layer.
- licenseInfo String
- The layer's software license.
- content
LayerVersion Content 
- The function layer archive.
- compatibleArchitectures string[]
- A list of compatible instruction set architectures.
- compatibleRuntimes string[]
- A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.
- description string
- The description of the version.
- layerName string
- The name or Amazon Resource Name (ARN) of the layer.
- licenseInfo string
- The layer's software license.
- content
lambda_.Layer Version Content Args 
- The function layer archive.
- compatible_architectures Sequence[str]
- A list of compatible instruction set architectures.
- compatible_runtimes Sequence[str]
- A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.
- description str
- The description of the version.
- layer_name str
- The name or Amazon Resource Name (ARN) of the layer.
- license_info str
- The layer's software license.
- content Property Map
- The function layer archive.
- compatibleArchitectures List<String>
- A list of compatible instruction set architectures.
- compatibleRuntimes List<String>
- A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.
- description String
- The description of the version.
- layerName String
- The name or Amazon Resource Name (ARN) of the layer.
- licenseInfo String
- The layer's software license.
Outputs
All input properties are implicitly available as output properties. Additionally, the LayerVersion resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- LayerVersion stringArn 
- The ARN of the layer version.
- Id string
- The provider-assigned unique ID for this managed resource.
- LayerVersion stringArn 
- The ARN of the layer version.
- id String
- The provider-assigned unique ID for this managed resource.
- layerVersion StringArn 
- The ARN of the layer version.
- id string
- The provider-assigned unique ID for this managed resource.
- layerVersion stringArn 
- The ARN of the layer version.
- id str
- The provider-assigned unique ID for this managed resource.
- layer_version_ strarn 
- The ARN of the layer version.
- id String
- The provider-assigned unique ID for this managed resource.
- layerVersion StringArn 
- The ARN of the layer version.
Supporting Types
LayerVersionContent, LayerVersionContentArgs      
- S3Bucket string
- The Amazon S3 bucket of the layer archive.
- S3Key string
- The Amazon S3 key of the layer archive.
- S3ObjectVersion string
- For versioned objects, the version of the layer archive object to use.
- S3Bucket string
- The Amazon S3 bucket of the layer archive.
- S3Key string
- The Amazon S3 key of the layer archive.
- S3ObjectVersion string
- For versioned objects, the version of the layer archive object to use.
- s3Bucket String
- The Amazon S3 bucket of the layer archive.
- s3Key String
- The Amazon S3 key of the layer archive.
- s3ObjectVersion String
- For versioned objects, the version of the layer archive object to use.
- s3Bucket string
- The Amazon S3 bucket of the layer archive.
- s3Key string
- The Amazon S3 key of the layer archive.
- s3ObjectVersion string
- For versioned objects, the version of the layer archive object to use.
- s3_bucket str
- The Amazon S3 bucket of the layer archive.
- s3_key str
- The Amazon S3 key of the layer archive.
- s3_object_ strversion 
- For versioned objects, the version of the layer archive object to use.
- s3Bucket String
- The Amazon S3 bucket of the layer archive.
- s3Key String
- The Amazon S3 key of the layer archive.
- s3ObjectVersion String
- For versioned objects, the version of the layer archive object to use.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.