update_notify_configuration
¶
update_notify_configuration(
notify_configuration_id: NotifyConfigurationIdOrArn,
*,
config_overrides: Optional[PinpointSMSVoiceV2ClientConfig] = None,
default_template_id: Optional[NotifyTemplateId] = None,
pool_id: Optional[NotifyPoolIdOrUnset] = None,
enabled_countries: Optional[IsoCountryCodeList] = None,
enabled_channels: Optional[NotifyEnabledChannelsList] = None,
deletion_protection_enabled: Optional[bool] = None,
) -> UpdateNotifyConfigurationResult
Updates an existing notify configuration. You can update the default template, pool association, enabled channels, enabled countries, and deletion protection settings.
Parameters:
-
notify_configuration_id(NotifyConfigurationIdOrArn) –The identifier of the notify configuration to update. The NotifyConfigurationId can be found using the DescribeNotifyConfigurations operation.
-
default_template_id(Optional[NotifyTemplateId], default:None) –The default template identifier to associate with the notify configuration. If specified, this template is used when sending messages without an explicit template identifier. Pass the special value
UNSET_DEFAULT_TEMPLATEto clear the current default template from the notify configuration. -
pool_id(Optional[NotifyPoolIdOrUnset], default:None) –The pool identifier or Amazon Resource Name (ARN) to associate with the notify configuration. Pass the special value
UNSET_DEFAULT_POOL_FOR_NOTIFYto clear the current default pool from the notify configuration. -
enabled_countries(Optional[IsoCountryCodeList], default:None) –An array of two-character ISO country codes, in ISO 3166-1 alpha-2 format, that are enabled for the notify configuration.
-
enabled_channels(Optional[NotifyEnabledChannelsList], default:None) –An array of channels to enable for the notify configuration. Supported values include
SMSandVOICE. -
deletion_protection_enabled(Optional[bool], default:None) –When set to true the notify configuration can't be deleted.
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.
Examples:
UpdateNotifyConfiguration Update a notify configuration to add voice channel and additional countries.
>>> client.update_notify_configuration(notify_configuration_id='nc-1234567890abcdef0', enabled_channels=['SMS', 'VOICE'], enabled_countries=['US', 'CA', 'GB'], deletion_protection_enabled=True)
Source code in docs_src/capo_pinpoint_sms_voice_v2/_services/pinpoint_sms_voice_v2.py
6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 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 | |