コード例 #1
0
        public UpdateItemHandler(DynamoDbConfiguration configuration,
                                 IAwsClientFactory <AmazonDynamoDBClient> clientFactory)
        {
            var dynamoClient = clientFactory.GetAwsClient();

            _table = Table.LoadTable(dynamoClient, configuration.TableName);
        }
コード例 #2
0
 public NoteDynamoRepository(DynamoDbConfiguration configuration,
                             IAwsClientFactory <AmazonDynamoDBClient> clientFactory)
 {
     _client        = clientFactory.GetAwsClient();
     _configuration = new DynamoDBOperationConfig
     {
         OverrideTableName = $"{Environment.GetEnvironmentVariable("stage")}-notes",
         SkipVersionCheck  = true
     };
 }
コード例 #3
0
 public ItemDynamoRepository(DynamoDbConfiguration configuration,
                             IAwsClientFactory <AmazonDynamoDBClient> clientFactory)
 {
     _client        = clientFactory.GetAwsClient();
     _configuration = new DynamoDBOperationConfig
     {
         OverrideTableName = configuration.TableName,
         SkipVersionCheck  = true
     };
 }
コード例 #4
0
 public BillingHandler(IAwsClientFactory <AmazonSimpleSystemsManagementClient> clientFactory)
 {
     _client = clientFactory.GetAwsClient();
 }