Skip to content

Commit 595e9bc

Browse files
author
AWS
committed
Amazon Simple Email Service Update: Fixes ListContacts and ListImportJobs APIs to use POST instead of GET.
1 parent e2c84a4 commit 595e9bc

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Simple Email Service",
4+
"contributor": "",
5+
"description": "Fixes ListContacts and ListImportJobs APIs to use POST instead of GET."
6+
}

services/sesv2/src/main/resources/codegen-resources/service-2.json

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"endpointPrefix":"email",
66
"jsonVersion":"1.1",
77
"protocol":"rest-json",
8+
"protocols":["rest-json"],
89
"serviceAbbreviation":"Amazon SES V2",
910
"serviceFullName":"Amazon Simple Email Service",
1011
"serviceId":"SESv2",
@@ -747,8 +748,8 @@
747748
"ListContacts":{
748749
"name":"ListContacts",
749750
"http":{
750-
"method":"GET",
751-
"requestUri":"/v2/email/contact-lists/{ContactListName}/contacts"
751+
"method":"POST",
752+
"requestUri":"/v2/email/contact-lists/{ContactListName}/contacts/list"
752753
},
753754
"input":{"shape":"ListContactsRequest"},
754755
"output":{"shape":"ListContactsResponse"},
@@ -862,8 +863,8 @@
862863
"ListImportJobs":{
863864
"name":"ListImportJobs",
864865
"http":{
865-
"method":"GET",
866-
"requestUri":"/v2/email/import-jobs"
866+
"method":"POST",
867+
"requestUri":"/v2/email/import-jobs/list"
867868
},
868869
"input":{"shape":"ListImportJobsRequest"},
869870
"output":{"shape":"ListImportJobsResponse"},
@@ -4557,15 +4558,11 @@
45574558
},
45584559
"PageSize":{
45594560
"shape":"MaxItems",
4560-
"documentation":"<p>The number of contacts that may be returned at once, which is dependent on if there are more or less contacts than the value of the PageSize. Use this parameter to paginate results. If additional contacts exist beyond the specified limit, the <code>NextToken</code> element is sent in the response. Use the <code>NextToken</code> value in subsequent requests to retrieve additional contacts.</p>",
4561-
"location":"querystring",
4562-
"locationName":"PageSize"
4561+
"documentation":"<p>The number of contacts that may be returned at once, which is dependent on if there are more or less contacts than the value of the PageSize. Use this parameter to paginate results. If additional contacts exist beyond the specified limit, the <code>NextToken</code> element is sent in the response. Use the <code>NextToken</code> value in subsequent requests to retrieve additional contacts.</p>"
45634562
},
45644563
"NextToken":{
45654564
"shape":"NextToken",
4566-
"documentation":"<p>A string token indicating that there might be additional contacts available to be listed. Use the token provided in the Response to use in the subsequent call to ListContacts with the same parameters to retrieve the next page of contacts.</p>",
4567-
"location":"querystring",
4568-
"locationName":"NextToken"
4565+
"documentation":"<p>A string token indicating that there might be additional contacts available to be listed. Use the token provided in the Response to use in the subsequent call to ListContacts with the same parameters to retrieve the next page of contacts.</p>"
45694566
}
45704567
}
45714568
},
@@ -4844,15 +4841,11 @@
48444841
},
48454842
"NextToken":{
48464843
"shape":"NextToken",
4847-
"documentation":"<p>A string token indicating that there might be additional import jobs available to be listed. Copy this token to a subsequent call to <code>ListImportJobs</code> with the same parameters to retrieve the next page of import jobs.</p>",
4848-
"location":"querystring",
4849-
"locationName":"NextToken"
4844+
"documentation":"<p>A string token indicating that there might be additional import jobs available to be listed. Copy this token to a subsequent call to <code>ListImportJobs</code> with the same parameters to retrieve the next page of import jobs.</p>"
48504845
},
48514846
"PageSize":{
48524847
"shape":"MaxItems",
4853-
"documentation":"<p>Maximum number of import jobs to return at once. Use this parameter to paginate results. If additional import jobs exist beyond the specified limit, the <code>NextToken</code> element is sent in the response. Use the <code>NextToken</code> value in subsequent requests to retrieve additional addresses.</p>",
4854-
"location":"querystring",
4855-
"locationName":"PageSize"
4848+
"documentation":"<p>Maximum number of import jobs to return at once. Use this parameter to paginate results. If additional import jobs exist beyond the specified limit, the <code>NextToken</code> element is sent in the response. Use the <code>NextToken</code> value in subsequent requests to retrieve additional addresses.</p>"
48564849
}
48574850
},
48584851
"documentation":"<p>Represents a request to list all of the import jobs for a data destination within the specified maximum number of import jobs.</p>"

0 commit comments

Comments
 (0)