batchEnableStandards method

Future<BatchEnableStandardsResponse> batchEnableStandards({
  1. required List<StandardsSubscriptionRequest> standardsSubscriptionRequests,
})

Enables the standards specified by the provided StandardsArn. To obtain the ARN for a standard, use the DescribeStandards operation.

For more information, see the 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 standardsSubscriptionRequests : The list of standards checks to enable.

Implementation

Future<BatchEnableStandardsResponse> batchEnableStandards({
  required List<StandardsSubscriptionRequest> standardsSubscriptionRequests,
}) async {
  final $payload = <String, dynamic>{
    'StandardsSubscriptionRequests': standardsSubscriptionRequests,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/standards/register',
    exceptionFnMap: _exceptionFns,
  );
  return BatchEnableStandardsResponse.fromJson(response);
}