aws-sdk-billingconductor 1.0.0 → 1.2.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: 00b824c8aac21f2766142de66795f4fb33754c96836792a861458fc435e86dc3
4
- data.tar.gz: 33cf1d4fa1773e08754a0672302d59f209ba38d91a8c7553d29fd4116f4c2d5a
3
+ metadata.gz: 5bcfbbcbf1e6510586ed4afe3169d2dbaf9af53368b268cffa421413c956a3a5
4
+ data.tar.gz: ae2bf99cf08ae54c58cbd81980a2b18889a568964f76fe9ca053c4f09097af6b
5
5
  SHA512:
6
- metadata.gz: bc402999d407b1dabce80a753c4155aedb665ccabdacb000743b75412c28795d36c8c2f6c108bfd43f60d4eda93597de743fd17cb07de466f0c4c9082edd07ff
7
- data.tar.gz: 1cd658ef3c27841b4c187a35b09780e1fb2cc9cc1b11265103e761cae23283831e1bd9df4d617d4ff663c894e62c3dad090646982e3ec4a41a03ce142eaf8238
6
+ metadata.gz: 34c61a52fad45d484e93b282a60621d73d0faf7264594516552c4039ca2212176f8bb77bba10a4e171fa5fb826e613a79cc1e9547070ab74b850628a0232106c
7
+ data.tar.gz: 44a05f1528385f3ab02a27b2e7fe473bce24212a9de2ee28703264719f5d936af9c7c55a7c5454648f228311a8da124c0cc5766de47efe51e4fe32e7c3ce4fb5
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.2.0 (2022-11-08)
5
+ ------------------
6
+
7
+ * Feature - This release adds the Recurring Custom Line Item feature along with a new API ListCustomLineItemVersions.
8
+
9
+ 1.1.0 (2022-10-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.0.0 (2022-03-16)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.2.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:billingconductor)
@@ -79,8 +79,9 @@ module Aws::BillingConductor
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::BillingConductor::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::BillingConductor
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::BillingConductor
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::BillingConductor::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::BillingConductor::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -446,7 +463,7 @@ module Aws::BillingConductor
446
463
  # resource_arns: ["CustomLineItemAssociationElement"], # required
447
464
  # billing_period_range: {
448
465
  # inclusive_start_billing_period: "BillingPeriod", # required
449
- # exclusive_end_billing_period: "BillingPeriod", # required
466
+ # exclusive_end_billing_period: "BillingPeriod",
450
467
  # },
451
468
  # })
452
469
  #
@@ -455,11 +472,11 @@ module Aws::BillingConductor
455
472
  # resp.successfully_associated_resources #=> Array
456
473
  # resp.successfully_associated_resources[0].arn #=> String
457
474
  # resp.successfully_associated_resources[0].error.message #=> String
458
- # resp.successfully_associated_resources[0].error.reason #=> String, one of "INVALID_ARN", "SERVICE_LIMIT_EXCEEDED", "ILLEGAL_CUSTOMLINEITEM", "INTERNAL_SERVER_EXCEPTION"
475
+ # resp.successfully_associated_resources[0].error.reason #=> String, one of "INVALID_ARN", "SERVICE_LIMIT_EXCEEDED", "ILLEGAL_CUSTOMLINEITEM", "INTERNAL_SERVER_EXCEPTION", "INVALID_BILLING_PERIOD_RANGE"
459
476
  # resp.failed_associated_resources #=> Array
460
477
  # resp.failed_associated_resources[0].arn #=> String
461
478
  # resp.failed_associated_resources[0].error.message #=> String
462
- # resp.failed_associated_resources[0].error.reason #=> String, one of "INVALID_ARN", "SERVICE_LIMIT_EXCEEDED", "ILLEGAL_CUSTOMLINEITEM", "INTERNAL_SERVER_EXCEPTION"
479
+ # resp.failed_associated_resources[0].error.reason #=> String, one of "INVALID_ARN", "SERVICE_LIMIT_EXCEEDED", "ILLEGAL_CUSTOMLINEITEM", "INTERNAL_SERVER_EXCEPTION", "INVALID_BILLING_PERIOD_RANGE"
463
480
  #
464
481
  # @see http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchAssociateResourcesToCustomLineItem AWS API Documentation
465
482
  #
@@ -494,7 +511,7 @@ module Aws::BillingConductor
494
511
  # resource_arns: ["CustomLineItemAssociationElement"], # required
495
512
  # billing_period_range: {
496
513
  # inclusive_start_billing_period: "BillingPeriod", # required
497
- # exclusive_end_billing_period: "BillingPeriod", # required
514
+ # exclusive_end_billing_period: "BillingPeriod",
498
515
  # },
499
516
  # })
500
517
  #
@@ -503,11 +520,11 @@ module Aws::BillingConductor
503
520
  # resp.successfully_disassociated_resources #=> Array
504
521
  # resp.successfully_disassociated_resources[0].arn #=> String
505
522
  # resp.successfully_disassociated_resources[0].error.message #=> String
