describe_notify_templates
async
¶
describe_notify_templates(
*,
config_overrides: Optional[AsyncPinpointSMSVoiceV2ClientConfig] = None,
template_ids: Optional[NotifyTemplateIdList] = None,
filters: Optional[NotifyTemplateFilterList] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> DescribeNotifyTemplatesResult
Describes the specified notify templates or all notify templates in your account.
If you specify template IDs, the output includes information for only the specified notify templates. If you specify filters, the output includes information for only those notify templates that meet the filter criteria. If you don't specify template IDs or filters, the output includes information for all notify templates.
If you specify a template ID that isn't valid, an error is returned.
Parameters:
-
template_ids(Optional[NotifyTemplateIdList], default:None) –An array of template IDs to describe.
-
filters(Optional[NotifyTemplateFilterList], default:None) –An array of NotifyTemplateFilter objects to filter the results on.
-
next_token(Optional[NextToken], default:None) –The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return per each request.
Raises:
-
AccessDeniedException–The request was denied because you don't have sufficient permissions to access 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:
DescribeNotifyTemplates Describe available notify templates for OTP verification over SMS.
>>> await client.describe_notify_templates(filters=[{'Name': 'template-type', 'Values': ['OTP_VERIFICATION']}, {'Name': 'channels', 'Values': ['SMS']}], max_results=10)
Source code in docs_src/capo_pinpoint_sms_voice_v2/_services/async_pinpoint_sms_voice_v2.py
2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 | |