update_security_control
async
¶
update_security_control(
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = None,
security_control_id: Optional[NonEmptyString] = None,
parameters: Optional[Parameters] = None,
last_update_reason: Optional[AlphaNumericNonEmptyString] = None,
) -> UpdateSecurityControlResponse
Updates the properties of a security control.
Parameters:
-
security_control_id(Optional[NonEmptyString], default:None) –The Amazon Resource Name (ARN) or ID of the control to update.
-
parameters(Optional[Parameters], default:None) –An object that specifies which security control parameters to update.
-
last_update_reason(Optional[AlphaNumericNonEmptyString], default:None) –The most recent reason for updating the properties of the security control. This field accepts alphanumeric characters in addition to white spaces, dashes, and underscores.
Raises:
-
AccessDeniedException–You don't have permission to perform the action specified in the request.
-
InternalException–Internal server error.
-
InvalidAccessException–The account doesn't have permission to perform this action.
-
InvalidInputException–The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
-
LimitExceededException–The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
-
ResourceInUseException–The request was rejected because it conflicts with the resource's availability. For example, you tried to update a security control that's currently in the
UPDATINGstate. -
ResourceNotFoundException–The request was rejected because we can't find the specified resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update security control properties The following example updates the specified security control. Specifically, this example updates control parameters.
>>> await client.update_security_control(security_control_id='ACM.1', parameters={'maxCredentialUsageAge': {'ValueType': 'CUSTOM', 'Value': {'Integer': 15}}}, last_update_reason='Comply with internal requirements')
Source code in docs_src/capo_securityhub/_services/async_security_hub.py
8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 | |