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.
data/sig/client.rbs CHANGED
@@ -39,7 +39,9 @@ module Aws
39
39
  ?logger: untyped,
40
40
  ?max_attempts: Integer,
41
41
  ?profile: String,
42
+ ?request_checksum_calculation: String,
42
43
  ?request_min_compression_size_bytes: Integer,
44
+ ?response_checksum_validation: String,
43
45
  ?retry_backoff: Proc,
44
46
  ?retry_base_delay: Float,
45
47
  ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
@@ -76,6 +78,67 @@ module Aws
76
78
  | (?Hash[Symbol, untyped]) -> instance
77
79
 
78
80
 
81
+ interface _CreateBillingViewResponseSuccess
82
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateBillingViewResponse]
83
+ def arn: () -> ::String
84
+ def created_at: () -> ::Time
85
+ end
86
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#create_billing_view-instance_method
87
+ def create_billing_view: (
88
+ name: ::String,
89
+ ?description: ::String,
90
+ source_views: Array[::String],
91
+ ?data_filter_expression: {
92
+ dimensions: {
93
+ key: ("LINKED_ACCOUNT"),
94
+ values: Array[::String]
95
+ }?,
96
+ tags: {
97
+ key: ::String,
98
+ values: Array[::String]
99
+ }?
100
+ },
101
+ ?client_token: ::String,
102
+ ?resource_tags: Array[
103
+ {
104
+ key: ::String,
105
+ value: ::String?
106
+ },
107
+ ]
108
+ ) -> _CreateBillingViewResponseSuccess
109
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateBillingViewResponseSuccess
110
+
111
+ interface _DeleteBillingViewResponseSuccess
112
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteBillingViewResponse]
113
+ def arn: () -> ::String
114
+ end
115
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#delete_billing_view-instance_method
116
+ def delete_billing_view: (
117
+ arn: ::String
118
+ ) -> _DeleteBillingViewResponseSuccess
119
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteBillingViewResponseSuccess
120
+
121
+ interface _GetBillingViewResponseSuccess
122
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetBillingViewResponse]
123
+ def billing_view: () -> Types::BillingViewElement
124
+ end
125
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#get_billing_view-instance_method
126
+ def get_billing_view: (
127
+ arn: ::String
128
+ ) -> _GetBillingViewResponseSuccess
129
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetBillingViewResponseSuccess
130
+
131
+ interface _GetResourcePolicyResponseSuccess
132
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetResourcePolicyResponse]
133
+ def resource_arn: () -> ::String
134
+ def policy: () -> ::String
135
+ end
136
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#get_resource_policy-instance_method
137
+ def get_resource_policy: (
138
+ resource_arn: ::String
139
+ ) -> _GetResourcePolicyResponseSuccess
140
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourcePolicyResponseSuccess
141
+
79
142
  interface _ListBillingViewsResponseSuccess
80
143
  include ::Seahorse::Client::_ResponseSuccess[Types::ListBillingViewsResponse]
81
144
  def billing_views: () -> ::Array[Types::BillingViewListElement]
@@ -83,14 +146,88 @@ module Aws
83
146
  end