506
- # resp.successfully_disassociated_resources[0].error.reason #=> String, one of "INVALID_ARN", "SERVICE_LIMIT_EXCEEDED", "ILLEGAL_CUSTOMLINEITEM", "INTERNAL_SERVER_EXCEPTION"
523
+ # resp.successfully_disassociated_resources[0].error.reason #=> String, one of "INVALID_ARN", "SERVICE_LIMIT_EXCEEDED", "ILLEGAL_CUSTOMLINEITEM", "INTERNAL_SERVER_EXCEPTION", "INVALID_BILLING_PERIOD_RANGE"
507
524
  # resp.failed_disassociated_resources #=> Array
508
525
  # resp.failed_disassociated_resources[0].arn #=> String
509
526
  # resp.failed_disassociated_resources[0].error.message #=> String
510
- # resp.failed_disassociated_resources[0].error.reason #=> String, one of "INVALID_ARN", "SERVICE_LIMIT_EXCEEDED", "ILLEGAL_CUSTOMLINEITEM", "INTERNAL_SERVER_EXCEPTION"
527
+ # resp.failed_disassociated_resources[0].error.reason #=> String, one of "INVALID_ARN", "SERVICE_LIMIT_EXCEEDED", "ILLEGAL_CUSTOMLINEITEM", "INTERNAL_SERVER_EXCEPTION", "INVALID_BILLING_PERIOD_RANGE"
511
528
  #
512
529
  # @see http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchDisassociateResourcesFromCustomLineItem AWS API Documentation
513
530
  #
@@ -544,7 +561,7 @@ module Aws::BillingConductor
544
561
  # The account ID that serves as the main account in a billing group.
545
562
  #
546
563
  # @option params [String] :description
547
- # The billing group description.
564
+ # The description of the billing group.
548
565
  #
549
566
  # @option params [Hash<String,String>] :tags
550
567
  # A map that contains tag keys and tag values that are attached to a
@@ -632,7 +649,7 @@ module Aws::BillingConductor
632
649
  # billing_group_arn: "BillingGroupArn", # required
633
650
  # billing_period_range: {
634
651
  # inclusive_start_billing_period: "BillingPeriod", # required
635
- # exclusive_end_billing_period: "BillingPeriod", # required
652
+ # exclusive_end_billing_period: "BillingPeriod",
636
653
  # },
637
654
  # tags: {
638
655
  # "TagKey" => "TagValue",
@@ -673,10 +690,11 @@ module Aws::BillingConductor
673
690
  # not need to pass this option.**
674
691
  #
675
692
  # @option params [required, String] :name
676
- # The pricing plan name. The names must be unique to each pricing plan.
693
+ # The name of the pricing plan. The names must be unique to each pricing
694
+ # plan.
677
695
  #
678
696
  # @option params [String] :description
679
- # The pricing plan description.
697
+ # The description of the pricing plan.
680
698
  #
681
699
  # @option params [Array<String>] :pricing_rule_arns
682
700
  # A list of Amazon Resource Names (ARNs) that define the pricing plan
@@ -719,7 +737,7 @@ module Aws::BillingConductor
719
737
  # of pricing plans.
720
738
  #
721
739
  # @option params [String] :client_token
722
- # The token that is needed to support idempotency. Idempotency isn't
740
+ # The token that's needed to support idempotency. Idempotency isn't
723
741
  # currently supported, but will be implemented in a future update.
724
742
  #
725
743
  # **A suitable default value is auto-generated.** You should normally
@@ -732,14 +750,14 @@ module Aws::BillingConductor
732
750
  # The pricing rule description.
733
751
  #
734
752
  # @option params [required, String] :scope
735
- # The scope of pricing rule that indicates if it is globally applicable,
736
- # or is service-specific.
753
+ # The scope of pricing rule that indicates if it's globally applicable,
754
+ # or it's service-specific.
737
755
  #
738
756
  # @option params [required, String] :type
739
757
  # The type of pricing rule.
740
758
  #
741
759
  # @option params [required, Float] :modifier_percentage
742
- # A percentage modifier applied on the public pricing rates.
760
+ # A percentage modifier that's applied on the public pricing rates.
743
761
  #
744
762
  # @option params [String] :service
745
763
  # If the `Scope` attribute is set to `SERVICE`, the attribute indicates
@@ -784,7 +802,8 @@ module Aws::BillingConductor
784
802
  # Deletes a billing group.
785
803
  #
786
804
  # @option params [required, String] :arn
787
- # The Amazon Resource Name (ARN) of the billing group you're deleting.
805
+ # The Amazon Resource Name (ARN) of the billing group that you're
806
+ # deleting.
788
807
  #
789
808
  # @return [Types::DeleteBillingGroupOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
790
809
  #
@@ -829,7 +848,7 @@ module Aws::BillingConductor
829
848
  # arn: "CustomLineItemArn", # required
830
849
  # billing_period_range: {
831
850
  # inclusive_start_billing_period: "BillingPeriod", # required
832
- # exclusive_end_billing_period: "BillingPeriod", # required
851
+ # exclusive_end_billing_period: "BillingPeriod",
833
852
  # },
834
853
  # })
835
854
  #
