Amazon AWS SDK User's Guide Page 91: Conclusion
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
Conclusion
Congratulations! You have just completed the getting started tutorial for developing Spot Instance software
with the AWS SDK for .NET.
Amazon Glacier Programming with the AWS
SDK for .NET
The AWS SDK for .NET supports Amazon Glacier, which is a storage service optimized for infrequently
used data, or "cold data." The service provides durable and extremely low-cost storage with security
features for data archiving and backup. For more information, see
Amazon Glacier
.
The following information introduces you to the Amazon Glacier programming models in the SDK for
.NET.
Programming Models
The SDK for .NET provides three programming models for working with Amazon Glacier. These
programming models are known as the
low-level
,
high-level
, and
resource
models.The following information
describes these models, why you would want to use them, and how to use them.
Low-Level APIs
The SDK for .NET provides low-level APIs for programming with Amazon Glacier. These low-level APIs
map closely the underlying REST API supported by Amazon Glacier. For each Amazon Glacier REST
operation, the low-level APIs provide a corresponding method, a request object for you to provide request
information, and a response object for you to process the Amazon Glacier response. The low-level APIs
are the most complete implementation of the underlying Amazon Glacier operations.
The following example shows how to use the low-level APIs to list accessible vaults in Amazon Glacier:
// using Amazon.Glacier;
// using Amazon.Glacier.Model;
var client = new AmazonGlacierClient();
var request = new ListVaultsRequest();
var response = client.ListVaults(request);
foreach (var vault in response.VaultList)
{
Console.WriteLine("Vault: {0}", vault.VaultName);
Console.WriteLine("
Creation date: {0}", vault.CreationDate);
Console.WriteLine("
Size in bytes: {0}", vault.SizeInBytes);
Console.WriteLine("
Number of archives: {0}", vault.NumberOfArchives);
try
{
var requestNotifications = new GetVaultNotificationsRequest
{
VaultName = vault.VaultName
};
var responseNotifications =
client.GetVaultNotifications(requestNotifications);
Version v2.0.0
87
AWS SDK for .NET Developer Guide
Amazon Glacier
PDF file · ·
Questions about Amazon AWS SDK
No questions about this manual yet. Ask the first one.
Related products and manuals for Software Amazon AWS SDK
- Software Amazon Redshift User Manual
(24 pages) - Software Amazon Redshift User Manual
(11 pages) - Software Amazon AWS SDK User's Guide
(73 pages)