SecurityHub / Client / enable_security_hub_feature_v2
enable_security_hub_feature_v2¶
- SecurityHub.Client.enable_security_hub_feature_v2(**kwargs)¶
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.
See also: AWS API Documentation
Request Syntax
response = client.enable_security_hub_feature_v2( FeatureName='NETWORK_SCANNING' )
- Parameters:
FeatureName (string) –
[REQUIRED]
The name of the feature to enable.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions
SecurityHub.Client.exceptions.AccessDeniedExceptionSecurityHub.Client.exceptions.InternalServerExceptionSecurityHub.Client.exceptions.ThrottlingExceptionSecurityHub.Client.exceptions.ResourceNotFoundExceptionSecurityHub.Client.exceptions.ValidationException