@@ -850,7 +869,8 @@ module Aws::BillingConductor
850
869
  # any billing groups to delete successfully.
851
870
  #
852
871
  # @option params [required, String] :arn
853
- # The Amazon Resource Name (ARN) of the pricing plan you're deleting.
872
+ # The Amazon Resource Name (ARN) of the pricing plan that you're
873
+ # deleting.
854
874
  #
855
875
  # @return [Types::DeletePricingPlanOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
856
876
  #
@@ -875,11 +895,12 @@ module Aws::BillingConductor
875
895
  req.send_request(options)
876
896
  end
877
897
 
878
- # Deletes the pricing rule identified by the input Amazon Resource Name
879
- # (ARN).
898
+ # Deletes the pricing rule that's identified by the input Amazon
899
+ # Resource Name (ARN).
880
900
  #
881
901
  # @option params [required, String] :arn
882
- # The Amazon Resource Name (ARN) of the pricing rule you are deleting.
902
+ # The Amazon Resource Name (ARN) of the pricing rule that you are
903
+ # deleting.
883
904
  #
884
905
  # @return [Types::DeletePricingRuleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
885
906
  #
@@ -972,17 +993,11 @@ module Aws::BillingConductor
972
993
  req.send_request(options)
973
994
  end
974
995
 
975
- # <i> <b>Amazon Web Services Billing Conductor is in beta release and is
976
- # subject to change. Your use of Amazon Web Services Billing Conductor
977
- # is subject to the Beta Service Participation terms of the <a
978
- # href="https://aws.amazon.com/service-terms/">Amazon Web Services
979
- # Service Terms</a> (Section 1.10).</b> </i>
980
- #
981
996
  # This is a paginated call to list linked accounts that are linked to
982
997
  # the payer account for the specified time period. If no information is
983
998
  # provided, the current billing period is used. The response will
984
- # optionally include the billing group associated with the linked
985
- # account.
999
+ # optionally include the billing group that's associated with the
1000
+ # linked account.
986
1001
  #
987
1002
  # @option params [String] :billing_period
988
1003
  # The preferred billing period to get account associations.
@@ -993,14 +1008,15 @@ module Aws::BillingConductor
993
1008
  #
994
1009
  # `MONITORED`\: linked accounts that are associated to billing groups.
995
1010
  #
996
- # `UNMONITORED`\: linked accounts that are not associated to billing
1011
+ # `UNMONITORED`\: linked accounts that aren't associated to billing
997
1012
  # groups.
998
1013
  #
999
1014
  # `Billing Group Arn`\: linked accounts that are associated to the
1000
1015
  # provided billing group Arn.
1001
1016
  #
1002
1017
  # @option params [String] :next_token
1003
- # The pagination token used on subsequent calls to retrieve accounts.
1018
+ # The pagination token that's used on subsequent calls to retrieve
1019
+ # accounts.
1004
1020
  #
1005
1021
  # @return [Types::ListAccountAssociationsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1006
1022
  #
@@ -1049,7 +1065,7 @@ module Aws::BillingConductor
1049
1065
  # The maximum number of reports to retrieve.
1050
1066
  #
1051
1067
  # @option params [String] :next_token
1052
- # The pagination token used on subsequent calls to get reports.
1068
+ # The pagination token that's used on subsequent calls to get reports.
1053
1069
  #
1054
1070
  # @option params [Types::ListBillingGroupCostReportsFilter] :filters
1055
1071
  # A `ListBillingGroupCostReportsFilter` to specify billing groups to
@@ -1104,7 +1120,8 @@ module Aws::BillingConductor
1104
1120
  # The maximum number of billing groups to retrieve.
1105
1121
  #
1106
1122
  # @option params [String] :next_token
1107
- # The pagination token used on subsequent calls to get billing groups.
1123
+ # The pagination token that's used on subsequent calls to get billing
1124
+ # groups.
1108
1125
  #
1109
1126
  # @option params [Types::ListBillingGroupsFilter] :filters
1110
1127
  # A `ListBillingGroupsFilter` that specifies the billing group and
@@ -1153,6 +1170,70 @@ module Aws::BillingConductor
1153
1170
  req.send_request(options)
1154
1171
  end
1155
1172
 