84
147
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#list_billing_views-instance_method
85
148
  def list_billing_views: (
86
- active_time_range: {
149
+ ?active_time_range: {
87
150
  active_after_inclusive: ::Time,
88
151
  active_before_inclusive: ::Time
89
152
  },
153
+ ?arns: Array[::String],
154
+ ?billing_view_types: Array[("PRIMARY" | "BILLING_GROUP" | "CUSTOM")],
155
+ ?owner_account_id: ::String,
90
156
  ?max_results: ::Integer,
91
157
  ?next_token: ::String
92
158
  ) -> _ListBillingViewsResponseSuccess
93
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListBillingViewsResponseSuccess
159
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListBillingViewsResponseSuccess
160
+
161
+ interface _ListSourceViewsForBillingViewResponseSuccess
162
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListSourceViewsForBillingViewResponse]
163
+ def source_views: () -> ::Array[::String]
164
+ def next_token: () -> ::String
165
+ end
166
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#list_source_views_for_billing_view-instance_method
167
+ def list_source_views_for_billing_view: (
168
+ arn: ::String,
169
+ ?max_results: ::Integer,
170
+ ?next_token: ::String
171
+ ) -> _ListSourceViewsForBillingViewResponseSuccess
172
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListSourceViewsForBillingViewResponseSuccess
173
+
174
+ interface _ListTagsForResourceResponseSuccess
175
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
176
+ def resource_tags: () -> ::Array[Types::ResourceTag]
177
+ end
178
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#list_tags_for_resource-instance_method
179
+ def list_tags_for_resource: (
180
+ resource_arn: ::String
181
+ ) -> _ListTagsForResourceResponseSuccess
182
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
183
+
184
+ interface _TagResourceResponseSuccess
185
+ include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
186
+ end
187
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#tag_resource-instance_method
188
+ def tag_resource: (
189
+ resource_arn: ::String,
190
+ resource_tags: Array[
191
+ {
192
+ key: ::String,
193
+ value: ::String?
194
+ },
195
+ ]
196
+ ) -> _TagResourceResponseSuccess
197
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
198
+
199
+ interface _UntagResourceResponseSuccess
200
+ include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse]
201
+ end
202
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#untag_resource-instance_method
203
+ def untag_resource: (
204
+ resource_arn: ::String,
205
+ resource_tag_keys: Array[::String]
206
+ ) -> _UntagResourceResponseSuccess
207
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
208
+
209
+ interface _UpdateBillingViewResponseSuccess
210
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateBillingViewResponse]
211
+ def arn: () -> ::String
212
+ def updated_at: () -> ::Time
213
+ end
214
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#update_billing_view-instance_method
215
+ def update_billing_view: (
216
+ arn: ::String,
217
+ ?name: ::String,
218
+ ?description: ::String,
219
+ ?data_filter_expression: {
220
+ dimensions: {
221
+ key: ("LINKED_ACCOUNT"),
222
+ values: Array[::String]
223
+ }?,
224
+ tags: {
225
+ key: ::String,
226
+ values: Array[::String]
227
+ }?
228
+ }
229
+ ) -> _UpdateBillingViewResponseSuccess
230
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateBillingViewResponseSuccess
94
231
  end
95
232
  end
96
233
  end
data/sig/errors.rbs CHANGED
@@ -14,9 +14,26 @@ module Aws
14
14
  class AccessDeniedException < ::Aws::Errors::ServiceError
15
15
  def message: () -> ::String
16
16
  end
17
+ class ConflictException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ def resource_id: () -> ::String
20
+ def resource_type: () -> ::String
21
+ end
17
22
  class InternalServerException < ::Aws::Errors::ServiceError
18
23
  def message: () -> ::String
19
24
  end
25
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
26
+ def message: () -> ::String
27
+ def resource_id: () -> ::String
28
+ def resource_type: () -> ::String
29
+ end
30
+ class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
31
+ def message: () -> ::String
32
+ def resource_id: () -> ::String
33
+ def resource_type: () -> ::String
34
+ def service_code: () -> ::String
35
+ def quota_code: () -> ::String
36
+ end
20
37
  class ThrottlingException < ::Aws::Errors::ServiceError
21
38
  def message: () -> ::String
22
39
  end
data/sig/resource.rbs CHANGED
@@ -39,7 +39,9 @@ module Aws
39
39
  ?logger: untyped,
40
40
  ?max_attempts: Integer,
41
41
  ?profile: String,
42
+ ?request_checksum_calculation: String,
42
43
  ?request_min_compression_size_bytes: Integer,
44
+ ?response_checksum_validation: String,
43
45
  ?retry_backoff: Proc,
