Skip to content

Commit d92962d

Browse files
author
AWS
committed
AWS Invoicing Update: Added new invoicing get-invoice-pdf API Operation
1 parent 1f3f817 commit d92962d

File tree

2 files changed

+93
-8
lines changed

2 files changed

+93
-8
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": "AWS Invoicing",
4+
"contributor": "",
5+
"description": "Added new invoicing get-invoice-pdf API Operation"
6+
}

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

Lines changed: 87 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
{"shape":"ThrottlingException"},
3131
{"shape":"AccessDeniedException"}
3232
],
33-
"documentation":"<p>This gets the invoice profile associated with a set of accounts. The accounts must be linked accounts under the requester management account organization.</p>"
33+
"documentation":"<p>This gets the invoice profile associated with a set of accounts. The accounts must be linked accounts under the requester management account organization.</p>",
34+
"readonly":true
3435
},
3536
"CreateInvoiceUnit":{
3637
"name":"CreateInvoiceUnit",
@@ -65,6 +66,24 @@
6566
],
6667
"documentation":"<p>This deletes an invoice unit with the provided invoice unit ARN. </p>"
6768
},
69+
"GetInvoicePDF":{
70+
"name":"GetInvoicePDF",
71+
"http":{
72+
"method":"POST",
73+
"requestUri":"/"
74+
},
75+
"input":{"shape":"GetInvoicePDFRequest"},
76+
"output":{"shape":"GetInvoicePDFResponse"},
77+
"errors":[
78+
{"shape":"ResourceNotFoundException"},
79+
{"shape":"ValidationException"},
80+
{"shape":"InternalServerException"},
81+
{"shape":"ThrottlingException"},
82+
{"shape":"AccessDeniedException"}
83+
],
84+
"documentation":"<p>Returns a URL to download the invoice document and supplemental documents associated with an invoice. The URLs are pre-signed and have expiration time. For special cases like Brazil, where Amazon Web Services generated invoice identifiers and government provided identifiers do not match, use the Amazon Web Services generated invoice identifier when making API requests. To grant IAM permission to use this operation, the caller needs the <code>invoicing:GetInvoicePDF</code> policy action.</p>",
85+
"readonly":true
86+
},
6887
"GetInvoiceUnit":{
6988
"name":"GetInvoiceUnit",
7089
"http":{
@@ -80,7 +99,8 @@
8099
{"shape":"ThrottlingException"},
81100
{"shape":"AccessDeniedException"}
82101
],
83-
"documentation":"<p>This retrieves the invoice unit definition.</p>"
102+
"documentation":"<p>This retrieves the invoice unit definition.</p>",
103+
"readonly":true
84104
},
85105
"ListInvoiceSummaries":{
86106
"name":"ListInvoiceSummaries",
@@ -113,7 +133,8 @@
113133
{"shape":"ThrottlingException"},
114134
{"shape":"AccessDeniedException"}
115135
],
116-
"documentation":"<p>This fetches a list of all invoice unit definitions for a given account, as of the provided <code>AsOf</code> date.</p>"
136+
"documentation":"<p>This fetches a list of all invoice unit definitions for a given account, as of the provided <code>AsOf</code> date.</p>",
137+
"readonly":true
117138
},
118139
"ListTagsForResource":{
119140
"name":"ListTagsForResource",
@@ -130,7 +151,8 @@
130151
{"shape":"ThrottlingException"},
131152
{"shape":"AccessDeniedException"}
132153
],
133-
"documentation":"<p>Lists the tags for a resource. </p>"
154+
"documentation":"<p>Lists the tags for a resource. </p>",
155+
"readonly":true
134156
},
135157
"TagResource":{
136158
"name":"TagResource",
@@ -489,6 +511,25 @@
489511
},
490512
"documentation":"<p>An optional input to the list API. If multiple filters are specified, the returned list will be a configuration that match all of the provided filters. Supported filter types are <code>InvoiceReceivers</code>, <code>Names</code>, and <code>Accounts</code>. </p>"
491513
},
514+
"GetInvoicePDFRequest":{
515+
"type":"structure",
516+
"required":["InvoiceId"],
517+
"members":{
518+
"InvoiceId":{
519+
"shape":"StringWithoutNewLine",
520+
"documentation":"<p> Your unique invoice ID. </p>"
521+
}
522+
}
523+
},
524+
"GetInvoicePDFResponse":{
525+
"type":"structure",
526+
"members":{
527+
"InvoicePDF":{
528+
"shape":"InvoicePDF",
529+
"documentation":"<p> The invoice document and supplemental documents associated with the invoice. </p>"
530+
}
531+
}
532+
},
492533
"GetInvoiceUnitRequest":{
493534
"type":"structure",
494535
"required":["InvoiceUnitArn"],
@@ -577,6 +618,28 @@
577618
},
578619
"documentation":"<p> The amount charged after taxes, in the preferred currency. </p>"
579620
},
621+
"InvoicePDF":{
622+
"type":"structure",
623+
"members":{
624+
"InvoiceId":{
625+
"shape":"StringWithoutNewLine",
626+
"documentation":"<p> Your unique invoice ID. </p>"
627+
},
628+
"DocumentUrl":{
629+
"shape":"StringWithoutNewLine",
630+
"documentation":"<p>The pre-signed URL to download the invoice document. </p>"
631+
},
632+
"DocumentUrlExpirationDate":{
633+
"shape":"Timestamp",
634+
"documentation":"<p>The pre-signed URL expiration date of the invoice document.</p>"
635+
},
636+
"SupplementalDocuments":{
637+
"shape":"SupplementalDocuments",
638+
"documentation":"<p>List of supplemental documents associated with the invoice.</p>"
639+
}
640+
},
641+
"documentation":"<p> Invoice document data. </p>"
642+
},
580643
"InvoiceProfile":{
581644
"type":"structure",
582645
"members":{
@@ -1014,6 +1077,24 @@
10141077
"min":0,
10151078
"pattern":".*"
10161079
},
1080+
"SupplementalDocument":{
1081+
"type":"structure",
1082+
"members":{
1083+
"DocumentUrl":{
1084+
"shape":"StringWithoutNewLine",
1085+
"documentation":"<p>The pre-signed URL to download invoice supplemental document.</p>"
1086+
},
1087+
"DocumentUrlExpirationDate":{
1088+
"shape":"Timestamp",
1089+
"documentation":"<p>The pre-signed URL expiration date of invoice supplemental document.</p>"
1090+
}
1091+
},
1092+
"documentation":"<p>Supplemental document associated with the invoice.</p>"
1093+
},
1094+
"SupplementalDocuments":{
1095+
"type":"list",
1096+
"member":{"shape":"SupplementalDocument"}
1097+
},
10171098
"TagResourceRequest":{
10181099
"type":"structure",
10191100
"required":[
@@ -1033,8 +1114,7 @@
10331114
},
10341115
"TagResourceResponse":{
10351116
"type":"structure",
1036-
"members":{
1037-
}
1117+
"members":{}
10381118
},
10391119
"TagrisArn":{
10401120
"type":"string",
@@ -1107,8 +1187,7 @@
11071187
},
11081188
"UntagResourceResponse":{
11091189
"type":"structure",
1110-
"members":{
1111-
}
1190+
"members":{}
11121191
},
11131192
"UpdateInvoiceUnitRequest":{
11141193
"type":"structure",

0 commit comments

Comments
 (0)