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.
@@ -18,23 +18,68 @@ module Aws::Billing
18
18
  AccountId = Shapes::StringShape.new(name: 'AccountId')
19
19
  ActiveTimeRange = Shapes::StructureShape.new(name: 'ActiveTimeRange')
20
20
  BillingViewArn = Shapes::StringShape.new(name: 'BillingViewArn')
21
+ BillingViewArnList = Shapes::ListShape.new(name: 'BillingViewArnList')
22
+ BillingViewDescription = Shapes::StringShape.new(name: 'BillingViewDescription')
23
+ BillingViewElement = Shapes::StructureShape.new(name: 'BillingViewElement')
21
24
  BillingViewList = Shapes::ListShape.new(name: 'BillingViewList')
22
25
  BillingViewListElement = Shapes::StructureShape.new(name: 'BillingViewListElement')
23
26
  BillingViewName = Shapes::StringShape.new(name: 'BillingViewName')
27
+ BillingViewSourceViewsList = Shapes::ListShape.new(name: 'BillingViewSourceViewsList')
24
28
  BillingViewType = Shapes::StringShape.new(name: 'BillingViewType')
29
+ BillingViewTypeList = Shapes::ListShape.new(name: 'BillingViewTypeList')
25
30
  BillingViewsMaxResults = Shapes::IntegerShape.new(name: 'BillingViewsMaxResults')
31
+ ClientToken = Shapes::StringShape.new(name: 'ClientToken')
32
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
33
+ CreateBillingViewRequest = Shapes::StructureShape.new(name: 'CreateBillingViewRequest')
34
+ CreateBillingViewResponse = Shapes::StructureShape.new(name: 'CreateBillingViewResponse')
35
+ DeleteBillingViewRequest = Shapes::StructureShape.new(name: 'DeleteBillingViewRequest')
36
+ DeleteBillingViewResponse = Shapes::StructureShape.new(name: 'DeleteBillingViewResponse')
37
+ Dimension = Shapes::StringShape.new(name: 'Dimension')
38
+ DimensionValues = Shapes::StructureShape.new(name: 'DimensionValues')
26
39
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
40
+ Expression = Shapes::StructureShape.new(name: 'Expression')
27
41
  FieldName = Shapes::StringShape.new(name: 'FieldName')
42
+ GetBillingViewRequest = Shapes::StructureShape.new(name: 'GetBillingViewRequest')
43
+ GetBillingViewResponse = Shapes::StructureShape.new(name: 'GetBillingViewResponse')
44
+ GetResourcePolicyRequest = Shapes::StructureShape.new(name: 'GetResourcePolicyRequest')
45
+ GetResourcePolicyResponse = Shapes::StructureShape.new(name: 'GetResourcePolicyResponse')
28
46
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
29
47
  ListBillingViewsRequest = Shapes::StructureShape.new(name: 'ListBillingViewsRequest')
30
48
  ListBillingViewsResponse = Shapes::StructureShape.new(name: 'ListBillingViewsResponse')
49
+ ListSourceViewsForBillingViewRequest = Shapes::StructureShape.new(name: 'ListSourceViewsForBillingViewRequest')
50
+ ListSourceViewsForBillingViewResponse = Shapes::StructureShape.new(name: 'ListSourceViewsForBillingViewResponse')
51
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
52
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
31
53
  PageToken = Shapes::StringShape.new(name: 'PageToken')
