public DynamoDBContext(BasicAWSCredentials credentials, RegionEndpoint regionEndpoint, AWSDynamoTableConfig tableConfig, List <AWSDocumentConverter> startupData = null)
        {
            this.BasicAWSCredentials = credentials;
            this.RegionEndpoint      = regionEndpoint;
            this.client = new AmazonDynamoDBClient(credentials, new AmazonDynamoDBConfig()
            {
                RegionEndpoint = regionEndpoint
            });
            this.AWSDynamoTableConfig = tableConfig;
            this.StartupData          = startupData;
            this.AWSDocumentConverter = new AWSDocumentConverter();

            initiateTable();
        }
        public async static Task <DynamoDBContext> GetDynamoDBContextAsync(BasicAWSCredentials credentials, RegionEndpoint regionEndpoint, AWSDynamoTableConfig tableConfig)
        {
            DynamoDBContext ddbc = new DynamoDBContext(credentials, regionEndpoint, tableConfig);
            await ddbc.CreateTableAsync();

            return(ddbc);
        }
        public DynamoDBContext(RegionEndpoint regionEndpoint, string accessKey, string secretKey, AWSDynamoTableConfig tableConfig, List <AWSDocumentConverter> startupData = null)
        {
            this.BasicAWSCredentials = new BasicAWSCredentials(accessKey, secretKey);
            this.RegionEndpoint      = regionEndpoint;
            this.client = new AmazonDynamoDBClient(new BasicAWSCredentials(accessKey, secretKey), new AmazonDynamoDBConfig()
            {
                RegionEndpoint = regionEndpoint
            });
            this.AWSDynamoTableConfig = tableConfig;
            this.StartupData          = startupData;
            this.AWSDocumentConverter = new AWSDocumentConverter();

            initiateTable();
        }
        public async static Task <DynamoDBContext> GetDynamoDBContextAsync(RegionEndpoint regionEndpoint, string accessKey, string secretKey, AWSDynamoTableConfig tableConfig)
        {
            DynamoDBContext ddbc = new DynamoDBContext(regionEndpoint, accessKey, secretKey, tableConfig);
            await ddbc.CreateTableAsync();

            return(ddbc);
        }
        public static DynamoDBContext GetDynamoDBContext(BasicAWSCredentials credentials, RegionEndpoint regionEndpoint, AWSDynamoTableConfig tableConfig)
        {
            DynamoDBContext ddbc = new DynamoDBContext(credentials, regionEndpoint, tableConfig);

            ddbc.CreateTable();
            return(ddbc);
        }
        public static DynamoDBContext GetDynamoDBContext(RegionEndpoint regionEndpoint, string accessKey, string secretKey, AWSDynamoTableConfig tableConfig)
        {
            DynamoDBContext ddbc = new DynamoDBContext(regionEndpoint, accessKey, secretKey, tableConfig);

            ddbc.CreateTable();
            return(ddbc);
        }
 private DynamoDBContext(BasicAWSCredentials credentials, RegionEndpoint regionEndpoint, AWSDynamoTableConfig tableConfig)
 {
     this.BasicAWSCredentials = credentials;
     this.RegionEndpoint      = regionEndpoint;
     this.client = new AmazonDynamoDBClient(credentials, new AmazonDynamoDBConfig()
     {
         RegionEndpoint = regionEndpoint
     });
     this.AWSDynamoTableConfig = tableConfig;
     this.AWSDocumentConverter = new AWSDocumentConverter();
 }
 private DynamoDBContext(RegionEndpoint regionEndpoint, string accessKey, string secretKey, AWSDynamoTableConfig tableConfig)
 {
     this.BasicAWSCredentials = new BasicAWSCredentials(accessKey, secretKey);
     this.RegionEndpoint      = regionEndpoint;
     this.client = new AmazonDynamoDBClient(new BasicAWSCredentials(accessKey, secretKey), new AmazonDynamoDBConfig()
     {
         RegionEndpoint = regionEndpoint
     });
     this.AWSDynamoTableConfig = tableConfig;
     this.AWSDocumentConverter = new AWSDocumentConverter();
 }