describeComponent method
Retrieves metadata for a version of a component.
May throw ValidationException. May throw AccessDeniedException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalServerException.
Parameter arn
:
The ARN
of the component version.
Implementation
Future<DescribeComponentResponse> describeComponent({
required String arn,
}) async {
ArgumentError.checkNotNull(arn, 'arn');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/greengrass/v2/components/${Uri.encodeComponent(arn)}/metadata',
exceptionFnMap: _exceptionFns,
);
return DescribeComponentResponse.fromJson(response);
}