{
  "version": "1.0",
  "examples": {
    "AssociateContract": [
      {
        "input": {
          "contractArn": "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
          "contractDocumentId": "CC OTH XXXXXXXX XXXX TR"
        },
        "output": {},
        "id": "example-1",
        "title": "Invoke AssociateContract"
      }
    ],
    "AssociateSourceViews": [
      {
        "input": {
          "arn": "arn:aws:billing::123456789012:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
          "sourceViews": [
            "arn:aws:billing::123456789012:billingview/primary",
            "arn:aws:billing::123456789012:billingview/custom-d3f9c7e4-8b2f-4a6e-9d3b-2f7c8a1e5f6d"
          ]
        },
        "output": {
          "arn": "arn:aws:billing::123456789012:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
        },
        "id": "example-1",
        "title": "Invoke AssociateSourceViews"
      }
    ],
    "CancelContractualInvestmentAttestation": [
      {
        "input": {
          "attestationId": "a1b2c3d4-5678-90ab-cdef-111122223333",
          "contractArn": "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
          "reason": "Example cancellation reason"
        },
        "output": {},
        "id": "example-1",
        "title": "Invoke CancelContractualInvestmentAttestation"
      }
    ],
    "CreateBillingView": [
      {
        "input": {
          "name": "Example Custom Billing View",
          "dataFilterExpression": {
            "dimensions": {
              "key": "LINKED_ACCOUNT",
              "values": [
                "000000000000"
              ]
            }
          },
          "description": "Custom Billing View Example",
          "sourceViews": [
            "arn:aws:billing::123456789101:billingview/primary"
          ]
        },
        "output": {
          "arn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
          "createdAt": 1719792001
        },
        "id": "example-1",
        "title": "Invoke CreateBillingView"
      }
    ],
    "CreateContractualInvestmentAttestation": [
      {
        "input": {
          "additionalRecipients": [
            {
              "email": "recipient@example.com"
            }
          ],
          "approverDetails": {
            "name": "First-Name Last-Name",
            "email": "first-name.last-name@example.com",
            "title": "Title"
          },
          "attestationDetails": {
            "attestationValue": {
              "attestationAmount": {
                "currencyAmount": "1.00",
                "currencyCode": "USD"
              }
            },
            "investmentDistributions": [
              {
                "accountId": "123456789012",
                "investmentAmount": {
                  "currencyAmount": "1.00",
                  "currencyCode": "USD"
                }
              }
            ]
          },
          "clientToken": "c0ffee00-1234-4abc-9def-0123456789ab",
          "contractArn": "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
          "contractDocumentId": "CC OTH XXXXXXXX XXXX TR",
          "investmentDisbursedAt": 1199923200,
          "investmentId": "Investment-Id",
          "investmentSummaryId": "Example-Investment-Summary-Id"
        },
        "output": {
          "attestationId": "a1b2c3d4-5678-90ab-cdef-111122223333"
        },
        "id": "example-1",
        "title": "Invoke CreateContractualInvestmentAttestation with a direct amount"
      },
      {
        "input": {
          "approverDetails": {
            "name": "First-Name Last-Name",
            "email": "first-name.last-name@example.com",
            "title": "Title"
          },
          "attestationDetails": {
            "attestationValue": {
              "attestationQuantities": [
                {
                  "attestationUnit": "Example attestation unit",
                  "attestationVolume": "3"
                }
              ]
            },
            "investmentDistributions": [
              {
                "accountId": "123456789012",
                "investmentAmount": {
                  "currencyAmount": "1500.00",
                  "currencyCode": "USD"
                }
              }
            ]
          },
          "clientToken": "c0ffee00-1234-4abc-9def-0123456789ac",
          "contractArn": "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
          "contractDocumentId": "CC OTH XXXXXXXX XXXX TR",
          "investmentDisbursedAt": 1199923200,
          "investmentId": "Investment-Id",
          "investmentSummaryId": "Example-Investment-Summary-Id"
        },
        "output": {
          "attestationId": "b2c3d4e5-6789-01bc-def0-222233334444"
        },
        "id": "example-2",
        "title": "Invoke CreateContractualInvestmentAttestation with a flat rate multiplier"
      },
      {
        "input": {
          "approverDetails": {
            "name": "First-Name Last-Name",
            "email": "first-name.last-name@example.com",
            "title": "Title"
          },
          "attestationDetails": {
            "attestationValue": {
              "attestationQuantities": [
                {
                  "attestationUnit": "Example attestation unit",
                  "attestationVolume": "1000"
                }
              ]
            },
            "investmentDistributions": [
              {
                "accountId": "123456789012",
                "investmentAmount": {
                  "currencyAmount": "150.00",
                  "currencyCode": "USD"
                }
              }
            ]
          },
          "clientToken": "c0ffee00-1234-4abc-9def-0123456789ad",
          "contractArn": "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
          "contractDocumentId": "CC OTH XXXXXXXX XXXX TR",
          "investmentDisbursedAt": 1199923200,
          "investmentId": "Investment-Id",
          "investmentSummaryId": "Example-Investment-Summary-Id"
        },
        "output": {
          "attestationId": "c3d4e5f6-7890-12cd-ef01-333344445555"
        },
        "id": "example-3",
        "title": "Invoke CreateContractualInvestmentAttestation with a percentage multiplier"
      }
    ],
    "DeleteBillingView": [
      {
        "input": {
          "arn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
        },
        "output": {
          "arn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
        },
        "id": "example-1",
        "title": "Invoke DeleteBillingView"
      }
    ],
    "DisassociateContract": [
      {
        "input": {
          "contractArn": "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333"
        },
        "output": {},
        "id": "example-1",
        "title": "Invoke DisassociateContract"
      }
    ],
    "DisassociateSourceViews": [
      {
        "input": {
          "arn": "arn:aws:billing::123456789012:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
          "sourceViews": [
            "arn:aws:billing::123456789012:billingview/primary",
            "arn:aws:billing::123456789012:billingview/custom-d3f9c7e4-8b2f-4a6e-9d3b-2f7c8a1e5f6d"
          ]
        },
        "output": {
          "arn": "arn:aws:billing::123456789012:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
        },
        "id": "example-1",
        "title": "Invoke DisassociateSourceViews"
      }
    ],
    "GetBillingView": [
      {
        "input": {
          "arn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
        },
        "output": {
          "billingView": {
            "name": "Example Custom Billing View",
            "arn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
            "billingViewType": "CUSTOM",
            "dataFilterExpression": {
              "dimensions": {
                "key": "LINKED_ACCOUNT",
                "values": [
                  "000000000000"
                ]
              }
            },
            "description": "Custom Billing View Example -- updated description",
            "ownerAccountId": "123456789101"
          }
        },
        "id": "example-1",
        "title": "Invoke GetBillingView"
      }
    ],
    "GetContractInformation": [
      {
        "input": {
          "contractArn": "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333"
        },
        "output": {
          "contract": {
            "privatePricingAddendum": {
              "contractArn": "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
              "contractTerm": {
                "endDateInclusive": 1222222222,
                "startDateInclusive": 1111111111
              },
              "eligiblePayerAccounts": [
                "123456789012",
                "210987654321"
              ],
              "investmentAccounts": [
                "123456789012"
              ],
              "legalEntities": [
                {
                  "legalEntityName": "Example Legal Entity Name"
                }
              ]
            }
          }
        },
        "id": "example-1",
        "title": "Invoke GetContractInformation"
      }
    ],
    "GetResourcePolicy": [
      {
        "input": {
          "resourceArn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
        },
        "output": {
          "policy": "{\"Version\":\"2012-10-17\",\"Id\":\"46f47cb2-a11d-43f3-983d-470b5708a899\",\"Statement\":[{\"Sid\":\"ExampleStatement1\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::000000000000:root\"},\"Action\":[\"ce:GetDimensionValues\",\"ce:GetCostAndUsageWithResources\",\"ce:GetCostAndUsage\",\"ce:GetCostForecast\",\"ce:GetTags\",\"ce:GetUsageForecast\",\"ce:GetCostCategories\",\"billing:GetBillingView\"],\"Resource\":\"arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899\"}]}",
          "resourceArn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
        },
        "id": "example-1",
        "title": "Invoke GetResourcePolicy"
      }
    ],
    "ListBillingViewSegments": [
      {
        "input": {
          "timeRange": {
            "beginDateInclusive": 1719792000,
            "endDateExclusive": 1722470400
          }
        },
        "output": {
          "items": [
            {
              "billingGroupPrimaryAccountId": "333333333333",
              "billingTransferAccountId": "111111111111",
              "domain": "BILLABLE",
              "managementAccountId": "222222222222",
              "timeRange": {
                "beginDateInclusive": 1719792000,
                "endDateExclusive": 1722470400
              }
            }
          ]
        },
        "id": "example-1",
        "title": "Invoke ListBillingViewSegments"
      },
      {
        "input": {
          "timeRange": {
            "beginDateInclusive": 1722470400,
            "endDateExclusive": 1719792000
          }
        },
        "id": "example-2",
        "title": "Error example for ListBillingViewSegments"
      }
    ],
    "ListBillingViews": [
      {
        "input": {
          "activeTimeRange": {
            "activeAfterInclusive": 1719792000,
            "activeBeforeInclusive": 1722470399.999
          }
        },
        "output": {
          "billingViews": [
            {
              "name": "Primary Billing View Account 123456789101",
              "arn": "arn:aws:billing::123456789101:billingview/primary",
              "billingViewType": "PRIMARY",
              "ownerAccountId": "123456789101"
            }
          ]
        },
        "id": "example-1",
        "title": "Invoke ListBillingViews"
      },
      {
        "input": {
          "activeTimeRange": {
            "activeAfterInclusive": 1719792001,
            "activeBeforeInclusive": 1719792000
          }
        },
        "id": "example-2",
        "title": "Error example for ListBillingViews"
      }
    ],
    "ListContracts": [
      {
        "input": {
          "maxResults": 100
        },
        "output": {
          "items": [
            {
              "associationStatus": "ASSOCIATED",
              "contractArn": "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
              "contractTerm": {
                "endDateInclusive": 1222222222,
                "startDateInclusive": 1111111111
              },
              "contractType": "Cross-Service"
            }
          ]
        },
        "id": "example-1",
        "title": "Invoke ListContracts"
      }
    ],
    "ListContractualInvestmentAttestations": [
      {
        "input": {
          "contractArn": "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
          "maxResults": 25
        },
        "output": {
          "items": [
            {
              "attestationId": "a1b2c3d4-5678-90ab-cdef-111122223333",
              "attestationStatus": "PENDING_CANCELLATION",
              "attestedAt": 1333333333,
              "attestedValue": {
                "currencyAmount": "1.00",
                "currencyCode": "USD"
              },
              "investmentId": "Investment-Id",
              "investmentName": "Example Investment Name",
              "investmentSummaryId": "Example-Investment-Summary-Id",
              "outcomeDescription": "Example outcome description",
              "updatedAt": 1444444444
            },
            {
              "attestationId": "b2c3d4e5-6789-01bc-def0-222233334444",
              "attestationStatus": "CANCELLED",
              "attestedAt": 1555555555,
              "attestedValue": {
                "currencyAmount": "1.00",
                "currencyCode": "USD"
              },
              "investmentId": "Investment-Id",
              "investmentName": "Example Investment Name",
              "investmentSummaryId": "Example-Investment-Summary-Id",
              "outcomeDescription": "Example outcome description",
              "updatedAt": 1666666666
            }
          ]
        },
        "id": "example-1",
        "title": "Invoke ListContractualInvestmentAttestations"
      }
    ],
    "ListContractualInvestmentSummaries": [
      {
        "input": {
          "contractArn": "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
          "maxResults": 100
        },
        "output": {
          "items": [
            {
              "investmentName": "Example Investment Name",
              "investmentSummaryId": "Example-Investment-Summary-Id",
              "investmentType": "OUTCOME_BASED",
              "maxAllowedInvestmentDisbursementValue": {
                "currencyAmount": "100000000.00",
                "currencyCode": "USD"
              }
            }
          ]
        },
        "id": "example-1",
        "title": "Invoke ListContractualInvestmentSummaries"
      }
    ],
    "ListContractualInvestments": [
      {
        "input": {
          "contractArn": "arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
          "investmentSummaryId": "Example-Investment-Summary-Id",
          "maxResults": 100
        },
        "output": {
          "items": [
            {
              "outcomeBasedInvestment": {
                "attestationWindow": {
                  "endDateInclusive": 1222222222,
                  "startDateInclusive": 1111111111
                },
                "disbursedValue": {
                  "currencyAmount": "0.00",
                  "currencyCode": "USD"
                },
                "investmentId": "Investment-Id",
                "investmentRestrictions": [
                  {
                    "amount": {
                      "currencyAmount": "50000.00",
                      "currencyCode": "USD"
                    }
                  }
                ],
                "outcomeDescription": "Example outcome description"
              }
            }
          ]
        },
        "id": "example-1",
        "title": "Invoke ListContractualInvestments"
      }
    ],
    "ListSourceViewsForBillingView": [
      {
        "input": {
          "arn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
        },
        "output": {
          "sourceViews": [
            "arn:aws:billing::123456789101:billingview/primary"
          ]
        },
        "id": "example-1",
        "title": "Invoke ListSourceViewsForBillingView"
      }
    ],
    "ListTagsForResource": [
      {
        "input": {
          "resourceArn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
        },
        "output": {
          "resourceTags": [
            {
              "key": "ExampleTagKey",
              "value": "ExampleTagValue"
            }
          ]
        },
        "id": "example-1",
        "title": "Invoke ListTagsForResource"
      }
    ],
    "TagResource": [
      {
        "input": {
          "resourceArn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
          "resourceTags": [
            {
              "key": "ExampleTagKey",
              "value": "ExampleTagValue"
            }
          ]
        },
        "output": {},
        "id": "example-1",
        "title": "Invoke TagResource"
      }
    ],
    "UntagResource": [
      {
        "input": {
          "resourceArn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
          "resourceTagKeys": [
            "ExampleTagKey"
          ]
        },
        "output": {},
        "id": "example-1",
        "title": "Invoke UntagResource"
      }
    ],
    "UpdateBillingView": [
      {
        "input": {
          "name": "Example Custom Billing View",
          "arn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
          "dataFilterExpression": {
            "dimensions": {
              "key": "LINKED_ACCOUNT",
              "values": [
                "000000000000"
              ]
            }
          },
          "description": "Custom Billing View Example -- updated description"
        },
        "output": {
          "arn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
          "updatedAt": 1719792001
        },
        "id": "example-1",
        "title": "Invoke UpdateBillingView"
      }
    ]
  }
}
