Client
billing | R Documentation |
AWS Billing¶
Description¶
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
Usage¶
billing(config = list(), credentials = list(), endpoint = NULL, region = NULL)
Arguments¶
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. |
Value¶
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.
Service syntax¶
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"
)
Operations¶
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 |
Examples¶
## Not run:
svc <- billing()
svc$create_billing_view(
Foo = 123
)
## End(Not run)