aws-sdk-billing 1.32.0 → 1.34.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-billing/client.rb +105 -1
- data/lib/aws-sdk-billing/client_api.rb +49 -0
- data/lib/aws-sdk-billing/types.rb +123 -0
- data/lib/aws-sdk-billing.rb +1 -1
- data/sig/client.rbs +17 -0
- data/sig/types.rbs +29 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 396f3aaf6d0fb6382027061c490bcbbe3ad9e763861fc0d15a6908b87cd17630
|
|
4
|
+
data.tar.gz: f4d9e85d95d09508fb131d7a07eefccaee47b32338ef442e67ef08fe2048ce17
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fbba2ecbaa9088e3ee2faafad02828dcd828a24d4b9f87ef586d4a7016fa56ef7dd4083e1e22c4090920a59e4e13558bd9362b640cbca2ffc4c7f3ce9a3768d0
|
|
7
|
+
data.tar.gz: fd670937acea1f2e3e6ae94b496c526024da5f5aa6f53979a231928ae59ccb8bdb93822bc47d7b3f06fbb741425fa1cfd91769f8b60b592e5e24e1c362d50740
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.34.0 (2026-09-23)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Added the ListBillingViewSegments API, which returns billing view segment information for a specified billing view ARN and time range. This API enables customers and integrated tools to programmatically determine the billing context of their accounts.
|
|
8
|
+
|
|
9
|
+
1.33.0 (2026-09-14)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Increased the maximum number of services returned in the supportEligibleSpendByService field of ListEnterpriseSupportLinkedAccountCharges
|
|
13
|
+
|
|
4
14
|
1.32.0 (2026-09-11)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.34.0
|
|
@@ -1235,6 +1235,110 @@ module Aws::Billing
|
|
|
1235
1235
|
req.send_request(options)
|
|
1236
1236
|
end
|
|
1237
1237
|
|
|
1238
|
+
# Lists the segments of a billing view over a given time period. Each
|
|
1239
|
+
# segment identifies the billing domain (`PRO_FORMA` or `BILLABLE`) and
|
|
1240
|
+
# the account relationships that apply during its time range.
|
|
1241
|
+
#
|
|
1242
|
+
# If you don't provide an `arn`, the response includes segments for the
|
|
1243
|
+
# caller's `PRIMARY` billing view.
|
|
1244
|
+
#
|
|
1245
|
+
# If a mid-period change occurs, the response includes multiple
|
|
1246
|
+
# segments, each with its own time range. The response omits hidden
|
|
1247
|
+
# segments, so the segments it returns might not cover the entire
|
|
1248
|
+
# requested time period.
|
|
1249
|
+
#
|
|
1250
|
+
# @option params [Types::BillingViewSegmentTimeRange] :time_range
|
|
1251
|
+
# The billing period to query. If you don't provide a time range, the
|
|
1252
|
+
# current billing period, which is the calendar month in UTC, is used.
|
|
1253
|
+
#
|
|
1254
|
+
# @option params [String] :arn
|
|
1255
|
+
# The Amazon Resource Name (ARN) that uniquely identifies the billing
|
|
1256
|
+
# view to query. If you don't provide an ARN, the caller's `PRIMARY`
|
|
1257
|
+
# billing view is used. The ARN must reference a primary billing view.
|
|
1258
|
+
# Custom billing views aren't supported.
|
|
1259
|
+
#
|
|
1260
|
+
# @option params [Integer] :max_results
|
|
1261
|
+
# The number of entries a paginated response contains. Valid values
|
|
1262
|
+
# range from 1 to 100. The default is 100.
|
|
1263
|
+
#
|
|
1264
|
+
# @option params [String] :next_token
|
|
1265
|
+
# The pagination token that is used on subsequent calls to list billing
|
|
1266
|
+
# view segments.
|
|
1267
|
+
#
|
|
1268
|
+
# @return [Types::ListBillingViewSegmentsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1269
|
+
#
|
|
1270
|
+
# * {Types::ListBillingViewSegmentsResponse#items #items} => Array<Types::BillingViewSegmentsListElement>
|
|
1271
|
+
# * {Types::ListBillingViewSegmentsResponse#next_token #next_token} => String
|
|
1272
|
+
#
|
|
1273
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1274
|
+
#
|
|
1275
|
+
#
|
|
1276
|
+
# @example Example: Invoke ListBillingViewSegments
|
|
1277
|
+
#
|
|
1278
|
+
# resp = client.list_billing_view_segments({
|
|
1279
|
+
# time_range: {
|
|
1280
|
+
# begin_date_inclusive: Time.parse(1719792000),
|
|
1281
|
+
# end_date_exclusive: Time.parse(1722470400),
|
|
1282
|
+
# },
|
|
1283
|
+
# })
|
|
1284
|
+
#
|
|
1285
|
+
# resp.to_h outputs the following:
|
|
1286
|
+
# {
|
|
1287
|
+
# items: [
|
|
1288
|
+
# {
|
|
1289
|
+
# billing_group_primary_account_id: "333333333333",
|
|
1290
|
+
# billing_transfer_account_id: "111111111111",
|
|
1291
|
+
# domain: "BILLABLE",
|
|
1292
|
+
# management_account_id: "222222222222",
|
|
1293
|
+
# time_range: {
|
|
1294
|
+
# begin_date_inclusive: Time.parse(1719792000),
|
|
1295
|
+
# end_date_exclusive: Time.parse(1722470400),
|
|
1296
|
+
# },
|
|
1297
|
+
# },
|
|
1298
|
+
# ],
|
|
1299
|
+
# }
|
|
1300
|
+
#
|
|
1301
|
+
# @example Example: Error example for ListBillingViewSegments
|
|
1302
|
+
#
|
|
1303
|
+
# resp = client.list_billing_view_segments({
|
|
1304
|
+
# time_range: {
|
|
1305
|
+
# begin_date_inclusive: Time.parse(1722470400),
|
|
1306
|
+
# end_date_exclusive: Time.parse(1719792000),
|
|
1307
|
+
# },
|
|
1308
|
+
# })
|
|
1309
|
+
#
|
|
1310
|
+
# @example Request syntax with placeholder values
|
|
1311
|
+
#
|
|
1312
|
+
# resp = client.list_billing_view_segments({
|
|
1313
|
+
# time_range: {
|
|
1314
|
+
# begin_date_inclusive: Time.now,
|
|
1315
|
+
# end_date_exclusive: Time.now,
|
|
1316
|
+
# },
|
|
1317
|
+
# arn: "BillingViewArn",
|
|
1318
|
+
# max_results: 1,
|
|
1319
|
+
# next_token: "PageToken",
|
|
1320
|
+
# })
|
|
1321
|
+
#
|
|
1322
|
+
# @example Response structure
|
|
1323
|
+
#
|
|
1324
|
+
# resp.items #=> Array
|
|
1325
|
+
# resp.items[0].domain #=> String, one of "BILLABLE", "PRO_FORMA"
|
|
1326
|
+
# resp.items[0].time_range.begin_date_inclusive #=> Time
|
|
1327
|
+
# resp.items[0].time_range.end_date_exclusive #=> Time
|
|
1328
|
+
# resp.items[0].billing_transfer_account_id #=> String
|
|
1329
|
+
# resp.items[0].management_account_id #=> String
|
|
1330
|
+
# resp.items[0].billing_group_primary_account_id #=> String
|
|
1331
|
+
# resp.next_token #=> String
|
|
1332
|
+
#
|
|
1333
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/ListBillingViewSegments AWS API Documentation
|
|
1334
|
+
#
|
|
1335
|
+
# @overload list_billing_view_segments(params = {})
|
|
1336
|
+
# @param [Hash] params ({})
|
|
1337
|
+
def list_billing_view_segments(params = {}, options = {})
|
|
1338
|
+
req = build_request(:list_billing_view_segments, params)
|
|
1339
|
+
req.send_request(options)
|
|
1340
|
+
end
|
|
1341
|
+
|
|
1238
1342
|
# Lists the billing views available for a given time period.
|
|
1239
1343
|
#
|
|
1240
1344
|
# Every Amazon Web Services account has a unique `PRIMARY` billing view
|
|
@@ -1794,7 +1898,7 @@ module Aws::Billing
|
|
|
1794
1898
|
tracer: tracer
|
|
1795
1899
|
)
|
|
1796
1900
|
context[:gem_name] = 'aws-sdk-billing'
|
|
1797
|
-
context[:gem_version] = '1.
|
|
1901
|
+
context[:gem_version] = '1.34.0'
|
|
1798
1902
|
Seahorse::Client::Request.new(handlers, context)
|
|
1799
1903
|
end
|
|
1800
1904
|
|
|
@@ -24,6 +24,7 @@ module Aws::Billing
|
|
|
24
24
|
ApplicationType = Shapes::StringShape.new(name: 'ApplicationType')
|
|
25
25
|
AssociateSourceViewsRequest = Shapes::StructureShape.new(name: 'AssociateSourceViewsRequest')
|
|
26
26
|
AssociateSourceViewsResponse = Shapes::StructureShape.new(name: 'AssociateSourceViewsResponse')
|
|
27
|
+
BillingDomain = Shapes::StringShape.new(name: 'BillingDomain')
|
|
27
28
|
BillingFeature = Shapes::StringShape.new(name: 'BillingFeature')
|
|
28
29
|
BillingFeatureFilter = Shapes::StructureShape.new(name: 'BillingFeatureFilter')
|
|
29
30
|
BillingFeatureFilterName = Shapes::StringShape.new(name: 'BillingFeatureFilterName')
|
|
@@ -44,6 +45,9 @@ module Aws::Billing
|
|
|
44
45
|
BillingViewList = Shapes::ListShape.new(name: 'BillingViewList')
|
|
45
46
|
BillingViewListElement = Shapes::StructureShape.new(name: 'BillingViewListElement')
|
|
46
47
|
BillingViewName = Shapes::StringShape.new(name: 'BillingViewName')
|
|
48
|
+
BillingViewSegmentTimeRange = Shapes::StructureShape.new(name: 'BillingViewSegmentTimeRange')
|
|
49
|
+
BillingViewSegmentsList = Shapes::ListShape.new(name: 'BillingViewSegmentsList')
|
|
50
|
+
BillingViewSegmentsListElement = Shapes::StructureShape.new(name: 'BillingViewSegmentsListElement')
|
|
47
51
|
BillingViewSourceViewsList = Shapes::ListShape.new(name: 'BillingViewSourceViewsList')
|
|
48
52
|
BillingViewStatus = Shapes::StringShape.new(name: 'BillingViewStatus')
|
|
49
53
|
BillingViewStatusReason = Shapes::StringShape.new(name: 'BillingViewStatusReason')
|
|
@@ -106,6 +110,8 @@ module Aws::Billing
|
|
|
106
110
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
|
107
111
|
LinkedAccountCharge = Shapes::StructureShape.new(name: 'LinkedAccountCharge')
|
|
108
112
|
LinkedAccountChargeList = Shapes::ListShape.new(name: 'LinkedAccountChargeList')
|
|
113
|
+
ListBillingViewSegmentsRequest = Shapes::StructureShape.new(name: 'ListBillingViewSegmentsRequest')
|
|
114
|
+
ListBillingViewSegmentsResponse = Shapes::StructureShape.new(name: 'ListBillingViewSegmentsResponse')
|
|
109
115
|
ListBillingViewsRequest = Shapes::StructureShape.new(name: 'ListBillingViewsRequest')
|
|
110
116
|
ListBillingViewsResponse = Shapes::StructureShape.new(name: 'ListBillingViewsResponse')
|
|
111
117
|
ListEnterpriseSupportLinkedAccountChargesRequest = Shapes::StructureShape.new(name: 'ListEnterpriseSupportLinkedAccountChargesRequest')
|
|
@@ -259,6 +265,19 @@ module Aws::Billing
|
|
|
259
265
|
BillingViewListElement.add_member(:health_status, Shapes::ShapeRef.new(shape: BillingViewHealthStatus, location_name: "healthStatus"))
|
|
260
266
|
BillingViewListElement.struct_class = Types::BillingViewListElement
|
|
261
267
|
|
|
268
|
+
BillingViewSegmentTimeRange.add_member(:begin_date_inclusive, Shapes::ShapeRef.new(shape: Timestamp, location_name: "beginDateInclusive"))
|
|
269
|
+
BillingViewSegmentTimeRange.add_member(:end_date_exclusive, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endDateExclusive"))
|
|
270
|
+
BillingViewSegmentTimeRange.struct_class = Types::BillingViewSegmentTimeRange
|
|
271
|
+
|
|
272
|
+
BillingViewSegmentsList.member = Shapes::ShapeRef.new(shape: BillingViewSegmentsListElement)
|
|
273
|
+
|
|
274
|
+
BillingViewSegmentsListElement.add_member(:domain, Shapes::ShapeRef.new(shape: BillingDomain, location_name: "domain"))
|
|
275
|
+
BillingViewSegmentsListElement.add_member(:time_range, Shapes::ShapeRef.new(shape: BillingViewSegmentTimeRange, location_name: "timeRange"))
|
|
276
|
+
BillingViewSegmentsListElement.add_member(:billing_transfer_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "billingTransferAccountId"))
|
|
277
|
+
BillingViewSegmentsListElement.add_member(:management_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "managementAccountId"))
|
|
278
|
+
BillingViewSegmentsListElement.add_member(:billing_group_primary_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "billingGroupPrimaryAccountId"))
|
|
279
|
+
BillingViewSegmentsListElement.struct_class = Types::BillingViewSegmentsListElement
|
|
280
|
+
|
|
262
281
|
BillingViewSourceViewsList.member = Shapes::ShapeRef.new(shape: BillingViewArn)
|
|
263
282
|
|
|
264
283
|
BillingViewStatusReasons.member = Shapes::ShapeRef.new(shape: BillingViewStatusReason)
|
|
@@ -469,6 +488,16 @@ module Aws::Billing
|
|
|
469
488
|
|
|
470
489
|
LinkedAccountChargeList.member = Shapes::ShapeRef.new(shape: LinkedAccountCharge)
|
|
471
490
|
|
|
491
|
+
ListBillingViewSegmentsRequest.add_member(:time_range, Shapes::ShapeRef.new(shape: BillingViewSegmentTimeRange, location_name: "timeRange"))
|
|
492
|
+
ListBillingViewSegmentsRequest.add_member(:arn, Shapes::ShapeRef.new(shape: BillingViewArn, location_name: "arn"))
|
|
493
|
+
ListBillingViewSegmentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BillingViewsMaxResults, location_name: "maxResults"))
|
|
494
|
+
ListBillingViewSegmentsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PageToken, location_name: "nextToken"))
|
|
495
|
+
ListBillingViewSegmentsRequest.struct_class = Types::ListBillingViewSegmentsRequest
|
|
496
|
+
|
|
497
|
+
ListBillingViewSegmentsResponse.add_member(:items, Shapes::ShapeRef.new(shape: BillingViewSegmentsList, required: true, location_name: "items"))
|
|
498
|
+
ListBillingViewSegmentsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PageToken, location_name: "nextToken"))
|
|
499
|
+
ListBillingViewSegmentsResponse.struct_class = Types::ListBillingViewSegmentsResponse
|
|
500
|
+
|
|
472
501
|
ListBillingViewsRequest.add_member(:active_time_range, Shapes::ShapeRef.new(shape: ActiveTimeRange, location_name: "activeTimeRange"))
|
|
473
502
|
ListBillingViewsRequest.add_member(:arns, Shapes::ShapeRef.new(shape: BillingViewArnList, location_name: "arns"))
|
|
474
503
|
ListBillingViewsRequest.add_member(:billing_view_types, Shapes::ShapeRef.new(shape: BillingViewTypeList, location_name: "billingViewTypes"))
|
|
@@ -806,6 +835,26 @@ module Aws::Billing
|
|
|
806
835
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
807
836
|
end)
|
|
808
837
|
|
|
838
|
+
api.add_operation(:list_billing_view_segments, Seahorse::Model::Operation.new.tap do |o|
|
|
839
|
+
o.name = "ListBillingViewSegments"
|
|
840
|
+
o.http_method = "POST"
|
|
841
|
+
o.http_request_uri = "/"
|
|
842
|
+
o.input = Shapes::ShapeRef.new(shape: ListBillingViewSegmentsRequest)
|
|
843
|
+
o.output = Shapes::ShapeRef.new(shape: ListBillingViewSegmentsResponse)
|
|
844
|
+
o.errors << Shapes::ShapeRef.new(shape: BillingViewHealthStatusException)
|
|
845
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
846
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
847
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
848
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
849
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
850
|
+
o[:pager] = Aws::Pager.new(
|
|
851
|
+
limit_key: "max_results",
|
|
852
|
+
tokens: {
|
|
853
|
+
"next_token" => "next_token"
|
|
854
|
+
}
|
|
855
|
+
)
|
|
856
|
+
end)
|
|
857
|
+
|
|
809
858
|
api.add_operation(:list_billing_views, Seahorse::Model::Operation.new.tap do |o|
|
|
810
859
|
o.name = "ListBillingViews"
|
|
811
860
|
o.http_method = "POST"
|
|
@@ -384,6 +384,75 @@ module Aws::Billing
|
|
|
384
384
|
include Aws::Structure
|
|
385
385
|
end
|
|
386
386
|
|
|
387
|
+
# Specifies a time range with an inclusive begin date and an exclusive
|
|
388
|
+
# end date.
|
|
389
|
+
#
|
|
390
|
+
# @!attribute [rw] begin_date_inclusive
|
|
391
|
+
# The inclusive start of the time range. This value can't be in the
|
|
392
|
+
# future.
|
|
393
|
+
# @return [Time]
|
|
394
|
+
#
|
|
395
|
+
# @!attribute [rw] end_date_exclusive
|
|
396
|
+
# The exclusive end of the time range. This value must be after
|
|
397
|
+
# `beginDateInclusive`.
|
|
398
|
+
# @return [Time]
|
|
399
|
+
#
|
|
400
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/BillingViewSegmentTimeRange AWS API Documentation
|
|
401
|
+
#
|
|
402
|
+
class BillingViewSegmentTimeRange < Struct.new(
|
|
403
|
+
:begin_date_inclusive,
|
|
404
|
+
:end_date_exclusive)
|
|
405
|
+
SENSITIVE = []
|
|
406
|
+
include Aws::Structure
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# A billing view segment. A segment represents a time range during which
|
|
410
|
+
# the billing domain and account relationships for a billing view
|
|
411
|
+
# remained unchanged.
|
|
412
|
+
#
|
|
413
|
+
# @!attribute [rw] domain
|
|
414
|
+
# The billing domain for this segment. The following values are valid:
|
|
415
|
+
#
|
|
416
|
+
# * `PRO_FORMA` - Data shaped by Billing Conductor that doesn't
|
|
417
|
+
# reflect the final charges owed to Amazon Web Services.
|
|
418
|
+
#
|
|
419
|
+
# * `BILLABLE` - Data that represents the final charges owed to Amazon
|
|
420
|
+
# Web Services.
|
|
421
|
+
# @return [String]
|
|
422
|
+
#
|
|
423
|
+
# @!attribute [rw] time_range
|
|
424
|
+
# The time range during which this segment is effective.
|
|
425
|
+
# @return [Types::BillingViewSegmentTimeRange]
|
|
426
|
+
#
|
|
427
|
+
# @!attribute [rw] billing_transfer_account_id
|
|
428
|
+
# The billing transfer account ID. The response includes this field
|
|
429
|
+
# only when the caller is a billing transfer source account. The
|
|
430
|
+
# response omits this field for billing group billing views.
|
|
431
|
+
# @return [String]
|
|
432
|
+
#
|
|
433
|
+
# @!attribute [rw] management_account_id
|
|
434
|
+
# The management account ID of the organization. The response includes
|
|
435
|
+
# this field for organization member accounts.
|
|
436
|
+
# @return [String]
|
|
437
|
+
#
|
|
438
|
+
# @!attribute [rw] billing_group_primary_account_id
|
|
439
|
+
# The billing group primary account ID. The response includes this
|
|
440
|
+
# field for billing group members. Compare this value to your own
|
|
441
|
+
# account ID to determine whether you are the primary account.
|
|
442
|
+
# @return [String]
|
|
443
|
+
#
|
|
444
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/BillingViewSegmentsListElement AWS API Documentation
|
|
445
|
+
#
|
|
446
|
+
class BillingViewSegmentsListElement < Struct.new(
|
|
447
|
+
:domain,
|
|
448
|
+
:time_range,
|
|
449
|
+
:billing_transfer_account_id,
|
|
450
|
+
:management_account_id,
|
|
451
|
+
:billing_group_primary_account_id)
|
|
452
|
+
SENSITIVE = []
|
|
453
|
+
include Aws::Structure
|
|
454
|
+
end
|
|
455
|
+
|
|
387
456
|
# An account that is charged all or a portion of the total Support
|
|
388
457
|
# charge and the percentage of the charge allocated to it.
|
|
389
458
|
#
|
|
@@ -1382,6 +1451,60 @@ module Aws::Billing
|
|
|
1382
1451
|
include Aws::Structure
|
|
1383
1452
|
end
|
|
1384
1453
|
|
|
1454
|
+
# @!attribute [rw] time_range
|
|
1455
|
+
# The billing period to query. If you don't provide a time range, the
|
|
1456
|
+
# current billing period, which is the calendar month in UTC, is used.
|
|
1457
|
+
# @return [Types::BillingViewSegmentTimeRange]
|
|
1458
|
+
#
|
|
1459
|
+
# @!attribute [rw] arn
|
|
1460
|
+
# The Amazon Resource Name (ARN) that uniquely identifies the billing
|
|
1461
|
+
# view to query. If you don't provide an ARN, the caller's `PRIMARY`
|
|
1462
|
+
# billing view is used. The ARN must reference a primary billing view.
|
|
1463
|
+
# Custom billing views aren't supported.
|
|
1464
|
+
# @return [String]
|
|
1465
|
+
#
|
|
1466
|
+
# @!attribute [rw] max_results
|
|
1467
|
+
# The number of entries a paginated response contains. Valid values
|
|
1468
|
+
# range from 1 to 100. The default is 100.
|
|
1469
|
+
# @return [Integer]
|
|
1470
|
+
#
|
|
1471
|
+
# @!attribute [rw] next_token
|
|
1472
|
+
# The pagination token that is used on subsequent calls to list
|
|
1473
|
+
# billing view segments.
|
|
1474
|
+
# @return [String]
|
|
1475
|
+
#
|
|
1476
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/ListBillingViewSegmentsRequest AWS API Documentation
|
|
1477
|
+
#
|
|
1478
|
+
class ListBillingViewSegmentsRequest < Struct.new(
|
|
1479
|
+
:time_range,
|
|
1480
|
+
:arn,
|
|
1481
|
+
:max_results,
|
|
1482
|
+
:next_token)
|
|
1483
|
+
SENSITIVE = []
|
|
1484
|
+
include Aws::Structure
|
|
1485
|
+
end
|
|
1486
|
+
|
|
1487
|
+
# @!attribute [rw] items
|
|
1488
|
+
# A list of billing view segments. Each segment covers a portion of
|
|
1489
|
+
# the requested time period. The response omits hidden segments, so
|
|
1490
|
+
# the segments it returns might not cover the entire requested time
|
|
1491
|
+
# period.
|
|
1492
|
+
# @return [Array<Types::BillingViewSegmentsListElement>]
|
|
1493
|
+
#
|
|
1494
|
+
# @!attribute [rw] next_token
|
|
1495
|
+
# The pagination token that is used on subsequent calls to list
|
|
1496
|
+
# billing view segments.
|
|
1497
|
+
# @return [String]
|
|
1498
|
+
#
|
|
1499
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/ListBillingViewSegmentsResponse AWS API Documentation
|
|
1500
|
+
#
|
|
1501
|
+
class ListBillingViewSegmentsResponse < Struct.new(
|
|
1502
|
+
:items,
|
|
1503
|
+
:next_token)
|
|
1504
|
+
SENSITIVE = []
|
|
1505
|
+
include Aws::Structure
|
|
1506
|
+
end
|
|
1507
|
+
|
|
1385
1508
|
# @!attribute [rw] active_time_range
|
|
1386
1509
|
# The time range for the billing views listed. `PRIMARY` billing view
|
|
1387
1510
|
# is always listed. `BILLING_GROUP` billing views are listed for time
|
data/lib/aws-sdk-billing.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -249,6 +249,23 @@ module Aws
|
|
|
249
249
|
) -> _GetResourcePolicyResponseSuccess
|
|
250
250
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourcePolicyResponseSuccess
|
|
251
251
|
|
|
252
|
+
interface _ListBillingViewSegmentsResponseSuccess
|
|
253
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListBillingViewSegmentsResponse]
|
|
254
|
+
def items: () -> ::Array[Types::BillingViewSegmentsListElement]
|
|
255
|
+
def next_token: () -> ::String
|
|
256
|
+
end
|
|
257
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#list_billing_view_segments-instance_method
|
|
258
|
+
def list_billing_view_segments: (
|
|
259
|
+
?time_range: {
|
|
260
|
+
begin_date_inclusive: ::Time?,
|
|
261
|
+
end_date_exclusive: ::Time?
|
|
262
|
+
},
|
|
263
|
+
?arn: ::String,
|
|
264
|
+
?max_results: ::Integer,
|
|
265
|
+
?next_token: ::String
|
|
266
|
+
) -> _ListBillingViewSegmentsResponseSuccess
|
|
267
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListBillingViewSegmentsResponseSuccess
|
|
268
|
+
|
|
252
269
|
interface _ListBillingViewsResponseSuccess
|
|
253
270
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListBillingViewsResponse]
|
|
254
271
|
def billing_views: () -> ::Array[Types::BillingViewListElement]
|
data/sig/types.rbs
CHANGED
|
@@ -110,6 +110,21 @@ module Aws::Billing
|
|
|
110
110
|
SENSITIVE: [:name, :description]
|
|
111
111
|
end
|
|
112
112
|
|
|
113
|
+
class BillingViewSegmentTimeRange
|
|
114
|
+
attr_accessor begin_date_inclusive: ::Time
|
|
115
|
+
attr_accessor end_date_exclusive: ::Time
|
|
116
|
+
SENSITIVE: []
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
class BillingViewSegmentsListElement
|
|
120
|
+
attr_accessor domain: ("BILLABLE" | "PRO_FORMA")
|
|
121
|
+
attr_accessor time_range: Types::BillingViewSegmentTimeRange
|
|
122
|
+
attr_accessor billing_transfer_account_id: ::String
|
|
123
|
+
attr_accessor management_account_id: ::String
|
|
124
|
+
attr_accessor billing_group_primary_account_id: ::String
|
|
125
|
+
SENSITIVE: []
|
|
126
|
+
end
|
|
127
|
+
|
|
113
128
|
class ChargeAccount
|
|
114
129
|
attr_accessor account_id: ::String
|
|
115
130
|
attr_accessor charge_percentage: ::String
|
|
@@ -360,6 +375,20 @@ module Aws::Billing
|
|
|
360
375
|
SENSITIVE: []
|
|
361
376
|
end
|
|
362
377
|
|
|
378
|
+
class ListBillingViewSegmentsRequest
|
|
379
|
+
attr_accessor time_range: Types::BillingViewSegmentTimeRange
|
|
380
|
+
attr_accessor arn: ::String
|
|
381
|
+
attr_accessor max_results: ::Integer
|
|
382
|
+
attr_accessor next_token: ::String
|
|
383
|
+
SENSITIVE: []
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
class ListBillingViewSegmentsResponse
|
|
387
|
+
attr_accessor items: ::Array[Types::BillingViewSegmentsListElement]
|
|
388
|
+
attr_accessor next_token: ::String
|
|
389
|
+
SENSITIVE: []
|
|
390
|
+
end
|
|
391
|
+
|
|
363
392
|
class ListBillingViewsRequest
|
|
364
393
|
attr_accessor active_time_range: Types::ActiveTimeRange
|
|
365
394
|
attr_accessor arns: ::Array[::String]
|