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.
@@ -42,6 +42,61 @@ module Aws::Billing
42
42
  include Aws::Structure
43
43
  end
44
44
 
45
+ # The metadata associated to the billing view.
46
+ #
47
+ # @!attribute [rw] arn
48
+ # The Amazon Resource Name (ARN) that can be used to uniquely identify
49
+ # the billing view.
50
+ # @return [String]
51
+ #
52
+ # @!attribute [rw] name
53
+ # A list of names of the billing view.
54
+ # @return [String]
55
+ #
56
+ # @!attribute [rw] description
57
+ # The description of the billing view.
58
+ # @return [String]
59
+ #
60
+ # @!attribute [rw] billing_view_type
61
+ # The type of billing group.
62
+ # @return [String]
63
+ #
64
+ # @!attribute [rw] owner_account_id
65
+ # The list of owners of the billing view.
66
+ # @return [String]
67
+ #
68
+ # @!attribute [rw] data_filter_expression
69
+ # See [Expression][1]. Billing view only supports `LINKED_ACCOUNT` and
70
+ # `Tags`.
71
+ #
72
+ #
73
+ #
74
+ # [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html
75
+ # @return [Types::Expression]
76
+ #
77
+ # @!attribute [rw] created_at
78
+ # The time when the billing view was created.
79
+ # @return [Time]
80
+ #
81
+ # @!attribute [rw] updated_at
82
+ # The time when the billing view was last updated.
83
+ # @return [Time]
84
+ #
85
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/BillingViewElement AWS API Documentation
86
+ #
87
+ class BillingViewElement < Struct.new(
88
+ :arn,
89
+ :name,
90
+ :description,
91
+ :billing_view_type,
92
+ :owner_account_id,
93
+ :data_filter_expression,
94
+ :created_at,
95
+ :updated_at)
96
+ SENSITIVE = [:name, :description]
97
+ include Aws::Structure
98
+ end
99
+
45
100
  # A representation of a billing view.
46
101
  #
47
102
  # @!attribute [rw] arn
@@ -53,6 +108,10 @@ module Aws::Billing
53
108
  # A list of names of the Billing view.
54
109
  # @return [String]
55
110
  #
111
+ # @!attribute [rw] description
112
+ # The description of the billing view.
113
+ # @return [String]
114
+ #
56
115
  # @!attribute [rw] owner_account_id
57
116
  # The list of owners of the Billing view.
58
117
  # @return [String]
@@ -66,9 +125,232 @@ module Aws::Billing
66
125
  class BillingViewListElement < Struct.new(
67
126
  :arn,
68
127
  :name,
128
+ :description,
69
129
  :owner_account_id,
70
130
  :billing_view_type)
