disableImportFindingsForProduct method

Future<void> disableImportFindingsForProduct({
  1. required String productSubscriptionArn,
})

Disables the integration of the specified product with Security Hub. After the integration is disabled, findings from that product are no longer sent to Security Hub.

May throw InternalException. May throw InvalidInputException. May throw ResourceNotFoundException. May throw InvalidAccessException. May throw LimitExceededException.

Parameter productSubscriptionArn : The ARN of the integrated product to disable the integration for.

Implementation

Future<void> disableImportFindingsForProduct({
  required String productSubscriptionArn,
}) async {
  ArgumentError.checkNotNull(
      productSubscriptionArn, 'productSubscriptionArn');
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/productSubscriptions/${productSubscriptionArn.split('/').map(Uri.encodeComponent).join('/')}',
    exceptionFnMap: _exceptionFns,
  );
}