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 AWS Security Hub User Guide.

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

Parameter standardsSubscriptionRequests : The list of standards checks to enable.

Implementation

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