update_event_destination
async
¶
update_event_destination(
configuration_set_name: ConfigurationSetNameOrArn,
event_destination_name: EventDestinationName,
*,
config_overrides: Optional[AsyncPinpointSMSVoiceV2ClientConfig] = None,
enabled: Optional[bool] = None,
matching_event_types: Optional[EventTypeList] = None,
cloud_watch_logs_destination: Optional[CloudWatchLogsDestination] = None,
kinesis_firehose_destination: Optional[KinesisFirehoseDestination] = None,
sns_destination: Optional[SnsDestination] = None,
) -> UpdateEventDestinationResult
Updates an existing event destination in a configuration set. You can update the IAM role ARN for CloudWatch Logs and Firehose. You can also enable or disable the event destination.
You may want to update an event destination to change its matching event types or updating the destination resource ARN. You can't change an event destination's type between CloudWatch Logs, Firehose, and Amazon SNS.
Parameters:
-
configuration_set_name(ConfigurationSetNameOrArn) –The configuration set to update with the new event destination. Valid values for this can be the ConfigurationSetName or ConfigurationSetArn.
-
event_destination_name(EventDestinationName) –The name to use for the event destination.
-
enabled(Optional[bool], default:None) –When set to true logging is enabled.
-
matching_event_types(Optional[EventTypeList], default:None) –An array of event types that determine which events to log.
The
TEXT_SENTevent type is not supported. -
cloud_watch_logs_destination(Optional[CloudWatchLogsDestination], default:None) –An object that contains information about an event destination that sends data to CloudWatch Logs.
-
kinesis_firehose_destination(Optional[KinesisFirehoseDestination], default:None) –An object that contains information about an event destination for logging to Firehose.
-
sns_destination(Optional[SnsDestination], default:None) –An object that contains information about an event destination that sends data to Amazon SNS.
Raises:
-
AccessDeniedException–The request was denied because you don't have sufficient permissions to access the resource.
-
ConflictException–Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time or it could be that the requested action isn't valid for the current state or configuration of the resource.
-
InternalServerException–The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.
-
ResourceNotFoundException–A requested resource couldn't be found.
-
ThrottlingException–An error that occurred because too many requests were sent during a certain amount of time.
-
ValidationException–A validation exception for a field.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_pinpoint_sms_voice_v2/_services/async_pinpoint_sms_voice_v2.py
6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 | |