pricing | R Documentation |
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.
pricing(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 <- 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" )
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 |
## Not run:
svc <- pricing()
svc$describe_services(
Foo = 123
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.