describe_notify_templates
¶
describe_notify_templates(
*,
config_overrides: Optional[PinpointSMSVoiceV2ClientConfig] = 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.
>>> 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/pinpoint_sms_voice_v2.py
2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 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 | |