1173
+ # A paginated call to get a list of all custom line item versions.
1174
+ #
1175
+ # @option params [required, String] :arn
1176
+ # The Amazon Resource Name (ARN) for the custom line item.
1177
+ #
1178
+ # @option params [Integer] :max_results
1179
+ # The maximum number of custom line item versions to retrieve.
1180
+ #
1181
+ # @option params [String] :next_token
1182
+ # The pagination token that's used on subsequent calls to retrieve
1183
+ # custom line item versions.
1184
+ #
1185
+ # @option params [Types::ListCustomLineItemVersionsFilter] :filters
1186
+ # A `ListCustomLineItemVersionsFilter` that specifies the billing period
1187
+ # range in which the custom line item versions are applied.
1188
+ #
1189
+ # @return [Types::ListCustomLineItemVersionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1190
+ #
1191
+ # * {Types::ListCustomLineItemVersionsOutput#custom_line_item_versions #custom_line_item_versions} => Array&lt;Types::CustomLineItemVersionListElement&gt;
1192
+ # * {Types::ListCustomLineItemVersionsOutput#next_token #next_token} => String
1193
+ #
1194
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1195
+ #
1196
+ # @example Request syntax with placeholder values
1197
+ #
1198
+ # resp = client.list_custom_line_item_versions({
1199
+ # arn: "CustomLineItemArn", # required
1200
+ # max_results: 1,
1201
+ # next_token: "Token",
1202
+ # filters: {
1203
+ # billing_period_range: {
1204
+ # start_billing_period: "BillingPeriod",
1205
+ # end_billing_period: "BillingPeriod",
1206
+ # },
1207
+ # },
1208
+ # })
1209
+ #
1210
+ # @example Response structure
1211
+ #
1212
+ # resp.custom_line_item_versions #=> Array
1213
+ # resp.custom_line_item_versions[0].name #=> String
1214
+ # resp.custom_line_item_versions[0].charge_details.flat.charge_value #=> Float
1215
+ # resp.custom_line_item_versions[0].charge_details.percentage.percentage_value #=> Float
1216
+ # resp.custom_line_item_versions[0].charge_details.type #=> String, one of "CREDIT", "FEE"
1217
+ # resp.custom_line_item_versions[0].currency_code #=> String, one of "USD", "CNY"
1218
+ # resp.custom_line_item_versions[0].description #=> String
1219
+ # resp.custom_line_item_versions[0].product_code #=> String
1220
+ # resp.custom_line_item_versions[0].billing_group_arn #=> String
1221
+ # resp.custom_line_item_versions[0].creation_time #=> Integer
1222
+ # resp.custom_line_item_versions[0].last_modified_time #=> Integer
1223
+ # resp.custom_line_item_versions[0].association_size #=> Integer
1224
+ # resp.custom_line_item_versions[0].start_billing_period #=> String
1225
+ # resp.custom_line_item_versions[0].end_billing_period #=> String
1226
+ # resp.next_token #=> String
1227
+ #
1228
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItemVersions AWS API Documentation
1229
+ #
1230
+ # @overload list_custom_line_item_versions(params = {})
1231
+ # @param [Hash] params ({})
1232
+ def list_custom_line_item_versions(params = {}, options = {})
1233
+ req = build_request(:list_custom_line_item_versions, params)
1234
+ req.send_request(options)
1235
+ end
1236
+
1156
1237
  # A paginated call to get a list of all custom line items (FFLIs) for
1157
1238
  # the given billing period. If you don't provide a billing period, the
1158
1239
  # current billing period is used.
@@ -1164,8 +1245,8 @@ module Aws::BillingConductor
1164
1245
  # The maximum number of billing groups to retrieve.
1165
1246
  #
1166
1247
  # @option params [String] :next_token
1167
- # The pagination token used on subsequent calls to get custom line items
1168
- # (FFLIs).
1248
+ # The pagination token that's used on subsequent calls to get custom
1249
+ # line items (FFLIs).
1169
1250
  #
1170
1251
  # @option params [Types::ListCustomLineItemsFilter] :filters
1171
1252
  # A `ListCustomLineItemsFilter` that specifies the custom line item
@@ -1233,7 +1314,8 @@ module Aws::BillingConductor
1233
1314
  # The maximum number of pricing plans to retrieve.
1234
1315
  #
1235
1316
  # @option params [String] :next_token
1236
- # The pagination token used on subsequent call to get pricing plans.
1317
+ # The pagination token that's used on subsequent call to get pricing
1318
+ # plans.
1237
1319
  #
1238
1320
  # @return [Types::ListPricingPlansOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1239
1321
  #
@@ -1275,7 +1357,7 @@ module Aws::BillingConductor
1275
1357
  req.send_request(options)
1276
1358
  end
1277
1359
 
1278
- # A list of the pricing plans associated with a pricing rule.
1360
+ # A list of the pricing plans that are associated with a pricing rule.
1279
1361
  #
1280
1362
  # @option params [String] :billing_period
1281
1363
  # The pricing plan billing period for which associations will be listed.
@@ -1339,7 +1421,8 @@ module Aws::BillingConductor
1339
1421
  # The maximum number of pricing rules to retrieve.
1340
1422
  #
1341
1423
  # @option params [String] :next_token
1342
- # The pagination token used on subsequent call to get pricing rules.
1424
+ # The pagination token that's used on subsequent call to get pricing
1425
+ # rules.
1343
1426
  #
1344
1427
  # @return [Types::ListPricingRulesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1345
1428
  #
@@ -1385,7 +1468,7 @@ module Aws::BillingConductor
1385
1468
  req.send_request(options)
1386
1469
  end
1387
1470
 
1388
- # Lists the pricing rules associated with a pricing plan.
1471
+ # Lists the pricing rules that are associated with a pricing plan.
1389
1472
  #
1390
1473
  # @option params [String] :billing_period
1391
1474
  # The billing period for which the pricing rule associations are to be
