update_event_destination
¶
update_event_destination(
configuration_set_name: ConfigurationSetNameOrArn,
event_destination_name: EventDestinationName,
*,
config_overrides: Optional[PinpointSMSVoiceV2ClientConfig] = 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/pinpoint_sms_voice_v2.py
6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 | |