update_notify_code_configuration
¶
update_notify_code_configuration(
notify_code_configuration_id: NotifyCodeConfigurationIdOrArn,
*,
config_overrides: Optional[EndUserMessagingClientConfig] = None,
notify_code_configuration_name: Optional[NotifyCodeConfigurationName] = None,
code_configuration_parameters: Optional[UpdateCodeConfigurationParameters] = None,
channel_parameters: Optional[UpdateChannelParameters] = None,
deletion_protection_enabled: Optional[bool] = None,
) -> UpdateNotifyCodeConfigurationOutput
Updates the mutable fields of a notify code configuration. Only the fields that you supply are changed. For the template and language fields, supplying an empty value clears the currently stored value.
Parameters:
-
notify_code_configuration_id(NotifyCodeConfigurationIdOrArn) –The unique identifier of the notify code configuration. You can specify either the bare ID or the full Amazon Resource Name (ARN).
-
notify_code_configuration_name(Optional[NotifyCodeConfigurationName], default:None) –The name of the notify code configuration.
-
code_configuration_parameters(Optional[UpdateCodeConfigurationParameters], default:None) –The updated passcode policy parameters, including the code type, length, validity period, and maximum number of attempts. When you omit a member, its current value is preserved.
-
channel_parameters(Optional[UpdateChannelParameters], default:None) –The updated channel-specific parameters used to render and deliver the one-time passcode. This is a loose, nested update: when you omit a channel, that channel's parameters remain unchanged. Within a supplied channel, an empty string on a string member, or an empty map on the destination-country parameters, clears the currently stored value, and absent members preserve the current value.
-
deletion_protection_enabled(Optional[bool], default:None) –Specifies whether deletion protection is enabled. When enabled, the resource cannot be deleted until deletion protection is turned off.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request conflicts with the current state of the resource.
-
InternalServerException–An unexpected error occurred during the processing of the request.
-
ResourceNotFoundException–The request references a resource that does not exist. Verify that the resource identifier is correct and try your request again.
-
ThrottlingException–The request was denied because it exceeded the allowed request rate.
-
ValidationException–A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Update a notify code configuration
>>> client.update_notify_code_configuration(notify_code_configuration_id='ncc-abc12345678901234', code_configuration_parameters={'codeLength': 8, 'validityPeriodMinutes': 15})
Source code in docs_src/capo_endusermessaging/_services/end_user_messaging.py
1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 | |