@@ -1436,7 +1519,7 @@ module Aws::BillingConductor
1436
1519
  req.send_request(options)
1437
1520
  end
1438
1521
 
1439
- # List the resources associated to a custom line item.
1522
+ # List the resources that are associated to a custom line item.
1440
1523
  #
1441
1524
  # @option params [String] :billing_period
1442
1525
  # The billing period for which the resource associations will be listed.
@@ -1450,7 +1533,8 @@ module Aws::BillingConductor
1450
1533
  # retrieved.
1451
1534
  #
1452
1535
  # @option params [String] :next_token
1453
- # (Optional) The pagination token returned by a previous request.
1536
+ # (Optional) The pagination token that's returned by a previous
1537
+ # request.
1454
1538
  #
1455
1539
  # @option params [Types::ListResourcesAssociatedToCustomLineItemFilter] :filters
1456
1540
  # (Optional) A `ListResourcesAssociatedToCustomLineItemFilter` that can
@@ -1482,6 +1566,7 @@ module Aws::BillingConductor
1482
1566
  # resp.associated_resources #=> Array
1483
1567
  # resp.associated_resources[0].arn #=> String
1484
1568
  # resp.associated_resources[0].relationship #=> String, one of "PARENT", "CHILD"
1569
+ # resp.associated_resources[0].end_billing_period #=> String
1485
1570
  # resp.next_token #=> String
1486
1571
  #
1487
1572
  # @see http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListResourcesAssociatedToCustomLineItem AWS API Documentation
@@ -1679,7 +1764,7 @@ module Aws::BillingConductor
1679
1764
  #
1680
1765
  # resp = client.update_custom_line_item({
1681
1766
  # arn: "CustomLineItemArn", # required
1682
- # name: "BillingGroupName",
1767
+ # name: "CustomLineItemName",
1683
1768
  # description: "CustomLineItemDescription",
1684
1769
  # charge_details: {
1685
1770
  # flat: {
@@ -1691,7 +1776,7 @@ module Aws::BillingConductor
1691
1776
  # },
1692
1777
  # billing_period_range: {
1693
1778
  # inclusive_start_billing_period: "BillingPeriod", # required
1694
- # exclusive_end_billing_period: "BillingPeriod", # required
1779
+ # exclusive_end_billing_period: "BillingPeriod",
1695
1780
  # },
1696
1781
  # })
1697
1782
  #
@@ -1719,14 +1804,15 @@ module Aws::BillingConductor
1719
1804
  # This updates an existing pricing plan.
1720
1805
  #
1721
1806
  # @option params [required, String] :arn
1722
- # The Amazon Resource Name (ARN) of the pricing plan you're updating.
1807
+ # The Amazon Resource Name (ARN) of the pricing plan that you're
1808
+ # updating.
1723
1809
  #
1724
1810
  # @option params [String] :name
1725
1811
  # The name of the pricing plan. The name must be unique to each pricing
1726
1812
  # plan.
1727
1813
  #
1728
1814
  # @option params [String] :description
1729
- # The pricing plan description.
1815
+ # The description of the pricing plan.
1730
1816
  #
1731
1817
  # @return [Types::UpdatePricingPlanOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1732
1818
  #
@@ -1835,7 +1921,7 @@ module Aws::BillingConductor
1835
1921
  params: params,
1836
1922
  config: config)
1837
1923
  context[:gem_name] = 'aws-sdk-billingconductor'
1838
- context[:gem_version] = '1.0.0'
1924
+ context[:gem_version] = '1.2.0'
1839
1925
  Seahorse::Client::Request.new(handlers, context)
1840
1926
  end
1841
1927
 
@@ -51,6 +51,7 @@ module Aws::BillingConductor
51
51
  ClientToken = Shapes::StringShape.new(name: 'ClientToken')
52
52
  ComputationPreference = Shapes::StructureShape.new(name: 'ComputationPreference')
53
53
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
54
+ ConflictExceptionReason = Shapes::StringShape.new(name: 'ConflictExceptionReason')
54
55
  CreateBillingGroupInput = Shapes::StructureShape.new(name: 'CreateBillingGroupInput')
55
56
  CreateBillingGroupOutput = Shapes::StructureShape.new(name: 'CreateBillingGroupOutput')
56
57
  CreateCustomLineItemInput = Shapes::StructureShape.new(name: 'CreateCustomLineItemInput')
@@ -81,6 +82,8 @@ module Aws::BillingConductor
81
82
  CustomLineItemProductCode = Shapes::StringShape.new(name: 'CustomLineItemProductCode')
82
83
  CustomLineItemRelationship = Shapes::StringShape.new(name: 'CustomLineItemRelationship')
83
84
  CustomLineItemType = Shapes::StringShape.new(name: 'CustomLineItemType')
85
+ CustomLineItemVersionList = Shapes::ListShape.new(name: 'CustomLineItemVersionList')
86
+ CustomLineItemVersionListElement = Shapes::StructureShape.new(name: 'CustomLineItemVersionListElement')
84
87
  DeleteBillingGroupInput = Shapes::StructureShape.new(name: 'DeleteBillingGroupInput')
