list_layers
¶
list_layers(
*,
config_overrides: Optional[LambdaClientConfig] = None,
compatible_architecture: Optional[Architecture] = None,
compatible_runtime: Optional[Runtime] = None,
marker: Optional[String] = None,
max_items: Optional[MaxLayerListItems] = None,
) -> ListLayersResponse
Lists Lambda layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime. Specify a compatible architecture to include only layers that are compatible with that instruction set 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.
-
marker(Optional[String], default:None) –A pagination token returned by a previous call.
-
max_items(Optional[MaxLayerListItems], default:None) –The maximum number of layers to return.
Raises:
-
InvalidParameterValueException–One of the parameters in the request is not valid.
-
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 the layers that are compatible with your function's runtime The following example returns information about layers that are compatible with the Python 3.7 runtime.
Source code in docs_src/capo_lambda/_services/_lambda.py
6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 | |