invoice_pdfs
Creates, updates, deletes, gets or lists an invoice_pdfs resource.
Overview
| Name | invoice_pdfs |
| Type | Resource |
| Id | aws.invoicing.invoice_pdfs |
Fields
The following fields are returned by SELECT queries:
- get_invoice_pdf
| Name | Datatype | Description |
|---|---|---|
document_url | string | The pre-signed URL to download the invoice document. (pattern: <code>.*</code>) |
document_url_expiration_date | string (date-time) | The pre-signed URL expiration date of the invoice document. |
invoice_id | string | Your unique invoice ID. (pattern: <code>.*</code>) |
supplemental_documents | array | List of supplemental documents associated with the invoice. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_invoice_pdf | select | region | 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 invoicing:GetInvoicePDF policy action. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_invoice_pdf
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 invoicing:GetInvoicePDF policy action.
SELECT
document_url,
document_url_expiration_date,
invoice_id,
supplemental_documents
FROM aws.invoicing.invoice_pdfs
WHERE region = '{{ region }}' -- required
;