<?php
// This file was auto-generated from sdk-root/src/data/billing/2023-09-07/examples-1.json
return [ 'version' => '1.0', 'examples' => [ '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', ], ], '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', ], ], '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', ], ], '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', ], ], ],];