85
88
  DeleteBillingGroupOutput = Shapes::StructureShape.new(name: 'DeleteBillingGroupOutput')
86
89
  DeleteCustomLineItemInput = Shapes::StructureShape.new(name: 'DeleteCustomLineItemInput')
@@ -109,6 +112,10 @@ module Aws::BillingConductor
109
112
  ListCustomLineItemChargeDetails = Shapes::StructureShape.new(name: 'ListCustomLineItemChargeDetails')
110
113
  ListCustomLineItemFlatChargeDetails = Shapes::StructureShape.new(name: 'ListCustomLineItemFlatChargeDetails')
111
114
  ListCustomLineItemPercentageChargeDetails = Shapes::StructureShape.new(name: 'ListCustomLineItemPercentageChargeDetails')
115
+ ListCustomLineItemVersionsBillingPeriodRangeFilter = Shapes::StructureShape.new(name: 'ListCustomLineItemVersionsBillingPeriodRangeFilter')
116
+ ListCustomLineItemVersionsFilter = Shapes::StructureShape.new(name: 'ListCustomLineItemVersionsFilter')
117
+ ListCustomLineItemVersionsInput = Shapes::StructureShape.new(name: 'ListCustomLineItemVersionsInput')
118
+ ListCustomLineItemVersionsOutput = Shapes::StructureShape.new(name: 'ListCustomLineItemVersionsOutput')
112
119
  ListCustomLineItemsFilter = Shapes::StructureShape.new(name: 'ListCustomLineItemsFilter')
113
120
  ListCustomLineItemsInput = Shapes::StructureShape.new(name: 'ListCustomLineItemsInput')
114
121
  ListCustomLineItemsOutput = Shapes::StructureShape.new(name: 'ListCustomLineItemsOutput')
@@ -223,7 +230,7 @@ module Aws::BillingConductor
223
230
  AssociateResourceError.add_member(:reason, Shapes::ShapeRef.new(shape: AssociateResourceErrorReason, location_name: "Reason"))
224
231
  AssociateResourceError.struct_class = Types::AssociateResourceError
225
232
 
226
- AssociateResourceResponseElement.add_member(:arn, Shapes::ShapeRef.new(shape: CustomLineItemArn, location_name: "Arn"))
233
+ AssociateResourceResponseElement.add_member(:arn, Shapes::ShapeRef.new(shape: CustomLineItemAssociationElement, location_name: "Arn"))
227
234
  AssociateResourceResponseElement.add_member(:error, Shapes::ShapeRef.new(shape: AssociateResourceError, location_name: "Error"))
228
235
  AssociateResourceResponseElement.struct_class = Types::AssociateResourceResponseElement
229
236
 
@@ -279,6 +286,7 @@ module Aws::BillingConductor
279
286
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Message"))
280
287
  ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceId"))
281
288
  ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceType"))
289
+ ConflictException.add_member(:reason, Shapes::ShapeRef.new(shape: ConflictExceptionReason, location_name: "Reason"))
282
290
  ConflictException.struct_class = Types::ConflictException
283
291
 
284
292
  CreateBillingGroupInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location: "header", location_name: "X-Amzn-Client-Token", metadata: {"idempotencyToken"=>true}))
@@ -337,7 +345,7 @@ module Aws::BillingConductor
337
345
  CustomLineItemBatchDisassociationsList.member = Shapes::ShapeRef.new(shape: CustomLineItemAssociationElement)
338
346
 
339
347
  CustomLineItemBillingPeriodRange.add_member(:inclusive_start_billing_period, Shapes::ShapeRef.new(shape: BillingPeriod, required: true, location_name: "InclusiveStartBillingPeriod"))
340
- CustomLineItemBillingPeriodRange.add_member(:exclusive_end_billing_period, Shapes::ShapeRef.new(shape: BillingPeriod, required: true, location_name: "ExclusiveEndBillingPeriod"))
348
+ CustomLineItemBillingPeriodRange.add_member(:exclusive_end_billing_period, Shapes::ShapeRef.new(shape: BillingPeriod, location_name: "ExclusiveEndBillingPeriod"))
341
349
  CustomLineItemBillingPeriodRange.struct_class = Types::CustomLineItemBillingPeriodRange
342
350
 
343
351
  CustomLineItemChargeDetails.add_member(:flat, Shapes::ShapeRef.new(shape: CustomLineItemFlatChargeDetails, location_name: "Flat"))
@@ -368,6 +376,21 @@ module Aws::BillingConductor
368
376
  CustomLineItemPercentageChargeDetails.add_member(:associated_values, Shapes::ShapeRef.new(shape: CustomLineItemAssociationsList, location_name: "AssociatedValues"))
369
377
  CustomLineItemPercentageChargeDetails.struct_class = Types::CustomLineItemPercentageChargeDetails
370
378
 