54
+ PolicyDocument = Shapes::StringShape.new(name: 'PolicyDocument')
55
+ QuotaCode = Shapes::StringShape.new(name: 'QuotaCode')
56
+ ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
57
+ ResourceId = Shapes::StringShape.new(name: 'ResourceId')
58
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
59
+ ResourceTag = Shapes::StructureShape.new(name: 'ResourceTag')
60
+ ResourceTagKey = Shapes::StringShape.new(name: 'ResourceTagKey')
61
+ ResourceTagKeyList = Shapes::ListShape.new(name: 'ResourceTagKeyList')
62
+ ResourceTagList = Shapes::ListShape.new(name: 'ResourceTagList')
63
+ ResourceTagValue = Shapes::StringShape.new(name: 'ResourceTagValue')
64
+ ResourceType = Shapes::StringShape.new(name: 'ResourceType')
65
+ ServiceCode = Shapes::StringShape.new(name: 'ServiceCode')
66
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
67
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
68
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
69
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
70
+ TagValues = Shapes::StructureShape.new(name: 'TagValues')
32
71
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
33
72
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
73
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
74
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
75
+ UpdateBillingViewRequest = Shapes::StructureShape.new(name: 'UpdateBillingViewRequest')
76
+ UpdateBillingViewResponse = Shapes::StructureShape.new(name: 'UpdateBillingViewResponse')
34
77
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
35
78
  ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
36
79
  ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
37
80
  ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
81
+ Value = Shapes::StringShape.new(name: 'Value')
82
+ Values = Shapes::ListShape.new(name: 'Values')
38
83
 
39
84
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
40
85
  AccessDeniedException.struct_class = Types::AccessDeniedException
@@ -43,18 +88,82 @@ module Aws::Billing
43
88
  ActiveTimeRange.add_member(:active_before_inclusive, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "activeBeforeInclusive"))
44
89
  ActiveTimeRange.struct_class = Types::ActiveTimeRange
45
90
 
91
+ BillingViewArnList.member = Shapes::ShapeRef.new(shape: BillingViewArn)
92
+
93
+ BillingViewElement.add_member(:arn, Shapes::ShapeRef.new(shape: BillingViewArn, location_name: "arn"))
94
+ BillingViewElement.add_member(:name, Shapes::ShapeRef.new(shape: BillingViewName, location_name: "name"))
95
+ BillingViewElement.add_member(:description, Shapes::ShapeRef.new(shape: BillingViewDescription, location_name: "description"))
96
+ BillingViewElement.add_member(:billing_view_type, Shapes::ShapeRef.new(shape: BillingViewType, location_name: "billingViewType"))
97
+ BillingViewElement.add_member(:owner_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "ownerAccountId"))
98
+ BillingViewElement.add_member(:data_filter_expression, Shapes::ShapeRef.new(shape: Expression, location_name: "dataFilterExpression"))
99
+ BillingViewElement.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
100
+ BillingViewElement.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
101
+ BillingViewElement.struct_class = Types::BillingViewElement
102
+
46
103
  BillingViewList.member = Shapes::ShapeRef.new(shape: BillingViewListElement)
47
104
 
48
105
  BillingViewListElement.add_member(:arn, Shapes::ShapeRef.new(shape: BillingViewArn, location_name: "arn"))
49
106
  BillingViewListElement.add_member(:name, Shapes::ShapeRef.new(shape: BillingViewName, location_name: "name"))
107
+ BillingViewListElement.add_member(:description, Shapes::ShapeRef.new(shape: BillingViewDescription, location_name: "description"))
50
108
  BillingViewListElement.add_member(:owner_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "ownerAccountId"))
51
109
  BillingViewListElement.add_member(:billing_view_type, Shapes::ShapeRef.new(shape: BillingViewType, location_name: "billingViewType"))
52
110
  BillingViewListElement.struct_class = Types::BillingViewListElement
53
111
 
