update_action_target
async
¶
update_action_target(
action_target_arn: NonEmptyString,
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = None,
name: Optional[NonEmptyString] = None,
description: Optional[NonEmptyString] = None,
) -> UpdateActionTargetResponse
Updates the name and description of a custom action target in Security Hub CSPM.
Parameters:
-
action_target_arn(NonEmptyString) –The ARN of the custom action target to update.
-
name(Optional[NonEmptyString], default:None) –The updated name of the custom action target.
-
description(Optional[NonEmptyString], default:None) –The updated description for the custom action target.
Raises:
-
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.
-
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 the name and description of a custom action target The following example updates the name and description of a custom action target in Security Hub. You can create custom actions to automatically respond to Security Hub findings using Amazon EventBridge.
>>> await client.update_action_target(action_target_arn='arn:aws:securityhub:us-west-1:123456789012:action/custom/Remediation', name='Chat custom action', description='Sends specified findings to customer service chat')
Source code in docs_src/capo_securityhub/_services/async_security_hub.py
8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 | |