getLayerVersionByArn method

Future<GetLayerVersionResponse> getLayerVersionByArn({
  1. required String arn,
})

Returns information about a version of an AWS Lambda layer, with a link to download the layer archive that's valid for 10 minutes.

May throw ServiceException. May throw InvalidParameterValueException. May throw TooManyRequestsException. May throw ResourceNotFoundException.

Parameter arn : The ARN of the layer version.

Implementation

Future<GetLayerVersionResponse> getLayerVersionByArn({
  required String arn,
}) async {
  ArgumentError.checkNotNull(arn, 'arn');
  _s.validateStringLength(
    'arn',
    arn,
    1,
    140,
    isRequired: true,
  );
  final $query = <String, List<String>>{
    'Arn': [arn],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/2018-10-31/layers?find=LayerVersion',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetLayerVersionResponse.fromJson(response);
}