112
+ BillingViewSourceViewsList.member = Shapes::ShapeRef.new(shape: BillingViewArn)
113
+
114
+ BillingViewTypeList.member = Shapes::ShapeRef.new(shape: BillingViewType)
115
+
116
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
117
+ ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
118
+ ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
119
+ ConflictException.struct_class = Types::ConflictException
120
+
121
+ CreateBillingViewRequest.add_member(:name, Shapes::ShapeRef.new(shape: BillingViewName, required: true, location_name: "name"))
122
+ CreateBillingViewRequest.add_member(:description, Shapes::ShapeRef.new(shape: BillingViewDescription, location_name: "description"))
123
+ CreateBillingViewRequest.add_member(:source_views, Shapes::ShapeRef.new(shape: BillingViewSourceViewsList, required: true, location_name: "sourceViews"))
124
+ CreateBillingViewRequest.add_member(:data_filter_expression, Shapes::ShapeRef.new(shape: Expression, location_name: "dataFilterExpression"))
125
+ CreateBillingViewRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
126
+ CreateBillingViewRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, location_name: "resourceTags"))
127
+ CreateBillingViewRequest.struct_class = Types::CreateBillingViewRequest
128
+
129
+ CreateBillingViewResponse.add_member(:arn, Shapes::ShapeRef.new(shape: BillingViewArn, required: true, location_name: "arn"))
130
+ CreateBillingViewResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
131
+ CreateBillingViewResponse.struct_class = Types::CreateBillingViewResponse
132
+
133
+ DeleteBillingViewRequest.add_member(:arn, Shapes::ShapeRef.new(shape: BillingViewArn, required: true, location_name: "arn"))
134
+ DeleteBillingViewRequest.struct_class = Types::DeleteBillingViewRequest
135
+
136
+ DeleteBillingViewResponse.add_member(:arn, Shapes::ShapeRef.new(shape: BillingViewArn, required: true, location_name: "arn"))
137
+ DeleteBillingViewResponse.struct_class = Types::DeleteBillingViewResponse
138
+
139
+ DimensionValues.add_member(:key, Shapes::ShapeRef.new(shape: Dimension, required: true, location_name: "key"))
140
+ DimensionValues.add_member(:values, Shapes::ShapeRef.new(shape: Values, required: true, location_name: "values"))
141
+ DimensionValues.struct_class = Types::DimensionValues
142
+
143
+ Expression.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionValues, location_name: "dimensions"))
144
+ Expression.add_member(:tags, Shapes::ShapeRef.new(shape: TagValues, location_name: "tags"))
145
+ Expression.struct_class = Types::Expression
146
+
147
+ GetBillingViewRequest.add_member(:arn, Shapes::ShapeRef.new(shape: BillingViewArn, required: true, location_name: "arn"))
148
+ GetBillingViewRequest.struct_class = Types::GetBillingViewRequest
149
+
150
+ GetBillingViewResponse.add_member(:billing_view, Shapes::ShapeRef.new(shape: BillingViewElement, required: true, location_name: "billingView"))
151
+ GetBillingViewResponse.struct_class = Types::GetBillingViewResponse
152
+
153
+ GetResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "resourceArn"))
154
+ GetResourcePolicyRequest.struct_class = Types::GetResourcePolicyRequest
155
+
156
+ GetResourcePolicyResponse.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "resourceArn"))
157
+ GetResourcePolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyDocument, location_name: "policy"))
158
+ GetResourcePolicyResponse.struct_class = Types::GetResourcePolicyResponse
159
+
54
160
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
55
161
  InternalServerException.struct_class = Types::InternalServerException
56
162
 
57
- ListBillingViewsRequest.add_member(:active_time_range, Shapes::ShapeRef.new(shape: ActiveTimeRange, required: true, location_name: "activeTimeRange"))
163
+ ListBillingViewsRequest.add_member(:active_time_range, Shapes::ShapeRef.new(shape: ActiveTimeRange, location_name: "activeTimeRange"))
164
+ ListBillingViewsRequest.add_member(:arns, Shapes::ShapeRef.new(shape: BillingViewArnList, location_name: "arns"))
165
+ ListBillingViewsRequest.add_member(:billing_view_types, Shapes::ShapeRef.new(shape: BillingViewTypeList, location_name: "billingViewTypes"))
166
+ ListBillingViewsRequest.add_member(:owner_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "ownerAccountId"))
58
167
  ListBillingViewsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BillingViewsMaxResults, location_name: "maxResults"))
59
168
  ListBillingViewsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PageToken, location_name: "nextToken"))
60
169
  ListBillingViewsRequest.struct_class = Types::ListBillingViewsRequest
@@ -63,9 +172,70 @@ module Aws::Billing
63
172
  ListBillingViewsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PageToken, location_name: "nextToken"))
64
173
  ListBillingViewsResponse.struct_class = Types::ListBillingViewsResponse
65
174
 