71
- SENSITIVE = [:name]
131
+ SENSITIVE = [:name, :description]
132
+ include Aws::Structure
133
+ end
134
+
135
+ # The requested operation would cause a conflict with the current state
136
+ # of a service resource associated with the request. Resolve the
137
+ # conflict before retrying this request.
138
+ #
139
+ # @!attribute [rw] message
140
+ # @return [String]
141
+ #
142
+ # @!attribute [rw] resource_id
143
+ # The identifier for the service resource associated with the request.
144
+ # @return [String]
145
+ #
146
+ # @!attribute [rw] resource_type
147
+ # The type of resource associated with the request.
148
+ # @return [String]
149
+ #
150
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/ConflictException AWS API Documentation
151
+ #
152
+ class ConflictException < Struct.new(
153
+ :message,
154
+ :resource_id,
155
+ :resource_type)
156
+ SENSITIVE = []
157
+ include Aws::Structure
158
+ end
159
+
160
+ # @!attribute [rw] name
161
+ # The name of the billing view.
162
+ # @return [String]
163
+ #
164
+ # @!attribute [rw] description
165
+ # The description of the billing view.
166
+ # @return [String]
167
+ #
168
+ # @!attribute [rw] source_views
169
+ # A list of billing views used as the data source for the custom
170
+ # billing view.
171
+ # @return [Array<String>]
172
+ #
173
+ # @!attribute [rw] data_filter_expression
174
+ # See [Expression][1]. Billing view only supports `LINKED_ACCOUNT` and
175
+ # `Tags`.
176
+ #
177
+ #
178
+ #
179
+ # [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html
180
+ # @return [Types::Expression]
181
+ #
182
+ # @!attribute [rw] client_token
183
+ # A unique, case-sensitive identifier you specify to ensure
184
+ # idempotency of the request. Idempotency ensures that an API request
185
+ # completes no more than one time. If the original request completes
186
+ # successfully, any subsequent retries complete successfully without
187
+ # performing any further actions with an idempotent request.
188
+ #
189
+ # **A suitable default value is auto-generated.** You should normally
190
+ # not need to pass this option.
191
+ # @return [String]
192
+ #
193
+ # @!attribute [rw] resource_tags
194
+ # A list of key value map specifying tags associated to the billing
195
+ # view being created.
196
+ # @return [Array<Types::ResourceTag>]
197
+ #
198
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/CreateBillingViewRequest AWS API Documentation
199
+ #
200
+ class CreateBillingViewRequest < Struct.new(
201
+ :name,
202
+ :description,
203
+ :source_views,
204
+ :data_filter_expression,
205
+ :client_token,
206
+ :resource_tags)
207
+ SENSITIVE = [:name, :description]
208
+ include Aws::Structure
209
+ end
210
+
211
+ # @!attribute [rw] arn
212
+ # The Amazon Resource Name (ARN) that can be used to uniquely identify
213
+ # the billing view.
214
+ # @return [String]
215
+ #
216
+ # @!attribute [rw] created_at
217
+ # The time when the billing view was created.
218
+ # @return [Time]
219
+ #
220
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/CreateBillingViewResponse AWS API Documentation
221
+ #
222
+ class CreateBillingViewResponse < Struct.new(
223
+ :arn,
224
+ :created_at)
225
+ SENSITIVE = []
226
+ include Aws::Structure
227
+ end
228
+
229
+ # @!attribute [rw] arn
230
+ # The Amazon Resource Name (ARN) that can be used to uniquely identify
231
+ # the billing view.
232
+ # @return [String]
233
+ #
234
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/DeleteBillingViewRequest AWS API Documentation
235
+ #
236
+ class DeleteBillingViewRequest < Struct.new(
237
+ :arn)
238
+ SENSITIVE = []
239
+ include Aws::Structure
240
+ end
241
+
242
+ # @!attribute [rw] arn
243
+ # The Amazon Resource Name (ARN) that can be used to uniquely identify
244
+ # the billing view.
245
+ # @return [String]
246
+ #
247
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/DeleteBillingViewResponse AWS API Documentation
248
+ #
249
+ class DeleteBillingViewResponse < Struct.new(
250
+ :arn)
251
+ SENSITIVE = []
252
+ include Aws::Structure
253
+ end
254
+
255
+ # The metadata that you can use to filter and group your results.
256
+ #
257
+ # @!attribute [rw] key
258
+ # The names of the metadata types that you can use to filter and group
259
+ # your results.
260
+ # @return [String]
261
+ #
262
+ # @!attribute [rw] values
263
+ # The metadata values that you can use to filter and group your
264
+ # results.
265
+ # @return [Array<String>]
266
+ #
267
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/DimensionValues AWS API Documentation
268
+ #
269
+ class DimensionValues < Struct.new(
270
+ :key,
271
+ :values)
272
+ SENSITIVE = []
273
+ include Aws::Structure
274
+ end
275
+
276
+ # See [Expression][1]. Billing view only supports `LINKED_ACCOUNT` and
277
+ # `Tags`.
278
+ #
279
+ #
280
+ #
281
+ # [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html
282
+ #
283
+ # @!attribute [rw] dimensions
284
+ # The specific `Dimension` to use for `Expression`.
285
+ # @return [Types::DimensionValues]
286
+ #
287
+ # @!attribute [rw] tags
288
+ # The specific `Tag` to use for `Expression`.
289
+ # @return [Types::TagValues]
290
+ #
291
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/Expression AWS API Documentation
292
+ #
293
+ class Expression < Struct.new(
294
+ :dimensions,
295
+ :tags)
296
+ SENSITIVE = []
297
+ include Aws::Structure
298
+ end
299
+
300
+ # @!attribute [rw] arn
301
+ # The Amazon Resource Name (ARN) that can be used to uniquely identify
302
+ # the billing view.
303
+ # @return [String]
304
+ #
305
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/GetBillingViewRequest AWS API Documentation
306
+ #
307
+ class GetBillingViewRequest < Struct.new(
308
+ :arn)
309
+ SENSITIVE = []
310
+ include Aws::Structure
311
+ end
312
+
313
+ # @!attribute [rw] billing_view
314
+ # The billing view element associated with the specified ARN.
315
+ # @return [Types::BillingViewElement]
316
+ #
317
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/GetBillingViewResponse AWS API Documentation
318
+ #
319
+ class GetBillingViewResponse < Struct.new(
320
+ :billing_view)
321
+ SENSITIVE = []
322
+ include Aws::Structure
323
+ end
324
+
325
+ # @!attribute [rw] resource_arn
326
+ # The Amazon Resource Name (ARN) of the billing view resource to which
327
+ # the policy is attached to.
328
+ # @return [String]
329
+ #
330
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/GetResourcePolicyRequest AWS API Documentation
331
+ #
332
+ class GetResourcePolicyRequest < Struct.new(
333
+ :resource_arn)
334
+ SENSITIVE = []
335
+ include Aws::Structure
336
+ end
337
+
338
+ # @!attribute [rw] resource_arn
339
+ # The Amazon Resource Name (ARN) of the billing view resource to which
340
+ # the policy is attached to.
341
+ # @return [String]
342
+ #
343
+ # @!attribute [rw] policy
344
+ # The resource-based policy document attached to the resource in
345
+ # `JSON` format.
346
+ # @return [String]
347
+ #
348
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/GetResourcePolicyResponse AWS API Documentation
349
+ #
350
+ class GetResourcePolicyResponse < Struct.new(
351
+ :resource_arn,
352
+ :policy)
353
+ SENSITIVE = []
72
354
  include Aws::Structure
