update_security_control
¶
update_security_control(
*,
config_overrides: Optional[SecurityHubClientConfig] = 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.
>>> 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/security_hub.py
8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 | |