aws-sdk-billing 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79249fd9d1e3bc084892e91a00cb2c74f3d629eaa00cfdc81ea4dc4803340051
4
- data.tar.gz: c21e24f9221461854ac50cef1097e9ca0d925b7a6a751b35593b873e2acac2b3
3
+ metadata.gz: 0c9219c10a09ebe4b504609f5713643cdf5d35255f72282d524a9cc85b37b4b2
4
+ data.tar.gz: 6b15a9598a8c898bbf92c5c8e5c21e4adea6a619fdb81e9f4dc00bcad779120d
5
5
  SHA512:
6
- metadata.gz: 5a4d7abab9881441561e13be8da5b5e05cc4a201fbc6efb93ee37a23742d277066a5f95631a94db48947e2c92e2de638b75da45c1c777dd9cc0aa53f30efdd6e
7
- data.tar.gz: aafc3970f6b1e9bdbf5413ea838191aeb9a4846bdda93a3b152f73a02d5dd7b9a61fdf300d3a9797a1d81cf276873776c37522c5595fd4dbd1923a39b0d11595
6
+ metadata.gz: a378f2704efca38594fb1df31f286b48a67a90813107f30c6f92373d12889d333f38821c31daab3c244120079f7e30b28478fac80adf0626353c680818d6c3c7
7
+ data.tar.gz: c540f33b7b03aba7a76e135a1f8b8e74149cd593f7ffb43ec0e19da1652002518f96b65eb8695e2bdd94b2b3c84471056dedcbb405aff898c5ec7916e2b4e0c3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.1.0 (2024-12-20)
5
+ ------------------
6
+
7
+ * Feature - Added new API's for defining and fetching Billing Views.
8
+
4
9
  1.0.0 (2024-11-13)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -454,6 +454,262 @@ module Aws::Billing
454
454
 
455
455
  # @!group API Operations
456
456
 
457
+ # Creates a billing view with the specified billing view attributes.
458
+ #
459
+ # @option params [required, String] :name
460
+ # The name of the billing view.
461
+ #
462
+ # @option params [String] :description
463
+ # The description of the billing view.
464
+ #
465
+ # @option params [required, Array<String>] :source_views
466
+ # A list of billing views used as the data source for the custom billing
467
+ # view.
468
+ #
469
+ # @option params [Types::Expression] :data_filter_expression
470
+ # See [Expression][1]. Billing view only supports `LINKED_ACCOUNT` and
471
+ # `Tags`.
472
+ #
473
+ #
474
+ #
475
+ # [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html
476
+ #
477
+ # @option params [String] :client_token
478
+ # A unique, case-sensitive identifier you specify to ensure idempotency
479
+ # of the request. Idempotency ensures that an API request completes no
480
+ # more than one time. If the original request completes successfully,
481
+ # any subsequent retries complete successfully without performing any
482
+ # further actions with an idempotent request.
483
+ #
484
+ # **A suitable default value is auto-generated.** You should normally
485
+ # not need to pass this option.**
486
+ #
487
+ # @option params [Array<Types::ResourceTag>] :resource_tags
488
+ # A list of key value map specifying tags associated to the billing view
489
+ # being created.
490
+ #
491
+ # @return [Types::CreateBillingViewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
492
+ #
493
+ # * {Types::CreateBillingViewResponse#arn #arn} => String
494
+ # * {Types::CreateBillingViewResponse#created_at #created_at} => Time
495
+ #
496
+ #
497
+ # @example Example: Invoke CreateBillingView
498
+ #
499
+ # resp = client.create_billing_view({
500
+ # name: "Example Custom Billing View",
501
+ # data_filter_expression: {
502
+ # dimensions: {
503
+ # key: "LINKED_ACCOUNT",
504
+ # values: [
505
+ # "000000000000",
506
+ # ],
507
+ # },
508
+ # },
509
+ # description: "Custom Billing View Example",
510
+ # source_views: [
511
+ # "arn:aws:billing::123456789101:billingview/primary",
512
+ # ],
513
+ # })
514
+ #
515
+ # resp.to_h outputs the following:
516
+ # {
517
+ # arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
518
+ # created_at: Time.parse(1719792001),
519
+ # }
520
+ #
521
+ # @example Request syntax with placeholder values
522
+ #
523
+ # resp = client.create_billing_view({
524
+ # name: "BillingViewName", # required
525
+ # description: "BillingViewDescription",
526
+ # source_views: ["BillingViewArn"], # required
527
+ # data_filter_expression: {
528
+ # dimensions: {
529
+ # key: "LINKED_ACCOUNT", # required, accepts LINKED_ACCOUNT
530
+ # values: ["Value"], # required
531
+ # },
532
+ # tags: {
533
+ # key: "TagKey", # required
534
+ # values: ["Value"], # required
535
+ # },
536
+ # },
537
+ # client_token: "ClientToken",
538
+ # resource_tags: [
539
+ # {
540
+ # key: "ResourceTagKey", # required
541
+ # value: "ResourceTagValue",
542
+ # },
543
+ # ],
544
+ # })
545
+ #
546
+ # @example Response structure
547
+ #
548
+ # resp.arn #=> String
549
+ # resp.created_at #=> Time
550
+ #
551
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/CreateBillingView AWS API Documentation
552
+ #
553
+ # @overload create_billing_view(params = {})
554
+ # @param [Hash] params ({})
555
+ def create_billing_view(params = {}, options = {})
556
+ req = build_request(:create_billing_view, params)
557
+ req.send_request(options)
558
+ end
559
+
560
+ # Deletes the specified billing view.
561
+ #
562
+ # @option params [required, String] :arn
563
+ # The Amazon Resource Name (ARN) that can be used to uniquely identify
564
+ # the billing view.
565
+ #
566
+ # @return [Types::DeleteBillingViewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
567
+ #
568
+ # * {Types::DeleteBillingViewResponse#arn #arn} => String
569
+ #
570
+ #
571
+ # @example Example: Invoke DeleteBillingView
572
+ #
573
+ # resp = client.delete_billing_view({
574
+ # arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
575
+ # })
576
+ #
577
+ # resp.to_h outputs the following:
578
+ # {
579
+ # arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
580
+ # }
581
+ #
582
+ # @example Request syntax with placeholder values
583
+ #
584
+ # resp = client.delete_billing_view({
585
+ # arn: "BillingViewArn", # required
586
+ # })
587
+ #
588
+ # @example Response structure
589
+ #
590
+ # resp.arn #=> String
591
+ #
592
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/DeleteBillingView AWS API Documentation
593
+ #
594
+ # @overload delete_billing_view(params = {})
595
+ # @param [Hash] params ({})
596
+ def delete_billing_view(params = {}, options = {})
597
+ req = build_request(:delete_billing_view, params)
598
+ req.send_request(options)
599
+ end
600
+
601
+ # Returns the metadata associated to the specified billing view ARN.
602
+ #
603
+ # @option params [required, String] :arn
604
+ # The Amazon Resource Name (ARN) that can be used to uniquely identify
605
+ # the billing view.
606
+ #
607
+ # @return [Types::GetBillingViewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
608
+ #
609
+ # * {Types::GetBillingViewResponse#billing_view #billing_view} => Types::BillingViewElement
610
+ #
611
+ #
612
+ # @example Example: Invoke GetBillingView
613
+ #
614
+ # resp = client.get_billing_view({
615
+ # arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
616
+ # })
617
+ #
618
+ # resp.to_h outputs the following:
619
+ # {
620
+ # billing_view: {
621
+ # name: "Example Custom Billing View",
622
+ # arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
623
+ # billing_view_type: "CUSTOM",
624
+ # data_filter_expression: {
625
+ # dimensions: {
626
+ # key: "LINKED_ACCOUNT",
627
+ # values: [
628
+ # "000000000000",
629
+ # ],
630
+ # },
631
+ # },
632
+ # description: "Custom Billing View Example -- updated description",
633
+ # owner_account_id: "123456789101",
634
+ # },
635
+ # }
636
+ #
637
+ # @example Request syntax with placeholder values
638
+ #
639
+ # resp = client.get_billing_view({
640
+ # arn: "BillingViewArn", # required
641
+ # })
642
+ #
643
+ # @example Response structure
644
+ #
645
+ # resp.billing_view.arn #=> String
646
+ # resp.billing_view.name #=> String
647
+ # resp.billing_view.description #=> String
648
+ # resp.billing_view.billing_view_type #=> String, one of "PRIMARY", "BILLING_GROUP", "CUSTOM"
649
+ # resp.billing_view.owner_account_id #=> String
650
+ # resp.billing_view.data_filter_expression.dimensions.key #=> String, one of "LINKED_ACCOUNT"
651
+ # resp.billing_view.data_filter_expression.dimensions.values #=> Array
652
+ # resp.billing_view.data_filter_expression.dimensions.values[0] #=> String
653
+ # resp.billing_view.data_filter_expression.tags.key #=> String
654
+ # resp.billing_view.data_filter_expression.tags.values #=> Array
655
+ # resp.billing_view.data_filter_expression.tags.values[0] #=> String
656
+ # resp.billing_view.created_at #=> Time
657
+ # resp.billing_view.updated_at #=> Time
658
+ #
659
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/GetBillingView AWS API Documentation
660
+ #
661
+ # @overload get_billing_view(params = {})
662
+ # @param [Hash] params ({})
663
+ def get_billing_view(params = {}, options = {})
664
+ req = build_request(:get_billing_view, params)
665
+ req.send_request(options)
666
+ end
667
+
668
+ # Returns the resource-based policy document attached to the resource in
669
+ # `JSON` format.
670
+ #
671
+ # @option params [required, String] :resource_arn
672
+ # The Amazon Resource Name (ARN) of the billing view resource to which
673
+ # the policy is attached to.
674
+ #
675
+ # @return [Types::GetResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
676
+ #
677
+ # * {Types::GetResourcePolicyResponse#resource_arn #resource_arn} => String
678
+ # * {Types::GetResourcePolicyResponse#policy #policy} => String
679
+ #
680
+ #
681
+ # @example Example: Invoke GetResourcePolicy
682
+ #
683
+ # resp = client.get_resource_policy({
684
+ # resource_arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
685
+ # })
686
+ #
687
+ # resp.to_h outputs the following:
688
+ # {
689
+ # 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\"}]}",
690
+ # resource_arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
691
+ # }
692
+ #
693
+ # @example Request syntax with placeholder values
694
+ #
695
+ # resp = client.get_resource_policy({
696
+ # resource_arn: "ResourceArn", # required
697
+ # })
698
+ #
699
+ # @example Response structure
700
+ #
701
+ # resp.resource_arn #=> String
702
+ # resp.policy #=> String
703
+ #
704
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/GetResourcePolicy AWS API Documentation
705
+ #
706
+ # @overload get_resource_policy(params = {})
707
+ # @param [Hash] params ({})
708
+ def get_resource_policy(params = {}, options = {})
709
+ req = build_request(:get_resource_policy, params)
710
+ req.send_request(options)
711
+ end
712
+
457
713
  # Lists the billing views available for a given time period.
458
714
  #
459
715
  # Every Amazon Web Services account has a unique `PRIMARY` billing view
@@ -462,12 +718,22 @@ module Aws::Billing
462
718
  # representing pro forma costs associated with each created billing
463
719
  # group.
464
720
  #
465
- # @option params [required, Types::ActiveTimeRange] :active_time_range
721
+ # @option params [Types::ActiveTimeRange] :active_time_range
466
722
  # The time range for the billing views listed. `PRIMARY` billing view is
467
723
  # always listed. `BILLING_GROUP` billing views are listed for time
468
724
  # ranges when the associated billing group resource in Billing Conductor
469
725
  # is active. The time range must be within one calendar month.
470
726
  #
727
+ # @option params [Array<String>] :arns
728
+ # The Amazon Resource Name (ARN) that can be used to uniquely identify
729
+ # the billing view.
730
+ #
731
+ # @option params [Array<String>] :billing_view_types
732
+ # The type of billing view.
733
+ #
734
+ # @option params [String] :owner_account_id
735
+ # The list of owners of the billing view.
736
+ #
471
737
  # @option params [Integer] :max_results
472
738
  # The maximum number of billing views to retrieve. Default is 100.
473
739
  #
@@ -516,10 +782,13 @@ module Aws::Billing
516
782
  # @example Request syntax with placeholder values
