describeComponent method

Future<DescribeComponentResponse> describeComponent({
  1. required String arn,
})

Retrieves metadata for a version of a component.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter arn : The ARN of the component version.

Implementation

Future<DescribeComponentResponse> describeComponent({
  required String arn,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/greengrass/v2/components/${Uri.encodeComponent(arn)}/metadata',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeComponentResponse.fromJson(response);
}