175
+ ListSourceViewsForBillingViewRequest.add_member(:arn, Shapes::ShapeRef.new(shape: BillingViewArn, required: true, location_name: "arn"))
176
+ ListSourceViewsForBillingViewRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BillingViewsMaxResults, location_name: "maxResults"))
177
+ ListSourceViewsForBillingViewRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PageToken, location_name: "nextToken"))
178
+ ListSourceViewsForBillingViewRequest.struct_class = Types::ListSourceViewsForBillingViewRequest
179
+
180
+ ListSourceViewsForBillingViewResponse.add_member(:source_views, Shapes::ShapeRef.new(shape: BillingViewSourceViewsList, required: true, location_name: "sourceViews"))
181
+ ListSourceViewsForBillingViewResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PageToken, location_name: "nextToken"))
182
+ ListSourceViewsForBillingViewResponse.struct_class = Types::ListSourceViewsForBillingViewResponse
183
+
184
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "resourceArn"))
185
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
186
+
187
+ ListTagsForResourceResponse.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, location_name: "resourceTags"))
188
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
189
+
190
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
191
+ ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
192
+ ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
193
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
194
+
195
+ ResourceTag.add_member(:key, Shapes::ShapeRef.new(shape: ResourceTagKey, required: true, location_name: "key"))
196
+ ResourceTag.add_member(:value, Shapes::ShapeRef.new(shape: ResourceTagValue, location_name: "value"))
197
+ ResourceTag.struct_class = Types::ResourceTag
198
+
199
+ ResourceTagKeyList.member = Shapes::ShapeRef.new(shape: ResourceTagKey)
200
+
201
+ ResourceTagList.member = Shapes::ShapeRef.new(shape: ResourceTag)
202
+
203
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
204
+ ServiceQuotaExceededException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
205
+ ServiceQuotaExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
206
+ ServiceQuotaExceededException.add_member(:service_code, Shapes::ShapeRef.new(shape: ServiceCode, required: true, location_name: "serviceCode"))
207
+ ServiceQuotaExceededException.add_member(:quota_code, Shapes::ShapeRef.new(shape: QuotaCode, required: true, location_name: "quotaCode"))
208
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
209
+
210
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "resourceArn"))
211
+ TagResourceRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, required: true, location_name: "resourceTags"))
212
+ TagResourceRequest.struct_class = Types::TagResourceRequest
213
+
214
+ TagResourceResponse.struct_class = Types::TagResourceResponse
215
+
216
+ TagValues.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "key"))
217
+ TagValues.add_member(:values, Shapes::ShapeRef.new(shape: Values, required: true, location_name: "values"))
218
+ TagValues.struct_class = Types::TagValues
219
+
66
220
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
67
221
  ThrottlingException.struct_class = Types::ThrottlingException
68
222
 
223
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "resourceArn"))
224
+ UntagResourceRequest.add_member(:resource_tag_keys, Shapes::ShapeRef.new(shape: ResourceTagKeyList, required: true, location_name: "resourceTagKeys"))
225
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
226
+
227
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
228
+
229
+ UpdateBillingViewRequest.add_member(:arn, Shapes::ShapeRef.new(shape: BillingViewArn, required: true, location_name: "arn"))
230
+ UpdateBillingViewRequest.add_member(:name, Shapes::ShapeRef.new(shape: BillingViewName, location_name: "name"))
231
+ UpdateBillingViewRequest.add_member(:description, Shapes::ShapeRef.new(shape: BillingViewDescription, location_name: "description"))
232
+ UpdateBillingViewRequest.add_member(:data_filter_expression, Shapes::ShapeRef.new(shape: Expression, location_name: "dataFilterExpression"))
233
+ UpdateBillingViewRequest.struct_class = Types::UpdateBillingViewRequest
234
+
235
+ UpdateBillingViewResponse.add_member(:arn, Shapes::ShapeRef.new(shape: BillingViewArn, required: true, location_name: "arn"))
236
+ UpdateBillingViewResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
237
+ UpdateBillingViewResponse.struct_class = Types::UpdateBillingViewResponse
238
+
69
239
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
70
240
  ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, required: true, location_name: "reason"))
