Packages
erlcloud
2.2.15
3.8.3
3.8.2
3.8.1
3.7.6
3.7.4
3.7.3
3.7.2
3.7.1
3.7.0
3.6.8
3.6.7
3.6.5
3.6.4
3.6.3
3.6.2
3.6.1
3.6.0
3.5.16
3.5.15
3.5.14
3.5.13
3.5.12
3.5.11
3.5.10
3.5.9
3.5.8
3.5.7
3.5.6
3.5.5
3.5.4
3.5.3
3.5.2
3.5.1
3.5.0
3.4.5
3.4.3
3.4.1
3.4.0
3.3.9
3.3.8
3.3.7
3.3.6
3.3.5
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.18
3.2.17
3.2.16
3.2.15
3.2.14
3.2.13
3.2.12
3.2.11
3.2.10
3.2.7
3.2.6
3.2.5
3.2.4
3.2.3
3.2.2
3.2.1
3.2.0
3.1.17
3.1.16
3.1.14
3.1.13
3.1.12
3.1.11
3.1.9
3.1.8
3.1.7
3.1.6
3.1.5
3.1.4
3.1.3
3.1.2
3.1.1
3.1.0
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
2.2.16
2.2.15
2.2.14
2.2.13
2.2.12
2.2.11
2.2.10
2.2.9
2.2.8
2.2.7
2.2.6
2.2.5
2.2.4
2.2.2
2.2.1
2.2.0
2.1.0
2.0.5
2.0.4
2.0.3
2.0.0
0.13.10
0.13.9
0.13.8
0.13.6
0.13.5
0.13.4
0.13.3
0.13.2
0.13.0
0.12.0
0.11.0
0.9.2
0.9.2-rc.1
0.9.1
0.9.0
AWS APIs library for Erlang
Current section
Files
Jump to
Current section
Files
include/erlcloud_ddb2.hrl
-record(ddb2_error,
{attempt :: pos_integer(),
error_type :: ddb | http | httpc,
should_retry :: boolean(),
reason :: term(),
request_headers :: [{string(), string()}],
request_body :: jsx:json_text(),
response_status :: pos_integer(),
response_status_line :: string(),
response_headers :: [{string(), string()}],
response_body :: binary()
}).
-type date_time() :: number().
-type table_status() :: creating | updating | deleting | active.
-type index_status() :: creating | updating | deleting | active.
-record(ddb2_provisioned_throughput_description,
{last_decrease_date_time :: date_time(),
last_increase_date_time :: date_time(),
number_of_decreases_today :: integer(),
read_capacity_units :: pos_integer(),
write_capacity_units :: pos_integer()
}).
-record(ddb2_global_secondary_index_description,
{backfilling :: boolean(),
index_arn :: binary(),
index_name :: erlcloud_ddb2:index_name(),
index_size_bytes :: integer(),
index_status :: index_status(),
item_count :: integer(),
key_schema :: erlcloud_ddb2:key_schema(),
projection :: erlcloud_ddb2:projection(),
provisioned_throughput :: #ddb2_provisioned_throughput_description{}
}).
-record(ddb2_local_secondary_index_description,
{index_arn :: binary(),
index_name :: erlcloud_ddb2:index_name(),
index_size_bytes :: integer(),
item_count :: integer(),
key_schema :: erlcloud_ddb2:key_schema(),
projection :: erlcloud_ddb2:projection()
}).
-record(ddb2_table_description,
{attribute_definitions :: erlcloud_ddb2:attr_defs(),
creation_date_time :: number(),
global_secondary_indexes :: [#ddb2_global_secondary_index_description{}],
item_count :: integer(),
key_schema :: erlcloud_ddb2:key_schema(),
latest_stream_arn :: binary(),
latest_stream_label :: binary(),
local_secondary_indexes :: [#ddb2_local_secondary_index_description{}],
provisioned_throughput :: #ddb2_provisioned_throughput_description{},
stream_specification :: erlcloud_ddb2:stream_specification(),
table_arn :: binary(),
table_name :: binary(),
table_size_bytes :: integer(),
table_status :: table_status()
}).
-record(ddb2_consumed_capacity,
{capacity_units :: number(),
global_secondary_indexes :: [{erlcloud_ddb2:index_name(), number()}],
local_secondary_indexes :: [{erlcloud_ddb2:index_name(), number()}],
table :: number(),
table_name :: erlcloud_ddb2:table_name()
}).
-record(ddb2_item_collection_metrics,
{item_collection_key :: erlcloud_ddb2:out_attr_value(),
size_estimate_range_gb :: {number(), number()}
}).
-record(ddb2_batch_get_item_response,
{table :: erlcloud_ddb2:table_name(),
items :: [erlcloud_ddb2:out_item()]
}).
-record(ddb2_batch_get_item,
{consumed_capacity :: [#ddb2_consumed_capacity{}],
responses :: [#ddb2_batch_get_item_response{}],
unprocessed_keys = [] :: [erlcloud_ddb2:batch_get_item_request_item()]
}).
-record(ddb2_batch_write_item,
{consumed_capacity :: [#ddb2_consumed_capacity{}],
item_collection_metrics :: [{erlcloud_ddb2:table_name(), [#ddb2_item_collection_metrics{}]}],
unprocessed_items = [] :: [erlcloud_ddb2:batch_write_item_request_item()]
}).
-record(ddb2_create_table,
{table_description :: #ddb2_table_description{}
}).
-record(ddb2_delete_item,
{attributes :: erlcloud_ddb2:out_item(),
consumed_capacity :: #ddb2_consumed_capacity{},
item_collection_metrics :: #ddb2_item_collection_metrics{}
}).
-record(ddb2_delete_table,
{table_description :: #ddb2_table_description{}
}).
-record(ddb2_describe_limits,
{account_max_read_capacity_units :: pos_integer(),
account_max_write_capacity_units :: pos_integer(),
table_max_read_capacity_units :: pos_integer(),
table_max_write_capacity_units :: pos_integer()
}).
-record(ddb2_describe_table,
{table :: #ddb2_table_description{}
}).
-record(ddb2_time_to_live_description,
{attribute_name :: erlcloud_ddb2:attr_name(),
time_to_live_status :: erlcloud_ddb2:time_to_live_status()
}).
-record(ddb2_describe_time_to_live,
{time_to_live_description :: #ddb2_time_to_live_description{}
}).
-record(ddb2_get_item,
{item :: erlcloud_ddb2:out_item(),
consumed_capacity :: #ddb2_consumed_capacity{}
}).
-record(ddb2_list_tables,
{table_names :: [erlcloud_ddb2:table_name()],
last_evaluated_table_name :: erlcloud_ddb2:table_name()
}).
-record(ddb2_put_item,
{attributes :: erlcloud_ddb2:out_item(),
consumed_capacity :: #ddb2_consumed_capacity{},
item_collection_metrics :: #ddb2_item_collection_metrics{}
}).
-record(ddb2_q,
{consumed_capacity :: #ddb2_consumed_capacity{},
count :: non_neg_integer(),
items :: [erlcloud_ddb2:out_item()],
last_evaluated_key :: erlcloud_ddb2:key(),
scanned_count :: non_neg_integer()
}).
-record(ddb2_scan,
{consumed_capacity :: #ddb2_consumed_capacity{},
count :: non_neg_integer(),
items :: [erlcloud_ddb2:out_item()],
last_evaluated_key :: erlcloud_ddb2:key(),
scanned_count :: non_neg_integer()
}).
-record(ddb2_update_item,
{attributes :: erlcloud_ddb2:out_item(),
consumed_capacity :: #ddb2_consumed_capacity{},
item_collection_metrics :: #ddb2_item_collection_metrics{}
}).
-record(ddb2_update_table,
{table_description :: #ddb2_table_description{}
}).
-record(ddb2_time_to_live_specification,
{attribute_name :: erlcloud_ddb2:attr_name(),
enabled :: boolean()
}).
-record(ddb2_update_time_to_live,
{time_to_live_specification :: #ddb2_time_to_live_specification{}
}).