describeConnectionFunction method
Future<DescribeConnectionFunctionResult>
describeConnectionFunction({
- required String identifier,
- FunctionStage? stage,
Describes a connection function.
May throw AccessDenied.
May throw EntityNotFound.
May throw InvalidArgument.
May throw UnsupportedOperation.
Parameter identifier :
The connection function's identifier.
Parameter stage :
The connection function's stage.
Implementation
Future<DescribeConnectionFunctionResult> describeConnectionFunction({
required String identifier,
FunctionStage? stage,
}) async {
final $query = <String, List<String>>{
if (stage != null) 'Stage': [stage.value],
};
final $result = await _protocol.sendRaw(
method: 'GET',
requestUri:
'/2020-05-31/connection-function/${Uri.encodeComponent(identifier)}/describe',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return DescribeConnectionFunctionResult(
connectionFunctionSummary: ConnectionFunctionSummary.fromXml($elem),
eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
);
}