update_notify_configuration
async
¶
update_notify_configuration(
notify_configuration_id: NotifyConfigurationIdOrArn,
*,
config_overrides: Optional[AsyncPinpointSMSVoiceV2ClientConfig] = 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.
>>> await 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/async_pinpoint_sms_voice_v2.py
7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 | |