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
7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 | |