getAlias method
Returns details about a Lambda function alias.
May throw InvalidParameterValueException.
May throw ResourceNotFoundException.
May throw ServiceException.
May throw TooManyRequestsException.
Parameter functionName :
The name or ARN of the Lambda function.
Name formats
-
Function name -
MyFunction. -
Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction. -
Partial ARN -
123456789012:function:MyFunction.
Parameter name :
The name of the alias.
Implementation
Future<AliasConfiguration> getAlias({
required String functionName,
required String name,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/2015-03-31/functions/${Uri.encodeComponent(functionName)}/aliases/${Uri.encodeComponent(name)}',
exceptionFnMap: _exceptionFns,
);
return AliasConfiguration.fromJson(response);
}