list_layer_versions
¶
list_layer_versions(
layer_name: LayerName,
*,
config_overrides: Optional[LambdaClientConfig] = None,
compatible_architecture: Optional[Architecture] = None,
compatible_runtime: Optional[Runtime] = None,
marker: Optional[String] = None,
max_items: Optional[MaxLayerListItems] = None,
) -> ListLayerVersionsResponse
Lists the versions of an Lambda layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime. Specify a compatible architecture to include only layer versions that are compatible with that architecture.
Parameters:
-
compatible_architecture(Optional[Architecture], default:None) –The compatible instruction set architecture.
-
compatible_runtime(Optional[Runtime], default:None) –A runtime identifier.
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.
-
layer_name(LayerName) –The name or Amazon Resource Name (ARN) of the layer.
-
marker(Optional[String], default:None) –A pagination token returned by a previous call.
-
max_items(Optional[MaxLayerListItems], default:None) –The maximum number of versions to return.
Raises:
-
InvalidParameterValueException–One of the parameters in the request is not valid.
-
ResourceNotFoundException–The resource specified in the request does not exist.
-
ServiceException–The Lambda service encountered an internal error.
-
TooManyRequestsException–The request throughput limit was exceeded. For more information, see Lambda quotas.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To list versions of a layer The following example displays information about the versions for the layer named blank-java-lib
Source code in docs_src/capo_lambda/_services/_lambda.py
6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 | |