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
9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 | |