71
241
  ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
@@ -77,6 +247,8 @@ module Aws::Billing
77
247
 
78
248
  ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
79
249
 
250
+ Values.member = Shapes::ShapeRef.new(shape: Value)
251
+
80
252
 
81
253
  # @api private
82
254
  API = Seahorse::Model::Api.new.tap do |api|
@@ -98,6 +270,59 @@ module Aws::Billing
98
270
  "uid" => "billing-2023-09-07",
99
271
  }
100
272
 
273
+ api.add_operation(:create_billing_view, Seahorse::Model::Operation.new.tap do |o|
274
+ o.name = "CreateBillingView"
275
+ o.http_method = "POST"
276
+ o.http_request_uri = "/"
277
+ o.input = Shapes::ShapeRef.new(shape: CreateBillingViewRequest)
278
+ o.output = Shapes::ShapeRef.new(shape: CreateBillingViewResponse)
279
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
280
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
281
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
282
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
283
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
284
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
285
+ end)
286
+
287
+ api.add_operation(:delete_billing_view, Seahorse::Model::Operation.new.tap do |o|
288
+ o.name = "DeleteBillingView"
289
+ o.http_method = "POST"
290
+ o.http_request_uri = "/"
291
+ o.input = Shapes::ShapeRef.new(shape: DeleteBillingViewRequest)
292
+ o.output = Shapes::ShapeRef.new(shape: DeleteBillingViewResponse)
293
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
294
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
295
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
296
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
297
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
298
+ end)
299
+
300
+ api.add_operation(:get_billing_view, Seahorse::Model::Operation.new.tap do |o|
301
+ o.name = "GetBillingView"
302
+ o.http_method = "POST"
303
+ o.http_request_uri = "/"
304
+ o.input = Shapes::ShapeRef.new(shape: GetBillingViewRequest)
305
+ o.output = Shapes::ShapeRef.new(shape: GetBillingViewResponse)
306
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
307
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
308
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
309
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
310
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
311
+ end)
312
+
313
+ api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
314
+ o.name = "GetResourcePolicy"
315
+ o.http_method = "POST"
316
+ o.http_request_uri = "/"
317
+ o.input = Shapes::ShapeRef.new(shape: GetResourcePolicyRequest)
318
+ o.output = Shapes::ShapeRef.new(shape: GetResourcePolicyResponse)
319
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
320
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
321
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
322
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
323
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
324
+ end)
325
+
101
326
  api.add_operation(:list_billing_views, Seahorse::Model::Operation.new.tap do |o|
102
327
  o.name = "ListBillingViews"
103
328
  o.http_method = "POST"
@@ -115,6 +340,79 @@ module Aws::Billing
115
340
  }
116
341
  )
117
342
  end)
343
+
344
+ api.add_operation(:list_source_views_for_billing_view, Seahorse::Model::Operation.new.tap do |o|
345
+ o.name = "ListSourceViewsForBillingView"
346
+ o.http_method = "POST"
347
+ o.http_request_uri = "/"
348
+ o.input = Shapes::ShapeRef.new(shape: ListSourceViewsForBillingViewRequest)
349
+ o.output = Shapes::ShapeRef.new(shape: ListSourceViewsForBillingViewResponse)
350
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
351
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
352
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
353
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
354
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
355
+ o[:pager] = Aws::Pager.new(
356
+ limit_key: "max_results",
357
+ tokens: {
358
+ "next_token" => "next_token"
359
+ }
360
+ )
361
+ end)
362
+
363
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
364
+ o.name = "ListTagsForResource"
365
+ o.http_method = "POST"
366
+ o.http_request_uri = "/"
367
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
368
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
369
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
370
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
371
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
372
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
373
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
374
+ end)
375
+
376
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
377
+ o.name = "TagResource"
378
+ o.http_method = "POST"
379
+ o.http_request_uri = "/"
380
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
381
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
382
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
383
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
384
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
385
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
386
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
387
+ end)
388
+
389
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
390
+ o.name = "UntagResource"
391
+ o.http_method = "POST"
392
+ o.http_request_uri = "/"
393
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
394
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
395
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
396
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
397
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
398
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
399
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
400
+ end)
401
+
402
+ api.add_operation(:update_billing_view, Seahorse::Model::Operation.new.tap do |o|
403
+ o.name = "UpdateBillingView"
404
+ o.http_method = "POST"
405
+ o.http_request_uri = "/"
406
+ o.input = Shapes::ShapeRef.new(shape: UpdateBillingViewRequest)
407
+ o.output = Shapes::ShapeRef.new(shape: UpdateBillingViewResponse)
408
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
409
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
410
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
411
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
412
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
413
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
414
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
415
+ end)
118
416
  end
