{
  "version": "1.0",
  "examples": {
    "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"
      }
    ],
    "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"
      }
    ],
    "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"
      }
    ],
    "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"
      }
    ],
    "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"
      }
    ],
    "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"
      }
    ]
  }
}