73
355
  end
74
356
 
@@ -94,6 +376,19 @@ module Aws::Billing
94
376
  # month.
95
377
  # @return [Types::ActiveTimeRange]
96
378
  #
379
+ # @!attribute [rw] arns
380
+ # The Amazon Resource Name (ARN) that can be used to uniquely identify
381
+ # the billing view.
382
+ # @return [Array<String>]
383
+ #
384
+ # @!attribute [rw] billing_view_types
385
+ # The type of billing view.
386
+ # @return [Array<String>]
387
+ #
388
+ # @!attribute [rw] owner_account_id
389
+ # The list of owners of the billing view.
390
+ # @return [String]
391
+ #
97
392
  # @!attribute [rw] max_results
98
393
  # The maximum number of billing views to retrieve. Default is 100.
99
394
  # @return [Integer]
@@ -107,6 +402,9 @@ module Aws::Billing
107
402
  #
108
403
  class ListBillingViewsRequest < Struct.new(
109
404
  :active_time_range,
405
+ :arns,
406
+ :billing_view_types,
407
+ :owner_account_id,
110
408
  :max_results,
111
409
  :next_token)
112
410
  SENSITIVE = []
@@ -131,6 +429,189 @@ module Aws::Billing
131
429
  include Aws::Structure
132
430
  end
133
431
 
