enableSecurityHubFeatureV2 method

Future<void> enableSecurityHubFeatureV2({
  1. required FeatureName featureName,
})

Enables an opt-in feature for the calling account in the current Amazon Web Services Region. The service must be enabled before you can enable a feature. The operation is idempotent. If the feature is already enabled, no changes are made. You cannot enable a feature that is managed by an organization policy.

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

Parameter featureName : The name of the feature to enable.

Implementation

Future<void> enableSecurityHubFeatureV2({
  required FeatureName featureName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri: '/hubv2/feature/${Uri.encodeComponent(featureName.value)}',
    exceptionFnMap: _exceptionFns,
  );
}