list_layer_versions
async
¶
list_layer_versions(
layer_name: LayerName,
*,
config_overrides: Optional[AsyncLambdaClientConfig] = 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/async__lambda.py
6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 | |