deleteComponent method

Future<void> deleteComponent({
  1. required String arn,
})

Deletes a version of a component from AWS IoT Greengrass.

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

Parameter arn : The ARN of the component version.

Implementation

Future<void> deleteComponent({
  required String arn,
}) async {
  ArgumentError.checkNotNull(arn, 'arn');
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/greengrass/v2/components/${Uri.encodeComponent(arn)}',
    exceptionFnMap: _exceptionFns,
  );
}