517
783
  #
518
784
  # resp = client.list_billing_views({
519
- # active_time_range: { # required
785
+ # active_time_range: {
520
786
  # active_after_inclusive: Time.now, # required
521
787
  # active_before_inclusive: Time.now, # required
522
788
  # },
789
+ # arns: ["BillingViewArn"],
790
+ # billing_view_types: ["PRIMARY"], # accepts PRIMARY, BILLING_GROUP, CUSTOM
791
+ # owner_account_id: "AccountId",
523
792
  # max_results: 1,
524
793
  # next_token: "PageToken",
525
794
  # })
@@ -529,8 +798,9 @@ module Aws::Billing
529
798
  # resp.billing_views #=> Array
530
799
  # resp.billing_views[0].arn #=> String
531
800
  # resp.billing_views[0].name #=> String
801
+ # resp.billing_views[0].description #=> String
532
802
  # resp.billing_views[0].owner_account_id #=> String
533
- # resp.billing_views[0].billing_view_type #=> String, one of "PRIMARY", "BILLING_GROUP"
803
+ # resp.billing_views[0].billing_view_type #=> String, one of "PRIMARY", "BILLING_GROUP", "CUSTOM"
534
804
  # resp.next_token #=> String
535
805
  #
536
806
  # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/ListBillingViews AWS API Documentation
@@ -542,6 +812,281 @@ module Aws::Billing
542
812
  req.send_request(options)
543
813
  end
544
814
 
