aws-sdk-billing 1.0.0 → 1.2.0

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