432
+ # @!attribute [rw] arn
433
+ # The Amazon Resource Name (ARN) that can be used to uniquely identify
434
+ # the billing view.
435
+ # @return [String]
436
+ #
437
+ # @!attribute [rw] max_results
438
+ # The number of entries a paginated response contains.
439
+ # @return [Integer]
440
+ #
441
+ # @!attribute [rw] next_token
442
+ # The pagination token that is used on subsequent calls to list
443
+ # billing views.
444
+ # @return [String]
445
+ #
446
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/ListSourceViewsForBillingViewRequest AWS API Documentation
447
+ #
448
+ class ListSourceViewsForBillingViewRequest < Struct.new(
449
+ :arn,
450
+ :max_results,
451
+ :next_token)
452
+ SENSITIVE = []
453
+ include Aws::Structure
454
+ end
455
+
456
+ # @!attribute [rw] source_views
457
+ # A list of billing views used as the data source for the custom
458
+ # billing view.
459
+ # @return [Array<String>]
460
+ #
461
+ # @!attribute [rw] next_token
462
+ # The pagination token that is used on subsequent calls to list
463
+ # billing views.
464
+ # @return [String]
465
+ #
466
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/ListSourceViewsForBillingViewResponse AWS API Documentation
467
+ #
468
+ class ListSourceViewsForBillingViewResponse < Struct.new(
469
+ :source_views,
470
+ :next_token)
471
+ SENSITIVE = []
472
+ include Aws::Structure
473
+ end
474
+
475
+ # @!attribute [rw] resource_arn
476
+ # The Amazon Resource Name (ARN) of the resource.
477
+ # @return [String]
478
+ #
479
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/ListTagsForResourceRequest AWS API Documentation
480
+ #
481
+ class ListTagsForResourceRequest < Struct.new(
482
+ :resource_arn)
483
+ SENSITIVE = []
484
+ include Aws::Structure
485
+ end
486
+
487
+ # @!attribute [rw] resource_tags
488
+ # A list of tag key value pairs that are associated with the resource.
489
+ # @return [Array<Types::ResourceTag>]
490
+ #
491
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/ListTagsForResourceResponse AWS API Documentation
492
+ #
493
+ class ListTagsForResourceResponse < Struct.new(
494
+ :resource_tags)
495
+ SENSITIVE = []
496
+ include Aws::Structure
497
+ end
498
+
499
+ # The specified ARN in the request doesn't exist.
500
+ #
501
+ # @!attribute [rw] message
502
+ # @return [String]
503
+ #
504
+ # @!attribute [rw] resource_id
505
+ # Value is a list of resource IDs that were not found.
506
+ # @return [String]
507
+ #
508
+ # @!attribute [rw] resource_type
509
+ # Value is the type of resource that was not found.
510
+ # @return [String]
511
+ #
512
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/ResourceNotFoundException AWS API Documentation
513
+ #
514
+ class ResourceNotFoundException < Struct.new(
515
+ :message,
516
+ :resource_id,
517
+ :resource_type)
518
+ SENSITIVE = []
519
+ include Aws::Structure
520
+ end
521
+
522
+ # The tag structure that contains a tag key and value.
523
+ #
524
+ # @!attribute [rw] key
525
+ # The key that's associated with the tag.
526
+ # @return [String]
527
+ #
528
+ # @!attribute [rw] value
529
+ # The value that's associated with the tag.
530
+ # @return [String]
531
+ #
532
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/ResourceTag AWS API Documentation
533
+ #
534
+ class ResourceTag < Struct.new(
535
+ :key,
536
+ :value)
537
+ SENSITIVE = []
538
+ include Aws::Structure
539
+ end
540
+
541
+ # You've reached the limit of resources you can create, or exceeded the
542
+ # size of an individual resource.
543
+ #
544
+ # @!attribute [rw] message
545
+ # @return [String]
546
+ #
547
+ # @!attribute [rw] resource_id
548
+ # The ID of the resource.
549
+ # @return [String]
550
+ #
551
+ # @!attribute [rw] resource_type
552
+ # The type of Amazon Web Services resource.
553
+ # @return [String]
554
+ #
555
+ # @!attribute [rw] service_code
556
+ # The container for the `serviceCode`.
557
+ # @return [String]
558
+ #
559
+ # @!attribute [rw] quota_code
560
+ # The container for the `quotaCode`.
561
+ # @return [String]
562
+ #
563
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/ServiceQuotaExceededException AWS API Documentation
564
+ #
565
+ class ServiceQuotaExceededException < Struct.new(
566
+ :message,
567
+ :resource_id,
568
+ :resource_type,
569
+ :service_code,
570
+ :quota_code)
571
+ SENSITIVE = []
572
+ include Aws::Structure
573
+ end
574
+
575
+ # @!attribute [rw] resource_arn
576
+ # The Amazon Resource Name (ARN) of the resource.
577
+ # @return [String]
578
+ #
579
+ # @!attribute [rw] resource_tags
580
+ # A list of tag key value pairs that are associated with the resource.
581
+ # @return [Array<Types::ResourceTag>]
582
+ #
583
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/TagResourceRequest AWS API Documentation
584
+ #
585
+ class TagResourceRequest < Struct.new(
586
+ :resource_arn,
587
+ :resource_tags)
588
+ SENSITIVE = []
589
+ include Aws::Structure
590
+ end
591
+
592
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/TagResourceResponse AWS API Documentation
593
+ #
594
+ class TagResourceResponse < Aws::EmptyStructure; end
595
+
596
+ # The values that are available for a tag.
597
+ #
598
+ # @!attribute [rw] key
599
+ # The key for the tag.
600
+ # @return [String]
601
+ #
602
+ # @!attribute [rw] values
603
+ # The specific value of the tag.
604
+ # @return [Array<String>]
605
+ #
606
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/TagValues AWS API Documentation
607
+ #
608
+ class TagValues < Struct.new(
609
+ :key,
610
+ :values)
611
+ SENSITIVE = []
612
+ include Aws::Structure
613
+ end
614
+
134
615
  # The request was denied due to request throttling.
