aws-sdk-billing 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-billing/client.rb +549 -4
- data/lib/aws-sdk-billing/client_api.rb +299 -1
- data/lib/aws-sdk-billing/errors.rb +88 -0
- data/lib/aws-sdk-billing/types.rb +554 -1
- data/lib/aws-sdk-billing.rb +2 -2
- data/sig/client.rbs +137 -2
- data/sig/errors.rbs +17 -0
- data/sig/types.rbs +167 -2
- metadata +2 -2
data/sig/client.rbs
CHANGED
@@ -76,6 +76,67 @@ module Aws
|
|
76
76
|
| (?Hash[Symbol, untyped]) -> instance
|
77
77
|
|
78
78
|
|
79
|
+
interface _CreateBillingViewResponseSuccess
|
80
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateBillingViewResponse]
|
81
|
+
def arn: () -> ::String
|
82
|
+
def created_at: () -> ::Time
|
83
|
+
end
|
84
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#create_billing_view-instance_method
|
85
|
+
def create_billing_view: (
|
86
|
+
name: ::String,
|
87
|
+
?description: ::String,
|
88
|
+
source_views: Array[::String],
|
89
|
+
?data_filter_expression: {
|
90
|
+
dimensions: {
|
91
|
+
key: ("LINKED_ACCOUNT"),
|
92
|
+
values: Array[::String]
|
93
|
+
}?,
|
94
|
+
tags: {
|
95
|
+
key: ::String,
|
96
|
+
values: Array[::String]
|
97
|
+
}?
|
98
|
+
},
|
99
|
+
?client_token: ::String,
|
100
|
+
?resource_tags: Array[
|
101
|
+
{
|
102
|
+
key: ::String,
|
103
|
+
value: ::String?
|
104
|
+
},
|
105
|
+
]
|
106
|
+
) -> _CreateBillingViewResponseSuccess
|
107
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateBillingViewResponseSuccess
|
108
|
+
|
109
|
+
interface _DeleteBillingViewResponseSuccess
|
110
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteBillingViewResponse]
|
111
|
+
def arn: () -> ::String
|
112
|
+
end
|
113
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#delete_billing_view-instance_method
|
114
|
+
def delete_billing_view: (
|
115
|
+
arn: ::String
|
116
|
+
) -> _DeleteBillingViewResponseSuccess
|
117
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteBillingViewResponseSuccess
|
118
|
+
|
119
|
+
interface _GetBillingViewResponseSuccess
|
120
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetBillingViewResponse]
|
121
|
+
def billing_view: () -> Types::BillingViewElement
|
122
|
+
end
|
123
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#get_billing_view-instance_method
|
124
|
+
def get_billing_view: (
|
125
|
+
arn: ::String
|
126
|
+
) -> _GetBillingViewResponseSuccess
|
127
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetBillingViewResponseSuccess
|
128
|
+
|
129
|
+
interface _GetResourcePolicyResponseSuccess
|
130
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetResourcePolicyResponse]
|
131
|
+
def resource_arn: () -> ::String
|
132
|
+
def policy: () -> ::String
|
133
|
+
end
|
134
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#get_resource_policy-instance_method
|
135
|
+
def get_resource_policy: (
|
136
|
+
resource_arn: ::String
|
137
|
+
) -> _GetResourcePolicyResponseSuccess
|
138
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourcePolicyResponseSuccess
|
139
|
+
|
79
140
|
interface _ListBillingViewsResponseSuccess
|
80
141
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListBillingViewsResponse]
|
81
142
|
def billing_views: () -> ::Array[Types::BillingViewListElement]
|
@@ -83,14 +144,88 @@ module Aws
|
|
83
144
|
end
|
84
145
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#list_billing_views-instance_method
|
85
146
|
def list_billing_views: (
|
86
|
-
active_time_range: {
|
147
|
+
?active_time_range: {
|
87
148
|
active_after_inclusive: ::Time,
|
88
149
|
active_before_inclusive: ::Time
|
89
150
|
},
|
151
|
+
?arns: Array[::String],
|
152
|
+
?billing_view_types: Array[("PRIMARY" | "BILLING_GROUP" | "CUSTOM")],
|
153
|
+
?owner_account_id: ::String,
|
90
154
|
?max_results: ::Integer,
|
91
155
|
?next_token: ::String
|
92
156
|
) -> _ListBillingViewsResponseSuccess
|
93
|
-
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListBillingViewsResponseSuccess
|
157
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListBillingViewsResponseSuccess
|
158
|
+
|
159
|
+
interface _ListSourceViewsForBillingViewResponseSuccess
|
160
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListSourceViewsForBillingViewResponse]
|
161
|
+
def source_views: () -> ::Array[::String]
|
162
|
+
def next_token: () -> ::String
|
163
|
+
end
|
164
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#list_source_views_for_billing_view-instance_method
|
165
|
+
def list_source_views_for_billing_view: (
|
166
|
+
arn: ::String,
|
167
|
+
?max_results: ::Integer,
|
168
|
+
?next_token: ::String
|
169
|
+
) -> _ListSourceViewsForBillingViewResponseSuccess
|
170
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListSourceViewsForBillingViewResponseSuccess
|
171
|
+
|
172
|
+
interface _ListTagsForResourceResponseSuccess
|
173
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
|
174
|
+
def resource_tags: () -> ::Array[Types::ResourceTag]
|
175
|
+
end
|
176
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#list_tags_for_resource-instance_method
|
177
|
+
def list_tags_for_resource: (
|
178
|
+
resource_arn: ::String
|
179
|
+
) -> _ListTagsForResourceResponseSuccess
|
180
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
|
181
|
+
|
182
|
+
interface _TagResourceResponseSuccess
|
183
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
|
184
|
+
end
|
185
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#tag_resource-instance_method
|
186
|
+
def tag_resource: (
|
187
|
+
resource_arn: ::String,
|
188
|
+
resource_tags: Array[
|
189
|
+
{
|
190
|
+
key: ::String,
|
191
|
+
value: ::String?
|
192
|
+
},
|
193
|
+
]
|
194
|
+
) -> _TagResourceResponseSuccess
|
195
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
|
196
|
+
|
197
|
+
interface _UntagResourceResponseSuccess
|
198
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse]
|
199
|
+
end
|
200
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#untag_resource-instance_method
|
201
|
+
def untag_resource: (
|
202
|
+
resource_arn: ::String,
|
203
|
+
resource_tag_keys: Array[::String]
|
204
|
+
) -> _UntagResourceResponseSuccess
|
205
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
|
206
|
+
|
207
|
+
interface _UpdateBillingViewResponseSuccess
|
208
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateBillingViewResponse]
|
209
|
+
def arn: () -> ::String
|
210
|
+
def updated_at: () -> ::Time
|
211
|
+
end
|
212
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Billing/Client.html#update_billing_view-instance_method
|
213
|
+
def update_billing_view: (
|
214
|
+
arn: ::String,
|
215
|
+
?name: ::String,
|
216
|
+
?description: ::String,
|
217
|
+
?data_filter_expression: {
|
218
|
+
dimensions: {
|
219
|
+
key: ("LINKED_ACCOUNT"),
|
220
|
+
values: Array[::String]
|
221
|
+
}?,
|
222
|
+
tags: {
|
223
|
+
key: ::String,
|
224
|
+
values: Array[::String]
|
225
|
+
}?
|
226
|
+
}
|
227
|
+
) -> _UpdateBillingViewResponseSuccess
|
228
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateBillingViewResponseSuccess
|
94
229
|
end
|
95
230
|
end
|
96
231
|
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/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.
|
4
|
+
version: 1.1.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
|
+
date: 2024-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|