Class: Aws::Invoicing::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Invoicing::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-invoicing/lib/aws-sdk-invoicing/client.rb
Overview
An API client for Invoicing. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::Invoicing::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
-
#batch_get_invoice_profile(params = {}) ⇒ Types::BatchGetInvoiceProfileResponse
This gets the invoice profile associated with a set of accounts.
-
#create_invoice_unit(params = {}) ⇒ Types::CreateInvoiceUnitResponse
This creates a new invoice unit with the provided definition.
-
#delete_invoice_unit(params = {}) ⇒ Types::DeleteInvoiceUnitResponse
This deletes an invoice unit with the provided invoice unit ARN.
-
#get_invoice_unit(params = {}) ⇒ Types::GetInvoiceUnitResponse
This retrieves the invoice unit definition.
-
#list_invoice_units(params = {}) ⇒ Types::ListInvoiceUnitsResponse
This fetches a list of all invoice unit definitions for a given account, as of the provided
AsOf
date. -
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for a resource.
-
#tag_resource(params = {}) ⇒ Struct
Adds a tag to a resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes a tag from a resource.
-
#update_invoice_unit(params = {}) ⇒ Types::UpdateInvoiceUnitResponse
You can update the invoice unit configuration at any time, and Amazon Web Services will use the latest configuration at the end of the month.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from 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-invoicing/lib/aws-sdk-invoicing/client.rb', line 451 def initialize(*args) super end |
Instance Method Details
#batch_get_invoice_profile(params = {}) ⇒ Types::BatchGetInvoiceProfileResponse
This gets the invoice profile associated with a set of accounts. The accounts must be linked accounts under the requester management account organization.
525 526 527 528 |
# File 'gems/aws-sdk-invoicing/lib/aws-sdk-invoicing/client.rb', line 525 def batch_get_invoice_profile(params = {}, = {}) req = build_request(:batch_get_invoice_profile, params) req.send_request() end |
#create_invoice_unit(params = {}) ⇒ Types::CreateInvoiceUnitResponse
This creates a new invoice unit with the provided definition.
611 612 613 614 |
# File 'gems/aws-sdk-invoicing/lib/aws-sdk-invoicing/client.rb', line 611 def create_invoice_unit(params = {}, = {}) req = build_request(:create_invoice_unit, params) req.send_request() end |
#delete_invoice_unit(params = {}) ⇒ Types::DeleteInvoiceUnitResponse
This deletes an invoice unit with the provided invoice unit ARN.
652 653 654 655 |
# File 'gems/aws-sdk-invoicing/lib/aws-sdk-invoicing/client.rb', line 652 def delete_invoice_unit(params = {}, = {}) req = build_request(:delete_invoice_unit, params) req.send_request() end |
#get_invoice_unit(params = {}) ⇒ Types::GetInvoiceUnitResponse
This retrieves the invoice unit definition.
745 746 747 748 |
# File 'gems/aws-sdk-invoicing/lib/aws-sdk-invoicing/client.rb', line 745 def get_invoice_unit(params = {}, = {}) req = build_request(:get_invoice_unit, params) req.send_request() end |
#list_invoice_units(params = {}) ⇒ Types::ListInvoiceUnitsResponse
This fetches a list of all invoice unit definitions for a given
account, as of the provided AsOf
date.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
929 930 931 932 |
# File 'gems/aws-sdk-invoicing/lib/aws-sdk-invoicing/client.rb', line 929 def list_invoice_units(params = {}, = {}) req = build_request(:list_invoice_units, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for a resource.
976 977 978 979 |
# File 'gems/aws-sdk-invoicing/lib/aws-sdk-invoicing/client.rb', line 976 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds a tag to a resource.
1024 1025 1026 1027 |
# File 'gems/aws-sdk-invoicing/lib/aws-sdk-invoicing/client.rb', line 1024 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes a tag from a resource.
1064 1065 1066 1067 |
# File 'gems/aws-sdk-invoicing/lib/aws-sdk-invoicing/client.rb', line 1064 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_invoice_unit(params = {}) ⇒ Types::UpdateInvoiceUnitResponse
You can update the invoice unit configuration at any time, and Amazon Web Services will use the latest configuration at the end of the month.
1143 1144 1145 1146 |
# File 'gems/aws-sdk-invoicing/lib/aws-sdk-invoicing/client.rb', line 1143 def update_invoice_unit(params = {}, = {}) req = build_request(:update_invoice_unit, params) req.send_request() end |