379
+ CustomLineItemVersionList.member = Shapes::ShapeRef.new(shape: CustomLineItemVersionListElement)
380
+
381
+ CustomLineItemVersionListElement.add_member(:name, Shapes::ShapeRef.new(shape: CustomLineItemName, location_name: "Name"))
382
+ CustomLineItemVersionListElement.add_member(:charge_details, Shapes::ShapeRef.new(shape: ListCustomLineItemChargeDetails, location_name: "ChargeDetails"))
383
+ CustomLineItemVersionListElement.add_member(:currency_code, Shapes::ShapeRef.new(shape: CurrencyCode, location_name: "CurrencyCode"))
384
+ CustomLineItemVersionListElement.add_member(:description, Shapes::ShapeRef.new(shape: CustomLineItemDescription, location_name: "Description"))
385
+ CustomLineItemVersionListElement.add_member(:product_code, Shapes::ShapeRef.new(shape: CustomLineItemProductCode, location_name: "ProductCode"))
386
+ CustomLineItemVersionListElement.add_member(:billing_group_arn, Shapes::ShapeRef.new(shape: BillingGroupArn, location_name: "BillingGroupArn"))
387
+ CustomLineItemVersionListElement.add_member(:creation_time, Shapes::ShapeRef.new(shape: Instant, location_name: "CreationTime"))
388
+ CustomLineItemVersionListElement.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Instant, location_name: "LastModifiedTime"))
389
+ CustomLineItemVersionListElement.add_member(:association_size, Shapes::ShapeRef.new(shape: NumberOfAssociations, location_name: "AssociationSize"))
390
+ CustomLineItemVersionListElement.add_member(:start_billing_period, Shapes::ShapeRef.new(shape: BillingPeriod, location_name: "StartBillingPeriod"))
391
+ CustomLineItemVersionListElement.add_member(:end_billing_period, Shapes::ShapeRef.new(shape: BillingPeriod, location_name: "EndBillingPeriod"))
392
+ CustomLineItemVersionListElement.struct_class = Types::CustomLineItemVersionListElement
393
+
371
394
  DeleteBillingGroupInput.add_member(:arn, Shapes::ShapeRef.new(shape: BillingGroupArn, required: true, location_name: "Arn"))
372
395
  DeleteBillingGroupInput.struct_class = Types::DeleteBillingGroupInput
373
396
 
@@ -407,7 +430,7 @@ module Aws::BillingConductor
407
430
  DisassociatePricingRulesOutput.add_member(:arn, Shapes::ShapeRef.new(shape: PricingPlanArn, location_name: "Arn"))
408
431
  DisassociatePricingRulesOutput.struct_class = Types::DisassociatePricingRulesOutput
409
432
 
410
- DisassociateResourceResponseElement.add_member(:arn, Shapes::ShapeRef.new(shape: CustomLineItemArn, location_name: "Arn"))
433
+ DisassociateResourceResponseElement.add_member(:arn, Shapes::ShapeRef.new(shape: CustomLineItemAssociationElement, location_name: "Arn"))
411
434
  DisassociateResourceResponseElement.add_member(:error, Shapes::ShapeRef.new(shape: AssociateResourceError, location_name: "Error"))
412
435
  DisassociateResourceResponseElement.struct_class = Types::DisassociateResourceResponseElement
413
436
 
@@ -468,13 +491,30 @@ module Aws::BillingConductor
468
491
  ListCustomLineItemPercentageChargeDetails.add_member(:percentage_value, Shapes::ShapeRef.new(shape: CustomLineItemPercentageChargeValue, required: true, location_name: "PercentageValue"))
469
492
  ListCustomLineItemPercentageChargeDetails.struct_class = Types::ListCustomLineItemPercentageChargeDetails
470
493
 
494
+ ListCustomLineItemVersionsBillingPeriodRangeFilter.add_member(:start_billing_period, Shapes::ShapeRef.new(shape: BillingPeriod, location_name: "StartBillingPeriod"))
495
+ ListCustomLineItemVersionsBillingPeriodRangeFilter.add_member(:end_billing_period, Shapes::ShapeRef.new(shape: BillingPeriod, location_name: "EndBillingPeriod"))
496
+ ListCustomLineItemVersionsBillingPeriodRangeFilter.struct_class = Types::ListCustomLineItemVersionsBillingPeriodRangeFilter
497
+
498
+ ListCustomLineItemVersionsFilter.add_member(:billing_period_range, Shapes::ShapeRef.new(shape: ListCustomLineItemVersionsBillingPeriodRangeFilter, location_name: "BillingPeriodRange"))
499
+ ListCustomLineItemVersionsFilter.struct_class = Types::ListCustomLineItemVersionsFilter
500
+
501
+ ListCustomLineItemVersionsInput.add_member(:arn, Shapes::ShapeRef.new(shape: CustomLineItemArn, required: true, location_name: "Arn"))
502
+ ListCustomLineItemVersionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxCustomLineItemResults, location_name: "MaxResults"))
503
+ ListCustomLineItemVersionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
504
+ ListCustomLineItemVersionsInput.add_member(:filters, Shapes::ShapeRef.new(shape: ListCustomLineItemVersionsFilter, location_name: "Filters"))
505
+ ListCustomLineItemVersionsInput.struct_class = Types::ListCustomLineItemVersionsInput
506
+
507
+ ListCustomLineItemVersionsOutput.add_member(:custom_line_item_versions, Shapes::ShapeRef.new(shape: CustomLineItemVersionList, location_name: "CustomLineItemVersions"))
508
+ ListCustomLineItemVersionsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
509
+ ListCustomLineItemVersionsOutput.struct_class = Types::ListCustomLineItemVersionsOutput
510
+
471
511
  ListCustomLineItemsFilter.add_member(:names, Shapes::ShapeRef.new(shape: CustomLineItemNameList, location_name: "Names"))