44
46
  ?retry_base_delay: Float,
45
47
  ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
data/sig/types.rbs CHANGED
@@ -19,12 +19,91 @@ module Aws::Billing
19
19
  SENSITIVE: []
20
20
  end
21
21
 
22
+ class BillingViewElement
23
+ attr_accessor arn: ::String
24
+ attr_accessor name: ::String
25
+ attr_accessor description: ::String
26
+ attr_accessor billing_view_type: ("PRIMARY" | "BILLING_GROUP" | "CUSTOM")
27
+ attr_accessor owner_account_id: ::String
28
+ attr_accessor data_filter_expression: Types::Expression
29
+ attr_accessor created_at: ::Time
30
+ attr_accessor updated_at: ::Time
31
+ SENSITIVE: [:name, :description]
32
+ end
33
+
22
34
  class BillingViewListElement
23
35
  attr_accessor arn: ::String
24
36
  attr_accessor name: ::String
37
+ attr_accessor description: ::String
25
38
  attr_accessor owner_account_id: ::String
26
- attr_accessor billing_view_type: ("PRIMARY" | "BILLING_GROUP")
27
- SENSITIVE: [:name]
39
+ attr_accessor billing_view_type: ("PRIMARY" | "BILLING_GROUP" | "CUSTOM")
40
+ SENSITIVE: [:name, :description]
41
+ end
42
+
43
+ class ConflictException
44
+ attr_accessor message: ::String
45
+ attr_accessor resource_id: ::String
46
+ attr_accessor resource_type: ::String
47
+ SENSITIVE: []
48
+ end
49
+
50
+ class CreateBillingViewRequest
51
+ attr_accessor name: ::String
52
+ attr_accessor description: ::String
53
+ attr_accessor source_views: ::Array[::String]
54
+ attr_accessor data_filter_expression: Types::Expression
55
+ attr_accessor client_token: ::String
56
+ attr_accessor resource_tags: ::Array[Types::ResourceTag]
57
+ SENSITIVE: [:name, :description]
58
+ end
59
+
60
+ class CreateBillingViewResponse
61
+ attr_accessor arn: ::String
62
+ attr_accessor created_at: ::Time
63
+ SENSITIVE: []
64
+ end
65
+
66
+ class DeleteBillingViewRequest
67
+ attr_accessor arn: ::String
68
+ SENSITIVE: []
69
+ end
70
+
71
+ class DeleteBillingViewResponse
72
+ attr_accessor arn: ::String
73
+ SENSITIVE: []
74
+ end
75
+
76
+ class DimensionValues
77
+ attr_accessor key: ("LINKED_ACCOUNT")
78
+ attr_accessor values: ::Array[::String]
79
+ SENSITIVE: []
80
+ end
81
+
82
+ class Expression
83
+ attr_accessor dimensions: Types::DimensionValues
84
+ attr_accessor tags: Types::TagValues
85
+ SENSITIVE: []
86
+ end
87
+
88
+ class GetBillingViewRequest
89
+ attr_accessor arn: ::String
90
+ SENSITIVE: []
91
+ end
92
+
93
+ class GetBillingViewResponse
94
+ attr_accessor billing_view: Types::BillingViewElement
95
+ SENSITIVE: []
96
+ end
97
+
98
+ class GetResourcePolicyRequest
99
+ attr_accessor resource_arn: ::String
100
+ SENSITIVE: []
101
+ end
102
+
103
+ class GetResourcePolicyResponse
104
+ attr_accessor resource_arn: ::String
105
+ attr_accessor policy: ::String
106
+ SENSITIVE: []
28
107
  end
29
108
 
30
109
  class InternalServerException
@@ -34,6 +113,9 @@ module Aws::Billing
34
113
 
35
114
  class ListBillingViewsRequest
36
115
  attr_accessor active_time_range: Types::ActiveTimeRange
