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
8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 | |