batchDisableStandards method

Future<BatchDisableStandardsResponse> batchDisableStandards({
  1. required List<String> standardsSubscriptionArns,
})

Disables the standards specified by the provided StandardsSubscriptionArns.

For more information, see Security Standards section of the Security Hub CSPM User Guide.

May throw AccessDeniedException. May throw InternalException. May throw InvalidAccessException. May throw InvalidInputException. May throw LimitExceededException.

Parameter standardsSubscriptionArns : The ARNs of the standards subscriptions to disable.

Implementation

Future<BatchDisableStandardsResponse> batchDisableStandards({
  required List<String> standardsSubscriptionArns,
}) async {
  final $payload = <String, dynamic>{
    'StandardsSubscriptionArns': standardsSubscriptionArns,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/standards/deregister',
    exceptionFnMap: _exceptionFns,
  );
  return BatchDisableStandardsResponse.fromJson(response);
}