list_layers
async
¶
list_layers(
*,
config_overrides: Optional[AsyncLambdaClientConfig] = 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/async__lambda.py
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 6206 6207 6208 6209 6210 6211 | |