question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pinpoint listTemplates method is not returning all documented fields

See original GitHub issue

Confirm by changing [ ] to [x] below to ensure that it’s a bug:

Describe the bug According to the pinpoint.listTemplates description in the docs it should return the following fields

Arn — (String)
The Amazon Resource Name (ARN) of the message template.
 
CreationDate — required — (String)
The date when the message template was created.
 
DefaultSubstitutions — (String)
The JSON object that specifies the default values that are used for message variables in the message template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable.
 
LastModifiedDate — required — (String)
The date when the message template was last modified.
 
tags — (map<String>)
A string-to-string map of key-value pairs that identifies the tags that are associated with the message template. Each tag consists of a required tag key and an associated tag value.
 
TemplateDescription — (String)
The custom description of the message template.
 
TemplateName — required — (String)
The name of the message template.
 
TemplateType — required — (String)
The type of channel that the message template is designed for.
 
Possible values include:
"EMAIL"
"SMS"
"VOICE"
"PUSH"

But in fact this method only returns:

CreationDate, LastModifiedDate, TemplateName, TemplateType

Is the issue in the browser/Node.js? Node.js

If on Node.js, are you running this on AWS Lambda? Yes

Details of the browser/Node.js version 12.x

SDK version number Example: v2.466.0

  • For browsers, the SDK version number is in the script tag
    src=“…/aws-sdk-2.466.0.min.js”
  • For Node.js, get SDK version by
    • running command npm list aws-sdk from your root directory
    • printing the output of AWS.VERSION in your code where AWS = require("aws-sdk");

v2.585.0

To Reproduce (observed behavior) Steps to reproduce the behavior (please share code or minimal repo)

Run:

pinpoint.listTemplates()

Expected behavior The request should return all documented fields

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
leonardoborkcommented, Feb 19, 2020

@ajredniwja same thing needed here. need the tags!

1reaction
jimmyncommented, Dec 20, 2019

@ajredniwja hi, is there any update on this? Will those props be added to the api or this is just a documentation issue and we should not expect them?

Read more comments on GitHub >

github_iconTop Results From Across the Web

list-templates — AWS CLI 1.27.37 Command Reference
Retrieves information about all the message templates that are associated with your Amazon Pinpoint account. See also: AWS API Documentation ...
Read more >
PinpointClient (AWS SDK for Java - 2.19.2)
Retrieves information about all the message templates that are associated with your Amazon Pinpoint account. default ListTemplatesResponse. listTemplates( ...
Read more >
AWS Pinpoint in-depth intuition with Python (Boto3) - YouTube
Amazon Pinpoint is a flexible and scalable outbound and inbound marketing communications service.In this video , I have explained how to use ...
Read more >
pinpoint - Go Packages
Retrieves all the tags (keys and values) that are associated with an application, campaign, message template, or segment. func (*Client) ListTemplateVersions ¶.
Read more >
Introduction to lists - Microsoft Support
Learn the concepts behind choosing and using SharePoint Lists and how they can provide quick, effective solutions with little or no modifications.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found