Skip to content

Commit c557ffa

Browse files
AWS Invoicing: Adds support for idempotency with a new ClientToken field for the CreateInvoiceUnit, DeleteInvoiceUnit, UpdateInvoiceUnit, DeleteProcurementPortalPreference, PutProcurementPortalPreference, and UpdateProcurementPortalPreferenceStatus APIs.
1 parent 60ba6fd commit c557ffa

2 files changed

Lines changed: 50 additions & 8 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Invoicing",
4+
"contributor": "",
5+
"description": "Adds support for idempotency with a new ClientToken field for the CreateInvoiceUnit, DeleteInvoiceUnit, UpdateInvoiceUnit, DeleteProcurementPortalPreference, PutProcurementPortalPreference, and UpdateProcurementPortalPreferenceStatus APIs."
6+
}

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

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
{"shape":"ThrottlingException"},
4848
{"shape":"AccessDeniedException"}
4949
],
50-
"documentation":"<p>This creates a new invoice unit with the provided definition.</p>"
50+
"documentation":"<p>This creates a new invoice unit with the provided definition.</p>",
51+
"idempotent":true
5152
},
5253
"CreateProcurementPortalPreference":{
5354
"name":"CreateProcurementPortalPreference",
@@ -83,7 +84,8 @@
8384
{"shape":"ThrottlingException"},
8485
{"shape":"AccessDeniedException"}
8586
],
86-
"documentation":"<p>This deletes an invoice unit with the provided invoice unit ARN. </p>"
87+
"documentation":"<p>This deletes an invoice unit with the provided invoice unit ARN. </p>",
88+
"idempotent":true
8789
},
8890
"DeleteProcurementPortalPreference":{
8991
"name":"DeleteProcurementPortalPreference",
@@ -101,7 +103,8 @@
101103
{"shape":"ThrottlingException"},
102104
{"shape":"AccessDeniedException"}
103105
],
104-
"documentation":"<p> <i> <b>This feature API is subject to changing at any time. For more information, see the <a href=\"https://aws.amazon.com/service-terms/\">Amazon Web Services Service Terms</a> (Betas and Previews).</b> </i> </p> <p>Deletes an existing procurement portal preference. This action cannot be undone. Active e-invoice delivery and PO retrieval configurations will be terminated.</p>"
106+
"documentation":"<p> <i> <b>This feature API is subject to changing at any time. For more information, see the <a href=\"https://aws.amazon.com/service-terms/\">Amazon Web Services Service Terms</a> (Betas and Previews).</b> </i> </p> <p>Deletes an existing procurement portal preference. This action cannot be undone. Active e-invoice delivery and PO retrieval configurations will be terminated.</p>",
107+
"idempotent":true
105108
},
106109
"GetInvoicePDF":{
107110
"name":"GetInvoicePDF",
@@ -245,7 +248,8 @@
245248
{"shape":"ThrottlingException"},
246249
{"shape":"AccessDeniedException"}
247250
],
248-
"documentation":"<p> <i> <b>This feature API is subject to changing at any time. For more information, see the <a href=\"https://aws.amazon.com/service-terms/\">Amazon Web Services Service Terms</a> (Betas and Previews).</b> </i> </p> <p>Updates an existing procurement portal preference configuration. This operation can modify settings for e-invoice delivery and purchase order retrieval.</p>"
251+
"documentation":"<p> <i> <b>This feature API is subject to changing at any time. For more information, see the <a href=\"https://aws.amazon.com/service-terms/\">Amazon Web Services Service Terms</a> (Betas and Previews).</b> </i> </p> <p>Updates an existing procurement portal preference configuration. This operation can modify settings for e-invoice delivery and purchase order retrieval.</p>",
252+
"idempotent":true
249253
},
250254
"TagResource":{
251255
"name":"TagResource",
@@ -297,7 +301,8 @@
297301
{"shape":"ThrottlingException"},
298302
{"shape":"AccessDeniedException"}
299303
],
300-
"documentation":"<p>You can update the invoice unit configuration at any time, and Amazon Web Services will use the latest configuration at the end of the month.</p>"
304+
"documentation":"<p>You can update the invoice unit configuration at any time, and Amazon Web Services will use the latest configuration at the end of the month.</p>",
305+
"idempotent":true
301306
},
302307
"UpdateProcurementPortalPreferenceStatus":{
303308
"name":"UpdateProcurementPortalPreferenceStatus",
@@ -316,7 +321,8 @@
316321
{"shape":"ThrottlingException"},
317322
{"shape":"AccessDeniedException"}
318323
],
319-
"documentation":"<p> <i> <b>This feature API is subject to changing at any time. For more information, see the <a href=\"https://aws.amazon.com/service-terms/\">Amazon Web Services Service Terms</a> (Betas and Previews).</b> </i> </p> <p>Updates the status of a procurement portal preference, including the activation state of e-invoice delivery and purchase order retrieval features.</p>"
324+
"documentation":"<p> <i> <b>This feature API is subject to changing at any time. For more information, see the <a href=\"https://aws.amazon.com/service-terms/\">Amazon Web Services Service Terms</a> (Betas and Previews).</b> </i> </p> <p>Updates the status of a procurement portal preference, including the activation state of e-invoice delivery and purchase order retrieval features.</p>",
325+
"idempotent":true
320326
}
321327
},
322328
"shapes":{
@@ -516,6 +522,11 @@
516522
"ResourceTags":{
517523
"shape":"ResourceTagList",
518524
"documentation":"<p> The tag structure that contains a tag key and value. </p>"
525+
},
526+
"ClientToken":{
527+
"shape":"BasicStringWithoutSpace",
528+
"documentation":"<p> A unique, case-sensitive identifier that you provide to ensure idempotency of the request. </p>",
529+
"idempotencyToken":true
519530
}
520531
}
521532
},
@@ -659,6 +670,11 @@
659670
"InvoiceUnitArn":{
660671
"shape":"InvoiceUnitArnString",
661672
"documentation":"<p> The ARN to identify an invoice unit. This information can't be modified or deleted. </p>"
673+
},
674+
"ClientToken":{
675+
"shape":"BasicStringWithoutSpace",
676+
"documentation":"<p> A unique, case-sensitive identifier that you provide to ensure idempotency of the request. </p>",
677+
"idempotencyToken":true
662678
}
663679
}
664680
},
@@ -678,6 +694,11 @@
678694
"ProcurementPortalPreferenceArn":{
679695
"shape":"ProcurementPortalPreferenceArnString",
680696
"documentation":"<p>The Amazon Resource Name (ARN) of the procurement portal preference to delete.</p>"
697+
},
698+
"ClientToken":{
699+
"shape":"BasicStringWithoutSpace",
700+
"documentation":"<p>A unique, case-sensitive identifier that you provide to ensure idempotency of the request.</p>",
701+
"idempotencyToken":true
681702
}
682703
}
683704
},
@@ -1302,7 +1323,7 @@
13021323
},
13031324
"NextToken":{
13041325
"shape":"NextTokenString",
1305-
"documentation":"<p>The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.</p>"
1326+
"documentation":"<p>The token for the next set of results. (You received this token from a previous call.)</p>"
13061327
},
13071328
"MaxResults":{
13081329
"shape":"InvoiceSummariesMaxResults",
@@ -1327,7 +1348,7 @@
13271348
},
13281349
"NextToken":{
13291350
"shape":"NextTokenString",
1330-
"documentation":"<p>The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.</p>"
1351+
"documentation":"<p>The token to use to retrieve the next set of results, or null if there are no more results.</p>"
13311352
}
13321353
}
13331354
},
@@ -1747,6 +1768,11 @@
17471768
"Contacts":{
17481769
"shape":"Contacts",
17491770
"documentation":"<p>Updated list of contact information for portal administrators and technical contacts.</p>"
1771+
},
1772+
"ClientToken":{
1773+
"shape":"BasicStringWithoutSpace",
1774+
"documentation":"<p>A unique, case-sensitive identifier that you provide to ensure idempotency of the request.</p>",
1775+
"idempotencyToken":true
17501776
}
17511777
}
17521778
},
@@ -2133,6 +2159,11 @@
21332159
"Rule":{
21342160
"shape":"InvoiceUnitRule",
21352161
"documentation":"<p>The <code>InvoiceUnitRule</code> object used to update invoice units. </p>"
2162+
},
2163+
"ClientToken":{
2164+
"shape":"BasicStringWithoutSpace",
2165+
"documentation":"<p> A unique, case-sensitive identifier that you provide to ensure idempotency of the request. </p>",
2166+
"idempotencyToken":true
21362167
}
21372168
}
21382169
},
@@ -2168,6 +2199,11 @@
21682199
"PurchaseOrderRetrievalPreferenceStatusReason":{
21692200
"shape":"BasicString",
21702201
"documentation":"<p>The reason for the purchase order retrieval preference status update, providing context for the change.</p>"
2202+
},
2203+
"ClientToken":{
2204+
"shape":"BasicStringWithoutSpace",
2205+
"documentation":"<p>A unique, case-sensitive identifier that you provide to ensure idempotency of the request.</p>",
2206+
"idempotencyToken":true
21712207
}
21722208
}
21732209
},

0 commit comments

Comments
 (0)