Class: Aws::CostandUsageReportService::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::CostandUsageReportService::Client
- Includes:
- Aws::ClientStubs
- Defined in:
- gems/aws-sdk-costandusagereportservice/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.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
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.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from Aws::ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
451 452 453 |
# File 'gems/aws-sdk-costandusagereportservice/lib/aws-sdk-costandusagereportservice/client.rb', line 451 def initialize(*args) super end |
Instance Method Details
#delete_report_definition(params = {}) ⇒ Types::DeleteReportDefinitionResponse
Deletes the specified report. Any tags associated with the report are also deleted.
491 492 493 494 |
# File 'gems/aws-sdk-costandusagereportservice/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 'gems/aws-sdk-costandusagereportservice/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 'gems/aws-sdk-costandusagereportservice/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 'gems/aws-sdk-costandusagereportservice/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 'gems/aws-sdk-costandusagereportservice/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 'gems/aws-sdk-costandusagereportservice/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 'gems/aws-sdk-costandusagereportservice/lib/aws-sdk-costandusagereportservice/client.rb', line 800 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |