Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pinpoint listTemplates method is not returning all documented fields #6021

Open
ontr2023 opened this issue Apr 6, 2024 · 1 comment
Open
Assignees
Labels
bug This issue is a bug. p3 This is a minor priority issue service-api This issue is due to a problem in a service API, not the SDK implementation.

Comments

@ontr2023
Copy link

ontr2023 commented Apr 6, 2024

Describe the bug

listTemplates function does not return the expected response.

ARN is a critical field which needs to be returned.

Expected Behavior

Expected response:

{ // ListTemplatesResponse
TemplatesResponse: { // TemplatesResponse
Item: [ // ListOfTemplateResponse // required
{ // TemplateResponse
Arn: "STRING_VALUE",
CreationDate: "STRING_VALUE", // required
DefaultSubstitutions: "STRING_VALUE",
LastModifiedDate: "STRING_VALUE", // required
tags: { // MapOf__string
"": "STRING_VALUE",
},
TemplateDescription: "STRING_VALUE",
TemplateName: "STRING_VALUE", // required
TemplateType: "EMAIL" || "SMS" || "VOICE" || "PUSH" || "INAPP", // required
Version: "STRING_VALUE",
},
],
NextToken: "STRING_VALUE",
},
};

Current Behavior

Current response:

{
"$metadata": {
"httpStatusCode": 200,
"requestId": "XXXX",
"cfId": "XXX",
"attempts": 1,
"totalRetryDelay": 0
},
"TemplatesResponse": {
"Item": [
{
"CreationDate": "2023-11-21T12:39:19.924Z",
"LastModifiedDate": "2024-03-18T22:02:29.208Z",
"TemplateName": "email_template",
"TemplateType": "EMAIL",
"Version": "2"
},
{
"CreationDate": "2023-12-06T11:27:19.965Z",
"LastModifiedDate": "2024-03-18T21:57:03.242Z",
"TemplateName": "sms_template",
"TemplateType": "SMS",
"Version": "2"
}
]
}
}

Reproduction Steps

Make a sample call per documentation.

https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint/command/ListTemplatesCommand/

Possible Solution

No response

Additional Information/Context

No response

SDK version used

"@aws-sdk/client-pinpoint": "^3.549.0"

Environment details (OS name and version, etc.)

MacOS Sonoma v14.4

@ontr2023 ontr2023 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Apr 6, 2024
@aBurmeseDev aBurmeseDev self-assigned this Apr 24, 2024
@aBurmeseDev aBurmeseDev removed the needs-triage This issue or PR still needs to be triaged. label Apr 24, 2024
@aBurmeseDev aBurmeseDev transferred this issue from aws/aws-sdk-js Apr 24, 2024
@aBurmeseDev
Copy link
Member

Hi @ontr2023 - thanks for reporting.

I was able to reproduce reported behavior with both JS SDK and AWS CLI, my guess is service API related. However, service documentation states that ARN isn't required property in TemplateResponse. I'm reaching out to Pinpoint team to get some clarification on this and will circle back here.

P127258770

@aBurmeseDev aBurmeseDev added service-api This issue is due to a problem in a service API, not the SDK implementation. p3 This is a minor priority issue labels Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. p3 This is a minor priority issue service-api This issue is due to a problem in a service API, not the SDK implementation.
Projects
None yet
Development

No branches or pull requests

2 participants