publish_layer_version¶
Operation¶
publish_layer_version
¶
publish_layer_version(request: PublishLayerVersionInput | PublishLayerVersionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[PublishLayerVersionInputDict]) -> PublishLayerVersionOutput
Creates an Lambda
layer
from a ZIP archive. Each time you call PublishLayerVersion with the
same layer name, a new version is created.
Add layers to your function with CreateFunction or UpdateFunctionConfiguration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
PublishLayerVersionInput | PublishLayerVersionInputDict | None
|
The input as a model or dictionary. Pass this or keyword arguments, not both. |
None
|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
**kwargs
|
Unpack[PublishLayerVersionInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
PublishLayerVersionOutput
|
An instance of |
publish_layer_version
async
¶
publish_layer_version(request: PublishLayerVersionInput | PublishLayerVersionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[PublishLayerVersionInputDict]) -> PublishLayerVersionOutput
Creates an Lambda
layer
from a ZIP archive. Each time you call PublishLayerVersion with the
same layer name, a new version is created.
Add layers to your function with CreateFunction or UpdateFunctionConfiguration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
PublishLayerVersionInput | PublishLayerVersionInputDict | None
|
The input as a model or dictionary. Pass this or keyword arguments, not both. |
None
|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
**kwargs
|
Unpack[PublishLayerVersionInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
PublishLayerVersionOutput
|
An instance of |
Input¶
Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.
PublishLayerVersionInputDict
¶
Bases: TypedDict
Dictionary form of PublishLayerVersionInput.
Attributes¶
compatible_architectures
instance-attribute
¶
A list of compatible instruction set architectures.
compatible_runtimes
instance-attribute
¶
A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
content
instance-attribute
¶
The function layer archive.
layer_name
instance-attribute
¶
The name or Amazon Resource Name (ARN) of the layer.
license_info
instance-attribute
¶
license_info: str | None
The layer's software license. It can be any of the following:
-
An SPDX license identifier. For example,
MIT. -
The URL of a license hosted on the internet. For example,
https://opensource.org/licenses/MIT. -
The full text of the license.
PublishLayerVersionInput
dataclass
¶
Bases: _SerdeShape
Dataclass for PublishLayerVersionInput structure.
Attributes¶
compatible_architectures
class-attribute
instance-attribute
¶
A list of compatible instruction set architectures.
compatible_runtimes
class-attribute
instance-attribute
¶
A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
content
class-attribute
instance-attribute
¶
content: LayerVersionContentInput | None = ...
The function layer archive.
description
class-attribute
instance-attribute
¶
description: str | None = ...
The description of the version.
layer_name
class-attribute
instance-attribute
¶
layer_name: str | None = ...
The name or Amazon Resource Name (ARN) of the layer.
license_info
class-attribute
instance-attribute
¶
license_info: str | None = ...
The layer's software license. It can be any of the following:
-
An SPDX license identifier. For example,
MIT. -
The URL of a license hosted on the internet. For example,
https://opensource.org/licenses/MIT. -
The full text of the license.
Output¶
PublishLayerVersionOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for PublishLayerVersionOutput structure.
Attributes¶
compatible_architectures
class-attribute
instance-attribute
¶
A list of compatible instruction set architectures.
compatible_runtimes
class-attribute
instance-attribute
¶
The layer's compatible runtimes.
The following list includes deprecated runtimes. For more information, see Runtime use after deprecation.
For a list of all currently supported runtimes, see Supported runtimes.
content
class-attribute
instance-attribute
¶
content: LayerVersionContentOutput | None = ...
Details about the layer version.
created_date
class-attribute
instance-attribute
¶
created_date: str | None = ...
The date that the layer version was created, in ISO-8601
format (YYYY-MM-DDThhss.sTZD).
description
class-attribute
instance-attribute
¶
description: str | None = ...
The description of the version.
layer_version_arn
class-attribute
instance-attribute
¶
layer_version_arn: str | None = ...
The ARN of the layer version.
license_info
class-attribute
instance-attribute
¶
license_info: str | None = ...
The layer's software license.
response_metadata
class-attribute
instance-attribute
¶
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.