815
+ # Lists the source views (managed Amazon Web Services billing views)
816
+ # associated with the billing view.
817
+ #
818
+ # @option params [required, String] :arn
819
+ # The Amazon Resource Name (ARN) that can be used to uniquely identify
820
+ # the billing view.
821
+ #
822
+ # @option params [Integer] :max_results
823
+ # The number of entries a paginated response contains.
824
+ #
825
+ # @option params [String] :next_token
826
+ # The pagination token that is used on subsequent calls to list billing
827
+ # views.
828
+ #
829
+ # @return [Types::ListSourceViewsForBillingViewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
830
+ #
831
+ # * {Types::ListSourceViewsForBillingViewResponse#source_views #source_views} => Array&lt;String&gt;
832
+ # * {Types::ListSourceViewsForBillingViewResponse#next_token #next_token} => String
833
+ #
834
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
835
+ #
836
+ #
837
+ # @example Example: Invoke ListSourceViewsForBillingView
838
+ #
839
+ # resp = client.list_source_views_for_billing_view({
840
+ # arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
841
+ # })
842
+ #
843
+ # resp.to_h outputs the following:
844
+ # {
845
+ # source_views: [
846
+ # "arn:aws:billing::123456789101:billingview/primary",
847
+ # ],
848
+ # }
849
+ #
850
+ # @example Request syntax with placeholder values
851
+ #
852
+ # resp = client.list_source_views_for_billing_view({
853
+ # arn: "BillingViewArn", # required
854
+ # max_results: 1,
855
+ # next_token: "PageToken",
856
+ # })
857
+ #
858
+ # @example Response structure
859
+ #
860
+ # resp.source_views #=> Array
861
+ # resp.source_views[0] #=> String
862
+ # resp.next_token #=> String
863
+ #
864
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/ListSourceViewsForBillingView AWS API Documentation
865
+ #
866
+ # @overload list_source_views_for_billing_view(params = {})
867
+ # @param [Hash] params ({})
868
+ def list_source_views_for_billing_view(params = {}, options = {})
869
+ req = build_request(:list_source_views_for_billing_view, params)
870
+ req.send_request(options)
871
+ end
872
+
873
+ # Lists tags associated with the billing view resource.
874
+ #
875
+ # @option params [required, String] :resource_arn
876
+ # The Amazon Resource Name (ARN) of the resource.
877
+ #
878
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
879
+ #
880
+ # * {Types::ListTagsForResourceResponse#resource_tags #resource_tags} => Array&lt;Types::ResourceTag&gt;
881
+ #
882
+ #
883
+ # @example Example: Invoke ListTagsForResource
884
+ #
885
+ # resp = client.list_tags_for_resource({
886
+ # resource_arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
887
+ # })
888
+ #
889
+ # resp.to_h outputs the following:
890
+ # {
891
+ # resource_tags: [
892
+ # {
893
+ # key: "ExampleTagKey",
894
+ # value: "ExampleTagValue",
895
+ # },
896
+ # ],
897
+ # }
898
+ #
899
+ # @example Request syntax with placeholder values
900
+ #
901
+ # resp = client.list_tags_for_resource({
902
+ # resource_arn: "ResourceArn", # required
903
+ # })
904
+ #
905
+ # @example Response structure
906
+ #
907
+ # resp.resource_tags #=> Array
908
+ # resp.resource_tags[0].key #=> String
909
+ # resp.resource_tags[0].value #=> String
910
+ #
911
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/ListTagsForResource AWS API Documentation
912
+ #
913
+ # @overload list_tags_for_resource(params = {})
914
+ # @param [Hash] params ({})
915
+ def list_tags_for_resource(params = {}, options = {})
916
+ req = build_request(:list_tags_for_resource, params)
917
+ req.send_request(options)
918
+ end
919
+
920
+ # An API operation for adding one or more tags (key-value pairs) to a
921
+ # resource.
922
+ #
923
+ # @option params [required, String] :resource_arn
924
+ # The Amazon Resource Name (ARN) of the resource.
925
+ #
926
+ # @option params [required, Array<Types::ResourceTag>] :resource_tags
927
+ # A list of tag key value pairs that are associated with the resource.
928
+ #
929
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
930
+ #
931
+ #
932
+ # @example Example: Invoke TagResource
933
+ #
934
+ # resp = client.tag_resource({
935
+ # resource_arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
936
+ # resource_tags: [
937
+ # {
938
+ # key: "ExampleTagKey",
939
+ # value: "ExampleTagValue",
940
+ # },
941
+ # ],
942
+ # })
943
+ #
944
+ # resp.to_h outputs the following:
945
+ # {
946
+ # }
947
+ #
948
+ # @example Request syntax with placeholder values
949
+ #
950
+ # resp = client.tag_resource({
951
+ # resource_arn: "ResourceArn", # required
952
+ # resource_tags: [ # required
953
+ # {
954
+ # key: "ResourceTagKey", # required
955
+ # value: "ResourceTagValue",
956
+ # },
957
+ # ],
958
+ # })
959
+ #
960
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/TagResource AWS API Documentation
961
+ #
962
+ # @overload tag_resource(params = {})
963
+ # @param [Hash] params ({})
964
+ def tag_resource(params = {}, options = {})
965
+ req = build_request(:tag_resource, params)
966
+ req.send_request(options)
967
+ end
968
+
969
+ # Removes one or more tags from a resource. Specify only tag keys in
970
+ # your request. Don't specify the value.
971
+ #
972
+ # @option params [required, String] :resource_arn
973
+ # The Amazon Resource Name (ARN) of the resource.
974
+ #
975
+ # @option params [required, Array<String>] :resource_tag_keys
976
+ # A list of tag key value pairs that are associated with the resource.
977
+ #
978
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
979
+ #
980
+ #
981
+ # @example Example: Invoke UntagResource
982
+ #
983
+ # resp = client.untag_resource({
984
+ # resource_arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
985
+ # resource_tag_keys: [
986
+ # "ExampleTagKey",
987
+ # ],
988
+ # })
989
+ #
990
+ # resp.to_h outputs the following:
991
+ # {
992
+ # }
993
+ #
994
+ # @example Request syntax with placeholder values
995
+ #
996
+ # resp = client.untag_resource({
997
+ # resource_arn: "ResourceArn", # required
998
+ # resource_tag_keys: ["ResourceTagKey"], # required
999
+ # })
1000
+ #
1001
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/UntagResource AWS API Documentation
1002
+ #
1003
+ # @overload untag_resource(params = {})
1004
+ # @param [Hash] params ({})
1005
+ def untag_resource(params = {}, options = {})
1006
+ req = build_request(:untag_resource, params)
1007
+ req.send_request(options)
1008
+ end
1009
+
1010
+ # An API to update the attributes of the billing view.
1011
+ #
1012
+ # @option params [required, String] :arn
1013
+ # The Amazon Resource Name (ARN) that can be used to uniquely identify
1014
+ # the billing view.
1015
+ #
1016
+ # @option params [String] :name
1017
+ # The name of the billing view.
1018
+ #
1019
+ # @option params [String] :description
1020
+ # The description of the billing view.
1021
+ #
1022
+ # @option params [Types::Expression] :data_filter_expression
1023
+ # See [Expression][1]. Billing view only supports `LINKED_ACCOUNT` and
1024
+ # `Tags`.
1025
+ #
1026
+ #
1027
+ #
1028
+ # [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html
1029
+ #
1030
+ # @return [Types::UpdateBillingViewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1031
+ #
1032
+ # * {Types::UpdateBillingViewResponse#arn #arn} => String
1033
+ # * {Types::UpdateBillingViewResponse#updated_at #updated_at} => Time
1034
+ #
1035
+ #
1036
+ # @example Example: Invoke UpdateBillingView
1037
+ #
1038
+ # resp = client.update_billing_view({
1039
+ # name: "Example Custom Billing View",
1040
+ # arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
1041
+ # data_filter_expression: {
1042
+ # dimensions: {
1043
+ # key: "LINKED_ACCOUNT",
1044
+ # values: [
1045
+ # "000000000000",
1046
+ # ],
1047
+ # },
1048
+ # },
1049
+ # description: "Custom Billing View Example -- updated description",
1050
+ # })
1051
+ #
1052
+ # resp.to_h outputs the following:
1053
+ # {
1054
+ # arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
1055
+ # updated_at: Time.parse(1719792001),
1056
+ # }
1057
+ #
1058
+ # @example Request syntax with placeholder values
1059
+ #
1060
+ # resp = client.update_billing_view({
1061
+ # arn: "BillingViewArn", # required
1062
+ # name: "BillingViewName",
1063
+ # description: "BillingViewDescription",
1064
+ # data_filter_expression: {
1065
+ # dimensions: {
1066
+ # key: "LINKED_ACCOUNT", # required, accepts LINKED_ACCOUNT
1067
+ # values: ["Value"], # required
1068
+ # },
1069
+ # tags: {
1070
+ # key: "TagKey", # required
1071
+ # values: ["Value"], # required
1072
+ # },
1073
+ # },
1074
+ # })
1075
+ #
1076
+ # @example Response structure
1077
+ #
1078
+ # resp.arn #=> String
1079
+ # resp.updated_at #=> Time
1080
+ #
1081
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/UpdateBillingView AWS API Documentation
1082
+ #
1083
+ # @overload update_billing_view(params = {})
1084
+ # @param [Hash] params ({})
1085
+ def update_billing_view(params = {}, options = {})
1086
+ req = build_request(:update_billing_view, params)
1087
+ req.send_request(options)
1088
+ end
1089
+
545
1090
  # @!endgroup
546
1091
 
547
1092
  # @param params ({})
@@ -560,7 +1105,7 @@ module Aws::Billing
560
1105
  tracer: tracer
561
1106
  )
562
1107
  context[:gem_name] = 'aws-sdk-billing'
563
- context[:gem_version] = '1.0.0'
1108
+ context[:gem_version] = '1.1.0'
564
1109
  Seahorse::Client::Request.new(handlers, context)
565
1110
  end
566
1111