pricing {paws} | R Documentation |
AWS Price List Service
Description
The Amazon Web Services Price List API is a centralized and convenient
way to programmatically query Amazon Web Services for services,
products, and pricing information. The Amazon Web Services Price List
uses standardized product attributes such as Location
,
Storage Class
, and Operating System
, and provides prices at the SKU
level. You can use the Amazon Web Services Price List to do the
following:
Build cost control and scenario planning tools
Reconcile billing data
Forecast future spend for budgeting purposes
Provide cost benefit analysis that compare your internal workloads with Amazon Web Services
Use GetServices
without a service code to retrieve the service codes
for all Amazon Web Services, then GetServices
with a service code to
retrieve the attribute names for that service. After you have the
service code and attribute names, you can use
get_attribute_values
to see what
values are available for an attribute. With the service code and an
attribute name and value, you can use
get_products
to find specific products that
you're interested in, such as an AmazonEC2
instance, with a
Provisioned IOPS
volumeType
.
For more information, see Using the Amazon Web Services Price List API in the Billing User Guide.
Usage
pricing(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 <- pricing( 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
describe_services | Returns the metadata for one service or a list of the metadata for all services |
get_attribute_values | Returns a list of attribute values |
get_price_list_file_url | This feature is in preview release and is subject to change |
get_products | Returns a list of all products that match the filter criteria |
list_price_lists | This feature is in preview release and is subject to change |
Examples
## Not run:
svc <- pricing()
svc$describe_services(
Foo = 123
)
## End(Not run)