Class: Aws::CostandUsageReportService::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::CostandUsageReportService::Client
- Includes:
- Aws::ClientStubs
- Defined in:
- lib/aws-sdk-costandusagereportservice/client.rb
Overview
An API client for CostandUsageReportService. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::CostandUsageReportService::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#delete_report_definition(params = {}) ⇒ Types::DeleteReportDefinitionResponse
Deletes the specified report.
-
#describe_report_definitions(params = {}) ⇒ Types::DescribeReportDefinitionsResponse
Lists the Amazon Web Services Cost and Usage Report available to this account.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags associated with the specified report definition.
-
#modify_report_definition(params = {}) ⇒ Struct
Allows you to programmatically update your report preferences.
-
#put_report_definition(params = {}) ⇒ Struct
Creates a new report using the description that you provide.
-
#tag_resource(params = {}) ⇒ Struct
Associates a set of tags with a report definition.
-
#untag_resource(params = {}) ⇒ Struct
Disassociates a set of tags from a report definition.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
451 452 453 |
# File 'lib/aws-sdk-costandusagereportservice/client.rb', line 451 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
836 837 838 |
# File 'lib/aws-sdk-costandusagereportservice/client.rb', line 836 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
839 840 841 |
# File 'lib/aws-sdk-costandusagereportservice/client.rb', line 839 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 |
# File 'lib/aws-sdk-costandusagereportservice/client.rb', line 809 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::CostandUsageReportService') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-costandusagereportservice' context[:gem_version] = '1.67.0' Seahorse::Client::Request.new(handlers, context) end |
#delete_report_definition(params = {}) ⇒ Types::DeleteReportDefinitionResponse
Deletes the specified report. Any tags associated with the report are also deleted.
491 492 493 494 |
# File 'lib/aws-sdk-costandusagereportservice/client.rb', line 491 def delete_report_definition(params = {}, = {}) req = build_request(:delete_report_definition, params) req.send_request() end |
#describe_report_definitions(params = {}) ⇒ Types::DescribeReportDefinitionsResponse
Lists the Amazon Web Services Cost and Usage Report available to this account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
590 591 592 593 |
# File 'lib/aws-sdk-costandusagereportservice/client.rb', line 590 def describe_report_definitions(params = {}, = {}) req = build_request(:describe_report_definitions, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags associated with the specified report definition.
621 622 623 624 |
# File 'lib/aws-sdk-costandusagereportservice/client.rb', line 621 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#modify_report_definition(params = {}) ⇒ Struct
Allows you to programmatically update your report preferences.
668 669 670 671 |
# File 'lib/aws-sdk-costandusagereportservice/client.rb', line 668 def modify_report_definition(params = {}, = {}) req = build_request(:modify_report_definition, params) req.send_request() end |
#put_report_definition(params = {}) ⇒ Struct
Creates a new report using the description that you provide.
741 742 743 744 |
# File 'lib/aws-sdk-costandusagereportservice/client.rb', line 741 def put_report_definition(params = {}, = {}) req = build_request(:put_report_definition, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Associates a set of tags with a report definition.
773 774 775 776 |
# File 'lib/aws-sdk-costandusagereportservice/client.rb', line 773 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Disassociates a set of tags from a report definition.
800 801 802 803 |
# File 'lib/aws-sdk-costandusagereportservice/client.rb', line 800 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
829 830 831 |
# File 'lib/aws-sdk-costandusagereportservice/client.rb', line 829 def waiter_names [] end |