list_templates
async
¶
list_templates(
*,
config_overrides: Optional[AsyncPinpointClientConfig] = None,
next_token: Optional[__string] = None,
page_size: Optional[__string] = None,
prefix: Optional[__string] = None,
template_type: Optional[__string] = None,
) -> ListTemplatesResponse
Retrieves information about all the message templates that are associated with your Amazon Pinpoint account.
Parameters:
-
next_token(Optional[__string], default:None) –The string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.
-
page_size(Optional[__string], default:None) –The maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
-
prefix(Optional[__string], default:None) –The substring to match in the names of the message templates to include in the results. If you specify this value, Amazon Pinpoint returns only those templates whose names begin with the value that you specify.
-
template_type(Optional[__string], default:None) –The type of message template to include in the results. Valid values are: EMAIL, PUSH, SMS, and VOICE. To include all types of templates in the results, don't include this parameter in your request.
Raises:
-
BadRequestException–Provides information about an API request or response.
-
ForbiddenException–Provides information about an API request or response.
-
InternalServerErrorException–Provides information about an API request or response.
-
MethodNotAllowedException–Provides information about an API request or response.
-
TooManyRequestsException–Provides information about an API request or response.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_pinpoint/_services/async_pinpoint.py
5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 | |