472
512
  ListCustomLineItemsFilter.add_member(:billing_groups, Shapes::ShapeRef.new(shape: BillingGroupArnList, location_name: "BillingGroups"))
473
513
  ListCustomLineItemsFilter.add_member(:arns, Shapes::ShapeRef.new(shape: CustomLineItemArns, location_name: "Arns"))
474
514
  ListCustomLineItemsFilter.struct_class = Types::ListCustomLineItemsFilter
475
515
 
476
516
  ListCustomLineItemsInput.add_member(:billing_period, Shapes::ShapeRef.new(shape: BillingPeriod, location_name: "BillingPeriod"))
477
- ListCustomLineItemsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxBillingGroupResults, location_name: "MaxResults"))
517
+ ListCustomLineItemsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxCustomLineItemResults, location_name: "MaxResults"))
478
518
  ListCustomLineItemsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
479
519
  ListCustomLineItemsInput.add_member(:filters, Shapes::ShapeRef.new(shape: ListCustomLineItemsFilter, location_name: "Filters"))
480
520
  ListCustomLineItemsInput.struct_class = Types::ListCustomLineItemsInput
@@ -552,6 +592,7 @@ module Aws::BillingConductor
552
592
 
553
593
  ListResourcesAssociatedToCustomLineItemResponseElement.add_member(:arn, Shapes::ShapeRef.new(shape: CustomLineItemAssociationElement, location_name: "Arn"))
554
594
  ListResourcesAssociatedToCustomLineItemResponseElement.add_member(:relationship, Shapes::ShapeRef.new(shape: CustomLineItemRelationship, location_name: "Relationship"))
595
+ ListResourcesAssociatedToCustomLineItemResponseElement.add_member(:end_billing_period, Shapes::ShapeRef.new(shape: BillingPeriod, location_name: "EndBillingPeriod"))
555
596
  ListResourcesAssociatedToCustomLineItemResponseElement.struct_class = Types::ListResourcesAssociatedToCustomLineItemResponseElement
556
597
 
557
598
  ListResourcesAssociatedToCustomLineItemResponseList.member = Shapes::ShapeRef.new(shape: ListResourcesAssociatedToCustomLineItemResponseElement)
@@ -653,7 +694,7 @@ module Aws::BillingConductor
653
694
  UpdateCustomLineItemFlatChargeDetails.struct_class = Types::UpdateCustomLineItemFlatChargeDetails
654
695
 
655
696
  UpdateCustomLineItemInput.add_member(:arn, Shapes::ShapeRef.new(shape: CustomLineItemArn, required: true, location_name: "Arn"))
656
- UpdateCustomLineItemInput.add_member(:name, Shapes::ShapeRef.new(shape: BillingGroupName, location_name: "Name"))
697
+ UpdateCustomLineItemInput.add_member(:name, Shapes::ShapeRef.new(shape: CustomLineItemName, location_name: "Name"))
657
698
  UpdateCustomLineItemInput.add_member(:description, Shapes::ShapeRef.new(shape: CustomLineItemDescription, location_name: "Description"))
658
699
  UpdateCustomLineItemInput.add_member(:charge_details, Shapes::ShapeRef.new(shape: UpdateCustomLineItemChargeDetails, location_name: "ChargeDetails"))
659
700
  UpdateCustomLineItemInput.add_member(:billing_period_range, Shapes::ShapeRef.new(shape: CustomLineItemBillingPeriodRange, location_name: "BillingPeriodRange"))
@@ -981,6 +1022,24 @@ module Aws::BillingConductor
981
1022
  )
982
1023
  end)
983
1024
 
1025
+ api.add_operation(:list_custom_line_item_versions, Seahorse::Model::Operation.new.tap do |o|
1026
+ o.name = "ListCustomLineItemVersions"
1027
+ o.http_method = "POST"
1028
+ o.http_request_uri = "/list-custom-line-item-versions"
1029
+ o.input = Shapes::ShapeRef.new(shape: ListCustomLineItemVersionsInput)
1030
+ o.output = Shapes::ShapeRef.new(shape: ListCustomLineItemVersionsOutput)
1031
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1032
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1033
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1034
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1035
+ o[:pager] = Aws::Pager.new(
1036
+ limit_key: "max_results",
1037
+ tokens: {
1038
+ "next_token" => "next_token"
1039
+ }
1040
+ )
1041
+ end)
1042
+
984
1043
  api.add_operation(:list_custom_line_items, Seahorse::Model::Operation.new.tap do |o|
985
1044
  o.name = "ListCustomLineItems"
986
1045
  o.http_method = "POST"