aws-sdk-costandusagereportservice 1.16.0 → 1.17.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50a7143fca719234164d19a262f87ad4d3603840
4
- data.tar.gz: 52fab1d47aa86cb76a63a23633ab6e576baa089f
3
+ metadata.gz: f5e0e393247ccca6798b1e13b5e612a948225e90
4
+ data.tar.gz: 00a512db5d4275c51c836384591d8d6f62590c3f
5
5
  SHA512:
6
- metadata.gz: b29e18c8eb24ecd01c6fc416a7e296761bcf335c7e22cc340e96f28d9410be9f5f264905b9197b888abe4b99c29cbc4e509c2f8e823a55954c17b59851dea2b5
7
- data.tar.gz: 51dab0fa21add34583268f5301248b0db187164f593fb64f094f88c703ab2676d2ecb13255f8439e5b45cd7aaaae71f78bcd34add68a73a1ac28378edfbf7b6f
6
+ metadata.gz: aac70cc030b1a8fb69d954e30eb60f36ffb294379564c8b9936ee6db9deb33ec34adc990f6614996cf6d81de84e55334b0f51000f628e8656b21d0aeedf75b79
7
+ data.tar.gz: '084f32036d5e87b711a601ca10b6982a0c7bf99a8b85a2712f98bc02533921f947f22ff53b49cb4f84f662a588e2b8be0c614223f6aec592940a2c189103a745'
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-costandusagereportservice/customizations'
42
42
  # @service
43
43
  module Aws::CostandUsageReportService
44
44
 
45
- GEM_VERSION = '1.16.0'
45
+ GEM_VERSION = '1.17.0'
46
46
 
47
47
  end
@@ -378,7 +378,7 @@ module Aws::CostandUsageReportService
378
378
  # resp.report_definitions[0].additional_schema_elements[0] #=> String, one of "RESOURCES"
379
379
  # resp.report_definitions[0].s3_bucket #=> String
380
380
  # 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"
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", "ap-east-1"
382
382
  # resp.report_definitions[0].additional_artifacts #=> Array
383
383
  # resp.report_definitions[0].additional_artifacts[0] #=> String, one of "REDSHIFT", "QUICKSIGHT", "ATHENA"
384
384
  # resp.report_definitions[0].refresh_closed_reports #=> Boolean
@@ -394,6 +394,47 @@ module Aws::CostandUsageReportService
394
394
  req.send_request(options)
395
395
  end
396
396
 
397
+ # Allows you to programatically update your report preferences.
398
+ #
399
+ # @option params [required, String] :report_name
400
+ # The name of the report that you want to create. The name must be
401
+ # unique, is case sensitive, and can't include spaces.
402
+ #
403
+ # @option params [required, Types::ReportDefinition] :report_definition
404
+ # The definition of AWS Cost and Usage Report. You can specify the
405
+ # report name, time unit, report format, compression format, S3 bucket,
406
+ # additional artifacts, and schema elements in the definition.
407
+ #
408
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
409
+ #
410
+ # @example Request syntax with placeholder values
411
+ #
412
+ # resp = client.modify_report_definition({
413
+ # report_name: "ReportName", # required
414
+ # report_definition: { # required
415
+ # report_name: "ReportName", # required
416
+ # time_unit: "HOURLY", # required, accepts HOURLY, DAILY
417
+ # format: "textORcsv", # required, accepts textORcsv, Parquet
418
+ # compression: "ZIP", # required, accepts ZIP, GZIP, Parquet
419
+ # additional_schema_elements: ["RESOURCES"], # required, accepts RESOURCES
420
+ # s3_bucket: "S3Bucket", # required
421
+ # s3_prefix: "S3Prefix", # required
422
+ # 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
423
+ # additional_artifacts: ["REDSHIFT"], # accepts REDSHIFT, QUICKSIGHT, ATHENA
424
+ # refresh_closed_reports: false,
425
+ # report_versioning: "CREATE_NEW_REPORT", # accepts CREATE_NEW_REPORT, OVERWRITE_REPORT
426
+ # },
427
+ # })
428
+ #
429
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/ModifyReportDefinition AWS API Documentation
430
+ #
431
+ # @overload modify_report_definition(params = {})
432
+ # @param [Hash] params ({})
433
+ def modify_report_definition(params = {}, options = {})
434
+ req = build_request(:modify_report_definition, params)
435
+ req.send_request(options)
436
+ end
437
+
397
438
  # Creates a new report using the description that you provide.
398
439
  #
399
440
  # @option params [required, Types::ReportDefinition] :report_definition
@@ -437,7 +478,7 @@ module Aws::CostandUsageReportService
437
478
  # additional_schema_elements: ["RESOURCES"], # required, accepts RESOURCES
438
479
  # s3_bucket: "S3Bucket", # required
439
480
  # 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
481
+ # 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
482
  # additional_artifacts: ["REDSHIFT"], # accepts REDSHIFT, QUICKSIGHT, ATHENA
442
483
  # refresh_closed_reports: false,
443
484
  # report_versioning: "CREATE_NEW_REPORT", # accepts CREATE_NEW_REPORT, OVERWRITE_REPORT
@@ -466,7 +507,7 @@ module Aws::CostandUsageReportService
466
507
  params: params,
467
508
  config: config)
468
509
  context[:gem_name] = 'aws-sdk-costandusagereportservice'
469
- context[:gem_version] = '1.16.0'
510
+ context[:gem_version] = '1.17.0'
470
511
  Seahorse::Client::Request.new(handlers, context)
471
512
  end
472
513
 
@@ -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"
@@ -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.16.0
4
+ version: 1.17.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: 2019-07-25 00:00:00.000000000 Z
11
+ date: 2019-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core