135
616
  #
136
617
  # @!attribute [rw] message
@@ -144,6 +625,78 @@ module Aws::Billing
144
625
  include Aws::Structure
145
626
  end
146
627
 
628
+ # @!attribute [rw] resource_arn
629
+ # The Amazon Resource Name (ARN) of the resource.
630
+ # @return [String]
631
+ #
632
+ # @!attribute [rw] resource_tag_keys
633
+ # A list of tag key value pairs that are associated with the resource.
634
+ # @return [Array<String>]
635
+ #
636
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/UntagResourceRequest AWS API Documentation
637
+ #
638
+ class UntagResourceRequest < Struct.new(
639
+ :resource_arn,
640
+ :resource_tag_keys)
641
+ SENSITIVE = []
642
+ include Aws::Structure
643
+ end
644
+
645
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/UntagResourceResponse AWS API Documentation
646
+ #
647
+ class UntagResourceResponse < Aws::EmptyStructure; end
648
+
649
+ # @!attribute [rw] arn
650
+ # The Amazon Resource Name (ARN) that can be used to uniquely identify
651
+ # the billing view.
652
+ # @return [String]
653
+ #
654
+ # @!attribute [rw] name
655
+ # The name of the billing view.
656
+ # @return [String]
657
+ #
658
+ # @!attribute [rw] description
659
+ # The description of the billing view.
660
+ # @return [String]
661
+ #
662
+ # @!attribute [rw] data_filter_expression
663
+ # See [Expression][1]. Billing view only supports `LINKED_ACCOUNT` and
664
+ # `Tags`.
665
+ #
666
+ #
667
+ #
668
+ # [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html
669
+ # @return [Types::Expression]
670
+ #
671
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/UpdateBillingViewRequest AWS API Documentation
672
+ #
673
+ class UpdateBillingViewRequest < Struct.new(
674
+ :arn,
675
+ :name,
676
+ :description,
677
+ :data_filter_expression)
678
+ SENSITIVE = [:name, :description]
679
+ include Aws::Structure
680
+ end
681
+
682
+ # @!attribute [rw] arn
683
+ # The Amazon Resource Name (ARN) that can be used to uniquely identify
684
+ # the billing view.
685
+ # @return [String]
686
+ #
687
+ # @!attribute [rw] updated_at
688
+ # The time when the billing view was last updated.
689
+ # @return [Time]
690
+ #
691
+ # @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/UpdateBillingViewResponse AWS API Documentation
692
+ #
693
+ class UpdateBillingViewResponse < Struct.new(
694
+ :arn,
695
+ :updated_at)
696
+ SENSITIVE = []
697
+ include Aws::Structure
698
+ end
699
+
147
700
  # The input fails to satisfy the constraints specified by an Amazon Web
148
701
  # Services service.
149
702
  #
@@ -23,7 +23,7 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:billing)
23
23
  # structure.
24
24
  #
25
25
  # billing = Aws::Billing::Client.new
26
- # resp = billing.list_billing_views(params)
26
+ # resp = billing.create_billing_view(params)
27
27
  #
28
28
  # See {Client} for more information.
29
29
  #
@@ -55,7 +55,7 @@ module Aws::Billing
55
55
  autoload :EndpointProvider, 'aws-sdk-billing/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-billing/endpoints'
57
57
 
58
- GEM_VERSION = '1.0.0'
58
+ GEM_VERSION = '1.1.0'
59
59
 
60
60
  end
61
61