Module erlcloud_mms

An Erlang interface to Marketplace Metering Service.

Authors: Carl Isom III (carl.isom@gmail.com).

Description

An Erlang interface to Marketplace Metering Service.

http://docs.aws.amazon.com/marketplacemetering/latest/APIReference/API_MeterUsage.html

http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/MarketplaceMetering.html

Method names match Marketplace Metering Service operations converted to lower_case_with_underscores.

Required parameters are passed as function arguments. In addition all methods take an options proplist argument which can be used to pass optional parameters.

Output is in the form of {ok, Value} or {error, Reason}.

As to the error retries, we use erlcloud_retry:default_retry/1 as the default retry strategy, this behaviour can be changed through aws_config().

Data Types

json_return()

json_return() = {ok, json_term()} | {error, term()}

json_term()

json_term() = jsx:json_term()

Function Index

batch_meter_usage/2 Batch Meter Usage.
batch_meter_usage/3
configure/2
configure/3
meter_usage/5
meter_usage/6
new/2
new/3
resolve_customer/1
resolve_customer/2

Function Details

batch_meter_usage/2

batch_meter_usage(ProductCode::binary(), UsageRecords::json_term()) -> json_return()

Batch Meter Usage

HTTP Documentation is still missing. Please see Java Script SDK Documentation http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/MarketplaceMetering.html#batchMeterUsage-property ------------------------------------------------------------------------------

batch_meter_usage/3

batch_meter_usage(ProductCode::binary(), UsageRecords::json_term(), Config::aws_config()) -> json_return()

configure/2

configure(AccessKeyID::string(), SecretAccessKey::string()) -> ok

configure/3

configure(AccessKeyID::string(), SecretAccessKey::string(), Host::string()) -> ok

meter_usage/5

meter_usage(ProductCode::binary(), Timestamp::number(), UsageDimension::binary(), UsageQuantity::number(), DryRun::boolean()) -> json_return()

meter_usage/6

meter_usage(ProductCode::binary(), Timestamp::number(), UsageDimension::binary(), UsageQuantity::number(), DryRun::boolean(), Config::aws_config()) -> json_return()

new/2

new(AccessKeyID::string(), SecretAccessKey::string()) -> aws_config()

new/3

new(AccessKeyID::string(), SecretAccessKey::string(), Host::string()) -> aws_config()

resolve_customer/1

resolve_customer(RegistrationToken::binary()) -> json_return()

resolve_customer/2

resolve_customer(RegistrationToken::binary(), Config::aws_config()) -> json_return()


Generated by EDoc