119
417
 
120
418
  end
@@ -28,7 +28,10 @@ module Aws::Billing
28
28
  #
29
29
  # ## Error Classes
30
30
  # * {AccessDeniedException}
31
+ # * {ConflictException}
31
32
  # * {InternalServerException}
33
+ # * {ResourceNotFoundException}
34
+ # * {ServiceQuotaExceededException}
32
35
  # * {ThrottlingException}
33
36
  # * {ValidationException}
34
37
  #
@@ -53,6 +56,31 @@ module Aws::Billing
53
56
  end
54
57
  end
55
58
 
59
+ class ConflictException < ServiceError
60
+
61
+ # @param [Seahorse::Client::RequestContext] context
62
+ # @param [String] message
63
+ # @param [Aws::Billing::Types::ConflictException] data
64
+ def initialize(context, message, data = Aws::EmptyStructure.new)
65
+ super(context, message, data)
66
+ end
67
+
68
+ # @return [String]
69
+ def message
70
+ @message || @data[:message]
71
+ end
72
+
73
+ # @return [String]
74
+ def resource_id
75
+ @data[:resource_id]
76
+ end
77
+
78
+ # @return [String]
79
+ def resource_type
80
+ @data[:resource_type]
81
+ end
82
+ end
83
+
56
84
  class InternalServerException < ServiceError
57
85
 
58
86
  # @param [Seahorse::Client::RequestContext] context
@@ -68,6 +96,66 @@ module Aws::Billing
68
96
  end
69
97
  end
70
98
 
99
+ class ResourceNotFoundException < ServiceError
100
+
101
+ # @param [Seahorse::Client::RequestContext] context
102
+ # @param [String] message
103
+ # @param [Aws::Billing::Types::ResourceNotFoundException] data
104
+ def initialize(context, message, data = Aws::EmptyStructure.new)
105
+ super(context, message, data)
106
+ end
107
+
108
+ # @return [String]
109
+ def message
110
+ @message || @data[:message]
111
+ end
112
+
113
+ # @return [String]
114
+ def resource_id
115
+ @data[:resource_id]
116
+ end
117
+
118
+ # @return [String]
119
+ def resource_type
120
+ @data[:resource_type]
121
+ end
122
+ end
123
+
124
+ class ServiceQuotaExceededException < ServiceError
125
+
126
+ # @param [Seahorse::Client::RequestContext] context
127
+ # @param [String] message
128
+ # @param [Aws::Billing::Types::ServiceQuotaExceededException] data
129
+ def initialize(context, message, data = Aws::EmptyStructure.new)
130
+ super(context, message, data)
131
+ end
132
+
133
+ # @return [String]
134
+ def message
135
+ @message || @data[:message]
136
+ end
137
+
138
+ # @return [String]
139
+ def resource_id
140
+ @data[:resource_id]
141
+ end
142
+
143
+ # @return [String]
144
+ def resource_type
145
+ @data[:resource_type]
146
+ end
147
+
148
+ # @return [String]
149
+ def service_code
150
+ @data[:service_code]
151
+ end
152
+
153
+ # @return [String]
154
+ def quota_code
155
+ @data[:quota_code]
156
+ end
157
+ end
158
+
71
159
  class ThrottlingException < ServiceError
72
160
 
73
161
  # @param [Seahorse::Client::RequestContext] context