SecurityHub / Client / update_standards_control
update_standards_control¶
- SecurityHub.Client.update_standards_control(**kwargs)¶
Used to control whether an individual security standard control is enabled or disabled.
Calls to this operation return a
RESOURCE_NOT_FOUND_EXCEPTIONerror when the standard subscription for the control hasStandardsControlsUpdatablevalueNOT_READY_FOR_UPDATES.See also: AWS API Documentation
Request Syntax
response = client.update_standards_control( StandardsControlArn='string', ControlStatus='ENABLED'|'DISABLED', DisabledReason='string' )
- Parameters:
StandardsControlArn (string) –
[REQUIRED]
The ARN of the security standard control to enable or disable.
ControlStatus (string) – The updated status of the security standard control.
DisabledReason (string) – A description of the reason why you are disabling a security standard control. If you are disabling a control, then this is required.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions
SecurityHub.Client.exceptions.InternalExceptionSecurityHub.Client.exceptions.InvalidInputExceptionSecurityHub.Client.exceptions.InvalidAccessExceptionSecurityHub.Client.exceptions.ResourceNotFoundExceptionSecurityHub.Client.exceptions.AccessDeniedException