View source: R/billing_service.R
billing | R Documentation |
You can use the Billing API to programatically list the billing views available to you for a given time period. A billing view represents a set of billing data.
The Billing API provides the following endpoint:
https://billing.us-east-1.api.aws
billing(config = list(), credentials = list(), endpoint = NULL, region = NULL)
config |
Optional configuration of credentials, endpoint, and/or region.
|
credentials |
Optional credentials shorthand for the config parameter
|
endpoint |
Optional shorthand for complete URL to use for the constructed client. |
region |
Optional shorthand for AWS Region used in instantiating the client. |
A client for the service. You can call the service's operations using
syntax like svc$operation(...)
, where svc
is the name you've assigned
to the client. The available operations are listed in the
Operations section.
svc <- billing( config = list( credentials = list( creds = list( access_key_id = "string", secret_access_key = "string", session_token = "string" ), profile = "string", anonymous = "logical" ), endpoint = "string", region = "string", close_connection = "logical", timeout = "numeric", s3_force_path_style = "logical", sts_regional_endpoint = "string" ), credentials = list( creds = list( access_key_id = "string", secret_access_key = "string", session_token = "string" ), profile = "string", anonymous = "logical" ), endpoint = "string", region = "string" )
create_billing_view | Creates a billing view with the specified billing view attributes |
delete_billing_view | Deletes the specified billing view |
get_billing_view | Returns the metadata associated to the specified billing view ARN |
get_resource_policy | Returns the resource-based policy document attached to the resource in JSON format |
list_billing_views | Lists the billing views available for a given time period |
list_source_views_for_billing_view | Lists the source views (managed Amazon Web Services billing views) associated with the billing view |
list_tags_for_resource | Lists tags associated with the billing view resource |
tag_resource | An API operation for adding one or more tags (key-value pairs) to a resource |
untag_resource | Removes one or more tags from a resource |
update_billing_view | An API to update the attributes of the billing view |
## Not run:
svc <- billing()
svc$create_billing_view(
Foo = 123
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.