Skip to content

Files

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

The Amazon DynamoDB Object Mapper Sample

This sample demonstrates the DynamoDB object mapper found in the AWS SDK for iOS.

Requirements

  • Xcode 5 and later
  • iOS 7 and later

Using the Sample

  1. The AWS Mobile SDK for iOS is available through CocoaPods. If you have not installed CocoaPods, install CocoaPods:

     sudo gem install cocoapods
    
  2. To install the AWS Mobile SDK for iOS, simply add the following line to your Podfile:

     pod "AWSiOSSDKv2"
    

    Then run the following command:

     pod install
    
  3. In the Amazon Cognito console, use Amazon Cognito to create a new identity pool. Obtain the AccountID, PoolID, and RoleUnauth constants. Make sure the role has full permissions for the sample table.

  4. Open DynamoDBSample.xcodeproj.

  5. Open Constants.m and update the following lines with the constants from step 1:

     NSString *const AWSAccountID = @"Your-AccountID";
     NSString *const CognitoPoolID = @"Your-PoolID";
     NSString *const CognitoRoleUnauth = @"Your-RoleUnauth"; 
    
  6. Build and run the sample app.