disableSecurityHubFeatureV2 method
Disables an opt-in feature for the calling account in the current Amazon Web Services Region. The operation is idempotent. If the feature is already disabled, no changes are made. You cannot disable 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 disable.
Implementation
Future<void> disableSecurityHubFeatureV2({
required FeatureName featureName,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/hubv2/feature/${Uri.encodeComponent(featureName.value)}',
exceptionFnMap: _exceptionFns,
);
}