 |
About this Library
- Based on the 2009-04-15 API version.
What's New?
- 2009-05-20: Deprecate Query and QueryWithAttributes. Please migrate to Select API
- 2009-03-23:Support for BatchPutAttributes, bug fix for url encoding in NextToken
- 2008-12-17: Support for signature version 2, DomainMetadata and Select API, https endpoint
- 2008-08-28: Support for new API - QueryWithAttributes
- 2008-01-18: Fixed UTF8 encoding
Prerequisites
Package Content
| Directory |
Overview |
|
src
|
Source distribution of the library. All sources including code samples that demonstrate the use of the library located under this directory.
|
Quick Start
Library comes with VB.Net solution and two pre-configured VB.Net projects.
- Amazon.SimpleDB.vbproj - main library project
- Amazon.SimpleDB.Samples.vbproj - library samples project
To get started with the library, follow these steps:
- Extract the amazon-simpledb-2009-04-15-vbnet-library.zip file into a working directory.
- Open Amazon.SimpleDB.sln solution file in Visual Studio 2005
- Hit F5 key and follow on screen instruction
Running Samples
Steps to run particular sample
- Open AmazonSimpleDBSamples.vb file under Amazon.SimpleDB.Samples project
- Set AWS Access Key ID and AWS Secret Access Key
Dim accessKeyId As String = "<Your Access Key ID>"
Dim secretAccessKey As String = "<Your Secret Access Key>"
- Set request parameters. For example, find following pre-generated snippet:
// Dim request As New CreateDomainRequest()
// @TODO: set request parameters here
// CreateDomainSample.InvokeCreateDomain(service, request)
- Uncomment first and third line and set DomainName:
Dim request As New CreateDomainRequest()
request.DomainName = "MyDomain"
CreateDomainSample.InvokeCreateDomain(service, request)
Hit F5 to run sample. You should see the output
similar to the following:
CreateDomainResponse
ResponseMetadata
RequestId
95cdcb68-f46c-400b-8265-8c2de2a5c475
Experiment with other samples, examine samples sources. When ready, add library project to your solution, and use it.
Happy coding!
Making Requests to a Different Region
To make the service call to a different region, instantiate the client with the configuration object, and pass the region-specific endpoint. For example:
Dim service As New AmazonSimpleDBClient(accessKeyId, secretAccessKey,
New AmazonSimpleDBConfig().WithServiceURL("https://sdb.eu-west-1.amazonaws.com"))
See the Amazon SimpleDB Developer Guide for a complete list of region endpoints.
Previous Version Download
Comments, Questions or Feedback
If you have any comments, questions or feedback on the library, please start discussion here.
|