116
+ attr_accessor arns: ::Array[::String]
117
+ attr_accessor billing_view_types: ::Array[("PRIMARY" | "BILLING_GROUP" | "CUSTOM")]
118
+ attr_accessor owner_account_id: ::String
37
119
  attr_accessor max_results: ::Integer
38
120
  attr_accessor next_token: ::String
39
121
  SENSITIVE: []
@@ -45,11 +127,94 @@ module Aws::Billing
45
127
  SENSITIVE: []
46
128
  end
47
129
 
130
+ class ListSourceViewsForBillingViewRequest
131
+ attr_accessor arn: ::String
132
+ attr_accessor max_results: ::Integer
133
+ attr_accessor next_token: ::String
134
+ SENSITIVE: []
135
+ end
136
+
137
+ class ListSourceViewsForBillingViewResponse
138
+ attr_accessor source_views: ::Array[::String]
139
+ attr_accessor next_token: ::String
140
+ SENSITIVE: []
141
+ end
142
+
143
+ class ListTagsForResourceRequest
144
+ attr_accessor resource_arn: ::String
145
+ SENSITIVE: []
146
+ end
147
+
148
+ class ListTagsForResourceResponse
149
+ attr_accessor resource_tags: ::Array[Types::ResourceTag]
150
+ SENSITIVE: []
151
+ end
152
+
153
+ class ResourceNotFoundException
154
+ attr_accessor message: ::String
155
+ attr_accessor resource_id: ::String
156
+ attr_accessor resource_type: ::String
157
+ SENSITIVE: []
158
+ end
159
+
160
+ class ResourceTag
161
+ attr_accessor key: ::String
162
+ attr_accessor value: ::String
163
+ SENSITIVE: []
164
+ end
165
+
166
+ class ServiceQuotaExceededException
167
+ attr_accessor message: ::String
168
+ attr_accessor resource_id: ::String
169
+ attr_accessor resource_type: ::String
170
+ attr_accessor service_code: ::String
171
+ attr_accessor quota_code: ::String
172
+ SENSITIVE: []
173
+ end
174
+
175
+ class TagResourceRequest
176
+ attr_accessor resource_arn: ::String
177
+ attr_accessor resource_tags: ::Array[Types::ResourceTag]
178
+ SENSITIVE: []
179
+ end
180
+
181
+ class TagResourceResponse < Aws::EmptyStructure
182
+ end
183
+
184
+ class TagValues
185
+ attr_accessor key: ::String
186
+ attr_accessor values: ::Array[::String]
187
+ SENSITIVE: []
188
+ end
189
+
48
190
  class ThrottlingException
49
191
  attr_accessor message: ::String
50
192
  SENSITIVE: []
51
193
  end
52
194
 
195
+ class UntagResourceRequest
196
+ attr_accessor resource_arn: ::String
197
+ attr_accessor resource_tag_keys: ::Array[::String]
198
+ SENSITIVE: []
199
+ end
200
+
201
+ class UntagResourceResponse < Aws::EmptyStructure
202
+ end
203
+
204
+ class UpdateBillingViewRequest
205
+ attr_accessor arn: ::String
206
+ attr_accessor name: ::String
207
+ attr_accessor description: ::String
208
+ attr_accessor data_filter_expression: Types::Expression
209
+ SENSITIVE: [:name, :description]
210
+ end
211
+
212
+ class UpdateBillingViewResponse
213
+ attr_accessor arn: ::String
214
+ attr_accessor updated_at: ::Time
215
+ SENSITIVE: []
216
+ end
217
+
53
218
  class ValidationException
54
219
  attr_accessor message: ::String
55
220
  attr_accessor reason: ("unknownOperation" | "cannotParse" | "fieldValidationFailed" | "other")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-billing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-13 00:00:00.000000000 Z
11
+ date: 2025-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.210.0
22
+ version: 3.216.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.210.0
32
+ version: 3.216.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement