aws-sdk-costandusagereportservice 1.16.0 → 1.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-costandusagereportservice.rb +7 -4
- data/lib/aws-sdk-costandusagereportservice/client.rb +113 -16
- data/lib/aws-sdk-costandusagereportservice/client_api.rb +18 -0
- data/lib/aws-sdk-costandusagereportservice/errors.rb +26 -4
- data/lib/aws-sdk-costandusagereportservice/resource.rb +1 -0
- data/lib/aws-sdk-costandusagereportservice/types.rb +45 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b2e58d30ba5e52576dcd3bab175d34eea2afd00673d3ca2ebbebe6aec8b4a656
|
4
|
+
data.tar.gz: b6869e09ad4d0b1fa11a941277612242e50a9e4d3f8014afd95cb35760cb889b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99a45ed8fc4765f8b39ec98c76209678442a1c67a715f40bf672bf562973e7998450b2075d7db8564d0dba8f8e82526f5f5d4d9526f3407f12c49aaff5c3b78c
|
7
|
+
data.tar.gz: d62bd4c80f921a56e88b21ff82e9a8cd6797e8d1f5c04ad004128d7e2d72d49c90d679684dc7a0cf3bd4ced470a09dd4153837a6487fbad8e10fc192ec6c2375
|
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-costandusagereportservice/customizations'
|
|
24
24
|
# methods each accept a hash of request parameters and return a response
|
25
25
|
# structure.
|
26
26
|
#
|
27
|
+
# costand_usage_report_service = Aws::CostandUsageReportService::Client.new
|
28
|
+
# resp = costand_usage_report_service.delete_report_definition(params)
|
29
|
+
#
|
27
30
|
# See {Client} for more information.
|
28
31
|
#
|
29
32
|
# # Errors
|
30
33
|
#
|
31
|
-
# Errors returned from AWS Cost and Usage Report Service
|
32
|
-
# extend {Errors::ServiceError}.
|
34
|
+
# Errors returned from AWS Cost and Usage Report Service are defined in the
|
35
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
33
36
|
#
|
34
37
|
# begin
|
35
38
|
# # do stuff
|
36
39
|
# rescue Aws::CostandUsageReportService::Errors::ServiceError
|
37
|
-
# # rescues all
|
40
|
+
# # rescues all AWS Cost and Usage Report Service API errors
|
38
41
|
# end
|
39
42
|
#
|
40
43
|
# See {Errors} for more information.
|
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-costandusagereportservice/customizations'
|
|
42
45
|
# @service
|
43
46
|
module Aws::CostandUsageReportService
|
44
47
|
|
45
|
-
GEM_VERSION = '1.
|
48
|
+
GEM_VERSION = '1.21.0'
|
46
49
|
|
47
50
|
end
|
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
|
30
30
|
Aws::Plugins::GlobalConfiguration.add_identifier(:costandusagereportservice)
|
31
31
|
|
32
32
|
module Aws::CostandUsageReportService
|
33
|
+
# An API client for CostandUsageReportService. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
|
+
#
|
35
|
+
# client = Aws::CostandUsageReportService::Client.new(
|
36
|
+
# region: region_name,
|
37
|
+
# credentials: credentials,
|
38
|
+
# # ...
|
39
|
+
# )
|
40
|
+
#
|
41
|
+
# For details on configuring region and credentials see
|
42
|
+
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
43
|
+
#
|
44
|
+
# See {#initialize} for a full list of supported configuration options.
|
33
45
|
class Client < Seahorse::Client::Base
|
34
46
|
|
35
47
|
include Aws::ClientStubs
|
@@ -93,7 +105,7 @@ module Aws::CostandUsageReportService
|
|
93
105
|
# @option options [required, String] :region
|
94
106
|
# The AWS region to connect to. The configured `:region` is
|
95
107
|
# used to determine the service `:endpoint`. When not passed,
|
96
|
-
# a default `:region` is
|
108
|
+
# a default `:region` is searched for in the following locations:
|
97
109
|
#
|
98
110
|
# * `Aws.config[:region]`
|
99
111
|
# * `ENV['AWS_REGION']`
|
@@ -108,6 +120,12 @@ module Aws::CostandUsageReportService
|
|
108
120
|
# When set to `true`, a thread polling for endpoints will be running in
|
109
121
|
# the background every 60 secs (default). Defaults to `false`.
|
110
122
|
#
|
123
|
+
# @option options [Boolean] :adaptive_retry_wait_to_fill (true)
|
124
|
+
# Used only in `adaptive` retry mode. When true, the request will sleep
|
125
|
+
# until there is sufficent client side capacity to retry the request.
|
126
|
+
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
127
|
+
# not retry instead of sleeping.
|
128
|
+
#
|
111
129
|
# @option options [Boolean] :client_side_monitoring (false)
|
112
130
|
# When `true`, client-side metrics will be collected for all API requests from
|
113
131
|
# this client.
|
@@ -132,6 +150,10 @@ module Aws::CostandUsageReportService
|
|
132
150
|
# When `true`, an attempt is made to coerce request parameters into
|
133
151
|
# the required types.
|
134
152
|
#
|
153
|
+
# @option options [Boolean] :correct_clock_skew (true)
|
154
|
+
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
155
|
+
# a clock skew correction and retry requests with skewed client clocks.
|
156
|
+
#
|
135
157
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
136
158
|
# Set to true to disable SDK automatically adding host prefix
|
137
159
|
# to default service endpoint when available.
|
@@ -139,7 +161,7 @@ module Aws::CostandUsageReportService
|
|
139
161
|
# @option options [String] :endpoint
|
140
162
|
# The client endpoint is normally constructed from the `:region`
|
141
163
|
# option. You should only configure an `:endpoint` when connecting
|
142
|
-
# to test endpoints. This should be
|
164
|
+
# to test endpoints. This should be a valid HTTP(S) URI.
|
143
165
|
#
|
144
166
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
145
167
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -154,7 +176,7 @@ module Aws::CostandUsageReportService
|
|
154
176
|
# requests fetching endpoints information. Defaults to 60 sec.
|
155
177
|
#
|
156
178
|
# @option options [Boolean] :endpoint_discovery (false)
|
157
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
179
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
158
180
|
#
|
159
181
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
160
182
|
# The log formatter.
|
@@ -166,15 +188,29 @@ module Aws::CostandUsageReportService
|
|
166
188
|
# The Logger instance to send log messages to. If this option
|
167
189
|
# is not set, logging will be disabled.
|
168
190
|
#
|
191
|
+
# @option options [Integer] :max_attempts (3)
|
192
|
+
# An integer representing the maximum number attempts that will be made for
|
193
|
+
# a single request, including the initial attempt. For example,
|
194
|
+
# setting this value to 5 will result in a request being retried up to
|
195
|
+
# 4 times. Used in `standard` and `adaptive` retry modes.
|
196
|
+
#
|
169
197
|
# @option options [String] :profile ("default")
|
170
198
|
# Used when loading credentials from the shared credentials file
|
171
199
|
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
172
200
|
#
|
201
|
+
# @option options [Proc] :retry_backoff
|
202
|
+
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
203
|
+
# This option is only used in the `legacy` retry mode.
|
204
|
+
#
|
173
205
|
# @option options [Float] :retry_base_delay (0.3)
|
174
|
-
# The base delay in seconds used by the default backoff function.
|
206
|
+
# The base delay in seconds used by the default backoff function. This option
|
207
|
+
# is only used in the `legacy` retry mode.
|
175
208
|
#
|
176
209
|
# @option options [Symbol] :retry_jitter (:none)
|
177
|
-
# A delay randomiser function used by the default backoff function.
|
210
|
+
# A delay randomiser function used by the default backoff function.
|
211
|
+
# Some predefined functions can be referenced by name - :none, :equal, :full,
|
212
|
+
# otherwise a Proc that takes and returns a number. This option is only used
|
213
|
+
# in the `legacy` retry mode.
|
178
214
|
#
|
179
215
|
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
180
216
|
#
|
@@ -182,11 +218,30 @@ module Aws::CostandUsageReportService
|
|
182
218
|
# The maximum number of times to retry failed requests. Only
|
183
219
|
# ~ 500 level server errors and certain ~ 400 level client errors
|
184
220
|
# are retried. Generally, these are throttling errors, data
|
185
|
-
# checksum errors, networking errors, timeout errors
|
186
|
-
# errors from expired credentials.
|
221
|
+
# checksum errors, networking errors, timeout errors, auth errors,
|
222
|
+
# endpoint discovery, and errors from expired credentials.
|
223
|
+
# This option is only used in the `legacy` retry mode.
|
187
224
|
#
|
188
225
|
# @option options [Integer] :retry_max_delay (0)
|
189
|
-
# The maximum number of seconds to delay between retries (0 for no limit)
|
226
|
+
# The maximum number of seconds to delay between retries (0 for no limit)
|
227
|
+
# used by the default backoff function. This option is only used in the
|
228
|
+
# `legacy` retry mode.
|
229
|
+
#
|
230
|
+
# @option options [String] :retry_mode ("legacy")
|
231
|
+
# Specifies which retry algorithm to use. Values are:
|
232
|
+
#
|
233
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
234
|
+
# no retry mode is provided.
|
235
|
+
#
|
236
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
237
|
+
# This includes support for retry quotas, which limit the number of
|
238
|
+
# unsuccessful retries a client can make.
|
239
|
+
#
|
240
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
241
|
+
# functionality of `standard` mode along with automatic client side
|
242
|
+
# throttling. This is a provisional mode that may change behavior
|
243
|
+
# in the future.
|
244
|
+
#
|
190
245
|
#
|
191
246
|
# @option options [String] :secret_access_key
|
192
247
|
#
|
@@ -219,16 +274,15 @@ module Aws::CostandUsageReportService
|
|
219
274
|
# requests through. Formatted like 'http://proxy.com:123'.
|
220
275
|
#
|
221
276
|
# @option options [Float] :http_open_timeout (15) The number of
|
222
|
-
# seconds to wait when opening a HTTP session before
|
277
|
+
# seconds to wait when opening a HTTP session before raising a
|
223
278
|
# `Timeout::Error`.
|
224
279
|
#
|
225
280
|
# @option options [Integer] :http_read_timeout (60) The default
|
226
281
|
# number of seconds to wait for response data. This value can
|
227
|
-
# safely be set
|
228
|
-
# per-request on the session yeidled by {#session_for}.
|
282
|
+
# safely be set per-request on the session.
|
229
283
|
#
|
230
284
|
# @option options [Float] :http_idle_timeout (5) The number of
|
231
|
-
# seconds a connection is allowed to sit
|
285
|
+
# seconds a connection is allowed to sit idle before it is
|
232
286
|
# considered stale. Stale connections are closed and removed
|
233
287
|
# from the pool before making a request.
|
234
288
|
#
|
@@ -237,7 +291,7 @@ module Aws::CostandUsageReportService
|
|
237
291
|
# request body. This option has no effect unless the request has
|
238
292
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
239
293
|
# disables this behaviour. This value can safely be set per
|
240
|
-
# request on the session
|
294
|
+
# request on the session.
|
241
295
|
#
|
242
296
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
243
297
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -315,6 +369,8 @@ module Aws::CostandUsageReportService
|
|
315
369
|
# * {Types::DescribeReportDefinitionsResponse#report_definitions #report_definitions} => Array<Types::ReportDefinition>
|
316
370
|
# * {Types::DescribeReportDefinitionsResponse#next_token #next_token} => String
|
317
371
|
#
|
372
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
373
|
+
#
|
318
374
|
#
|
319
375
|
# @example Example: To list the AWS Cost and Usage reports for the account.
|
320
376
|
#
|
@@ -378,7 +434,7 @@ module Aws::CostandUsageReportService
|
|
378
434
|
# resp.report_definitions[0].additional_schema_elements[0] #=> String, one of "RESOURCES"
|
379
435
|
# resp.report_definitions[0].s3_bucket #=> String
|
380
436
|
# resp.report_definitions[0].s3_prefix #=> String
|
381
|
-
# resp.report_definitions[0].s3_region #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-central-1", "eu-west-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "eu-north-1", "ap-northeast-3"
|
437
|
+
# resp.report_definitions[0].s3_region #=> String, one of "us-east-1", "us-west-1", "us-west-2", "eu-central-1", "eu-west-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "eu-north-1", "ap-northeast-3", "ap-east-1"
|
382
438
|
# resp.report_definitions[0].additional_artifacts #=> Array
|
383
439
|
# resp.report_definitions[0].additional_artifacts[0] #=> String, one of "REDSHIFT", "QUICKSIGHT", "ATHENA"
|
384
440
|
# resp.report_definitions[0].refresh_closed_reports #=> Boolean
|
@@ -394,6 +450,47 @@ module Aws::CostandUsageReportService
|
|
394
450
|
req.send_request(options)
|
395
451
|
end
|
396
452
|
|
453
|
+
# Allows you to programatically update your report preferences.
|
454
|
+
#
|
455
|
+
# @option params [required, String] :report_name
|
456
|
+
# The name of the report that you want to create. The name must be
|
457
|
+
# unique, is case sensitive, and can't include spaces.
|
458
|
+
#
|
459
|
+
# @option params [required, Types::ReportDefinition] :report_definition
|
460
|
+
# The definition of AWS Cost and Usage Report. You can specify the
|
461
|
+
# report name, time unit, report format, compression format, S3 bucket,
|
462
|
+
# additional artifacts, and schema elements in the definition.
|
463
|
+
#
|
464
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
465
|
+
#
|
466
|
+
# @example Request syntax with placeholder values
|
467
|
+
#
|
468
|
+
# resp = client.modify_report_definition({
|
469
|
+
# report_name: "ReportName", # required
|
470
|
+
# report_definition: { # required
|
471
|
+
# report_name: "ReportName", # required
|
472
|
+
# time_unit: "HOURLY", # required, accepts HOURLY, DAILY
|
473
|
+
# format: "textORcsv", # required, accepts textORcsv, Parquet
|
474
|
+
# compression: "ZIP", # required, accepts ZIP, GZIP, Parquet
|
475
|
+
# additional_schema_elements: ["RESOURCES"], # required, accepts RESOURCES
|
476
|
+
# s3_bucket: "S3Bucket", # required
|
477
|
+
# s3_prefix: "S3Prefix", # required
|
478
|
+
# s3_region: "us-east-1", # required, accepts us-east-1, us-west-1, us-west-2, eu-central-1, eu-west-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, eu-north-1, ap-northeast-3, ap-east-1
|
479
|
+
# additional_artifacts: ["REDSHIFT"], # accepts REDSHIFT, QUICKSIGHT, ATHENA
|
480
|
+
# refresh_closed_reports: false,
|
481
|
+
# report_versioning: "CREATE_NEW_REPORT", # accepts CREATE_NEW_REPORT, OVERWRITE_REPORT
|
482
|
+
# },
|
483
|
+
# })
|
484
|
+
#
|
485
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/ModifyReportDefinition AWS API Documentation
|
486
|
+
#
|
487
|
+
# @overload modify_report_definition(params = {})
|
488
|
+
# @param [Hash] params ({})
|
489
|
+
def modify_report_definition(params = {}, options = {})
|
490
|
+
req = build_request(:modify_report_definition, params)
|
491
|
+
req.send_request(options)
|
492
|
+
end
|
493
|
+
|
397
494
|
# Creates a new report using the description that you provide.
|
398
495
|
#
|
399
496
|
# @option params [required, Types::ReportDefinition] :report_definition
|
@@ -437,7 +534,7 @@ module Aws::CostandUsageReportService
|
|
437
534
|
# additional_schema_elements: ["RESOURCES"], # required, accepts RESOURCES
|
438
535
|
# s3_bucket: "S3Bucket", # required
|
439
536
|
# s3_prefix: "S3Prefix", # required
|
440
|
-
# s3_region: "us-east-1", # required, accepts us-east-1, us-west-1, us-west-2, eu-central-1, eu-west-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, eu-north-1, ap-northeast-3
|
537
|
+
# s3_region: "us-east-1", # required, accepts us-east-1, us-west-1, us-west-2, eu-central-1, eu-west-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, eu-north-1, ap-northeast-3, ap-east-1
|
441
538
|
# additional_artifacts: ["REDSHIFT"], # accepts REDSHIFT, QUICKSIGHT, ATHENA
|
442
539
|
# refresh_closed_reports: false,
|
443
540
|
# report_versioning: "CREATE_NEW_REPORT", # accepts CREATE_NEW_REPORT, OVERWRITE_REPORT
|
@@ -466,7 +563,7 @@ module Aws::CostandUsageReportService
|
|
466
563
|
params: params,
|
467
564
|
config: config)
|
468
565
|
context[:gem_name] = 'aws-sdk-costandusagereportservice'
|
469
|
-
context[:gem_version] = '1.
|
566
|
+
context[:gem_version] = '1.21.0'
|
470
567
|
Seahorse::Client::Request.new(handlers, context)
|
471
568
|
end
|
472
569
|
|
@@ -25,6 +25,8 @@ module Aws::CostandUsageReportService
|
|
25
25
|
GenericString = Shapes::StringShape.new(name: 'GenericString')
|
26
26
|
InternalErrorException = Shapes::StructureShape.new(name: 'InternalErrorException')
|
27
27
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
28
|
+
ModifyReportDefinitionRequest = Shapes::StructureShape.new(name: 'ModifyReportDefinitionRequest')
|
29
|
+
ModifyReportDefinitionResponse = Shapes::StructureShape.new(name: 'ModifyReportDefinitionResponse')
|
28
30
|
PutReportDefinitionRequest = Shapes::StructureShape.new(name: 'PutReportDefinitionRequest')
|
29
31
|
PutReportDefinitionResponse = Shapes::StructureShape.new(name: 'PutReportDefinitionResponse')
|
30
32
|
RefreshClosedReports = Shapes::BooleanShape.new(name: 'RefreshClosedReports')
|
@@ -63,6 +65,12 @@ module Aws::CostandUsageReportService
|
|
63
65
|
InternalErrorException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
64
66
|
InternalErrorException.struct_class = Types::InternalErrorException
|
65
67
|
|
68
|
+
ModifyReportDefinitionRequest.add_member(:report_name, Shapes::ShapeRef.new(shape: ReportName, required: true, location_name: "ReportName"))
|
69
|
+
ModifyReportDefinitionRequest.add_member(:report_definition, Shapes::ShapeRef.new(shape: ReportDefinition, required: true, location_name: "ReportDefinition"))
|
70
|
+
ModifyReportDefinitionRequest.struct_class = Types::ModifyReportDefinitionRequest
|
71
|
+
|
72
|
+
ModifyReportDefinitionResponse.struct_class = Types::ModifyReportDefinitionResponse
|
73
|
+
|
66
74
|
PutReportDefinitionRequest.add_member(:report_definition, Shapes::ShapeRef.new(shape: ReportDefinition, required: true, location_name: "ReportDefinition"))
|
67
75
|
PutReportDefinitionRequest.struct_class = Types::PutReportDefinitionRequest
|
68
76
|
|
@@ -135,6 +143,16 @@ module Aws::CostandUsageReportService
|
|
135
143
|
)
|
136
144
|
end)
|
137
145
|
|
146
|
+
api.add_operation(:modify_report_definition, Seahorse::Model::Operation.new.tap do |o|
|
147
|
+
o.name = "ModifyReportDefinition"
|
148
|
+
o.http_method = "POST"
|
149
|
+
o.http_request_uri = "/"
|
150
|
+
o.input = Shapes::ShapeRef.new(shape: ModifyReportDefinitionRequest)
|
151
|
+
o.output = Shapes::ShapeRef.new(shape: ModifyReportDefinitionResponse)
|
152
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
153
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
154
|
+
end)
|
155
|
+
|
138
156
|
api.add_operation(:put_report_definition, Seahorse::Model::Operation.new.tap do |o|
|
139
157
|
o.name = "PutReportDefinition"
|
140
158
|
o.http_method = "POST"
|
@@ -6,6 +6,32 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::CostandUsageReportService
|
9
|
+
|
10
|
+
# When CostandUsageReportService returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::CostandUsageReportService::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all CostandUsageReportService errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::CostandUsageReportService::Errors::ServiceError
|
18
|
+
# # rescues all CostandUsageReportService API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {DuplicateReportNameException}
|
29
|
+
# * {InternalErrorException}
|
30
|
+
# * {ReportLimitReachedException}
|
31
|
+
# * {ValidationException}
|
32
|
+
#
|
33
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
34
|
+
# if they are not defined above.
|
9
35
|
module Errors
|
10
36
|
|
11
37
|
extend Aws::Errors::DynamicErrors
|
@@ -23,7 +49,6 @@ module Aws::CostandUsageReportService
|
|
23
49
|
def message
|
24
50
|
@message || @data[:message]
|
25
51
|
end
|
26
|
-
|
27
52
|
end
|
28
53
|
|
29
54
|
class InternalErrorException < ServiceError
|
@@ -39,7 +64,6 @@ module Aws::CostandUsageReportService
|
|
39
64
|
def message
|
40
65
|
@message || @data[:message]
|
41
66
|
end
|
42
|
-
|
43
67
|
end
|
44
68
|
|
45
69
|
class ReportLimitReachedException < ServiceError
|
@@ -55,7 +79,6 @@ module Aws::CostandUsageReportService
|
|
55
79
|
def message
|
56
80
|
@message || @data[:message]
|
57
81
|
end
|
58
|
-
|
59
82
|
end
|
60
83
|
|
61
84
|
class ValidationException < ServiceError
|
@@ -71,7 +94,6 @@ module Aws::CostandUsageReportService
|
|
71
94
|
def message
|
72
95
|
@message || @data[:message]
|
73
96
|
end
|
74
|
-
|
75
97
|
end
|
76
98
|
|
77
99
|
end
|
@@ -116,6 +116,49 @@ module Aws::CostandUsageReportService
|
|
116
116
|
include Aws::Structure
|
117
117
|
end
|
118
118
|
|
119
|
+
# @note When making an API call, you may pass ModifyReportDefinitionRequest
|
120
|
+
# data as a hash:
|
121
|
+
#
|
122
|
+
# {
|
123
|
+
# report_name: "ReportName", # required
|
124
|
+
# report_definition: { # required
|
125
|
+
# report_name: "ReportName", # required
|
126
|
+
# time_unit: "HOURLY", # required, accepts HOURLY, DAILY
|
127
|
+
# format: "textORcsv", # required, accepts textORcsv, Parquet
|
128
|
+
# compression: "ZIP", # required, accepts ZIP, GZIP, Parquet
|
129
|
+
# additional_schema_elements: ["RESOURCES"], # required, accepts RESOURCES
|
130
|
+
# s3_bucket: "S3Bucket", # required
|
131
|
+
# s3_prefix: "S3Prefix", # required
|
132
|
+
# s3_region: "us-east-1", # required, accepts us-east-1, us-west-1, us-west-2, eu-central-1, eu-west-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, eu-north-1, ap-northeast-3, ap-east-1
|
133
|
+
# additional_artifacts: ["REDSHIFT"], # accepts REDSHIFT, QUICKSIGHT, ATHENA
|
134
|
+
# refresh_closed_reports: false,
|
135
|
+
# report_versioning: "CREATE_NEW_REPORT", # accepts CREATE_NEW_REPORT, OVERWRITE_REPORT
|
136
|
+
# },
|
137
|
+
# }
|
138
|
+
#
|
139
|
+
# @!attribute [rw] report_name
|
140
|
+
# The name of the report that you want to create. The name must be
|
141
|
+
# unique, is case sensitive, and can't include spaces.
|
142
|
+
# @return [String]
|
143
|
+
#
|
144
|
+
# @!attribute [rw] report_definition
|
145
|
+
# The definition of AWS Cost and Usage Report. You can specify the
|
146
|
+
# report name, time unit, report format, compression format, S3
|
147
|
+
# bucket, additional artifacts, and schema elements in the definition.
|
148
|
+
# @return [Types::ReportDefinition]
|
149
|
+
#
|
150
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/ModifyReportDefinitionRequest AWS API Documentation
|
151
|
+
#
|
152
|
+
class ModifyReportDefinitionRequest < Struct.new(
|
153
|
+
:report_name,
|
154
|
+
:report_definition)
|
155
|
+
include Aws::Structure
|
156
|
+
end
|
157
|
+
|
158
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/ModifyReportDefinitionResponse AWS API Documentation
|
159
|
+
#
|
160
|
+
class ModifyReportDefinitionResponse < Aws::EmptyStructure; end
|
161
|
+
|
119
162
|
# Creates a Cost and Usage Report.
|
120
163
|
#
|
121
164
|
# @note When making an API call, you may pass PutReportDefinitionRequest
|
@@ -130,7 +173,7 @@ module Aws::CostandUsageReportService
|
|
130
173
|
# additional_schema_elements: ["RESOURCES"], # required, accepts RESOURCES
|
131
174
|
# s3_bucket: "S3Bucket", # required
|
132
175
|
# s3_prefix: "S3Prefix", # required
|
133
|
-
# s3_region: "us-east-1", # required, accepts us-east-1, us-west-1, us-west-2, eu-central-1, eu-west-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, eu-north-1, ap-northeast-3
|
176
|
+
# s3_region: "us-east-1", # required, accepts us-east-1, us-west-1, us-west-2, eu-central-1, eu-west-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, eu-north-1, ap-northeast-3, ap-east-1
|
134
177
|
# additional_artifacts: ["REDSHIFT"], # accepts REDSHIFT, QUICKSIGHT, ATHENA
|
135
178
|
# refresh_closed_reports: false,
|
136
179
|
# report_versioning: "CREATE_NEW_REPORT", # accepts CREATE_NEW_REPORT, OVERWRITE_REPORT
|
@@ -171,7 +214,7 @@ module Aws::CostandUsageReportService
|
|
171
214
|
# additional_schema_elements: ["RESOURCES"], # required, accepts RESOURCES
|
172
215
|
# s3_bucket: "S3Bucket", # required
|
173
216
|
# s3_prefix: "S3Prefix", # required
|
174
|
-
# s3_region: "us-east-1", # required, accepts us-east-1, us-west-1, us-west-2, eu-central-1, eu-west-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, eu-north-1, ap-northeast-3
|
217
|
+
# s3_region: "us-east-1", # required, accepts us-east-1, us-west-1, us-west-2, eu-central-1, eu-west-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, eu-north-1, ap-northeast-3, ap-east-1
|
175
218
|
# additional_artifacts: ["REDSHIFT"], # accepts REDSHIFT, QUICKSIGHT, ATHENA
|
176
219
|
# refresh_closed_reports: false,
|
177
220
|
# report_versioning: "CREATE_NEW_REPORT", # accepts CREATE_NEW_REPORT, OVERWRITE_REPORT
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-costandusagereportservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.21.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:
|
11
|
+
date: 2020-05-28 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.
|
22
|
+
version: 3.71.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.
|
32
|
+
version: 3.71.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.
|
84
|
+
rubygems_version: 2.7.6.2
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: AWS SDK for Ruby - AWS Cost and Usage Report Service
|