要开始在项目中使用 DynamoDB 增强型API客户端,请添加对 Maven 工件的依赖dynamodb-enhanced关系。如以下示例所示。 <project> <dependencyManagement> <dependencies> <dependency> <groupId>software.amazon.awssdk</groupId> <artifactId>bom</artifactId> <version><VERSION></version> <type>pom</type> <s...
Maven 建立的DependencyFactory類別包含建置和傳回DynamoDbClient執行個體的dynamoDbClient工廠方法。DynamoDbClient 執行個體使用 Apache 型 HTTP 用戶端的執行個體。這是因為您在 Maven 提示您使用哪個 HTTP 用戶端apache-client時指定 。下列程式碼顯示 DependencyFactory 類別。
Before getting started, ensure you are using an up-to-date version of the AWS Java SDK dependency with all the latest released bug-fixes and features. For Enhanced Document API support, you must use version 2.20.33 or later. See our “Set up an Apache Maven ...
Step 1 : Add a dependency for the enhanced client The first step to getting going with the DynamoDB Enhanced Client for Java is to include a dependency for it in your project. The example here will show you how to do it in Maven, but there are more instructions in th...
使用Apache Maven 适用于 Java 的 Amazon DynamoDB Encryption Client 通过Apache Maven提供,并具有以下依赖项定义。 <dependency><groupId>com.amazonaws</groupId><artifactId>aws-dynamodb-encryption-java</artifactId><version>version-number</version></dependency> ...
To use the client as a Maven dependency Download and install Apache Maven. For more information, see Downloading Apache Maven and Installing Apache Maven. Add the client Maven dependency to your application's Project Object Model (POM) file. In this example, replace x.x.x.x with the actual...
Step 1 : Add a dependency for the enhanced client The first step to getting going with the DynamoDB Enhanced Client for Java is to include a dependency for it in your project. The example here will show you how to do it in Maven, but there are more instructions in th...
Maven 创建的 DependencyFactory 类包含用于构建和返回 DynamoDbClient 实例的 dynamoDbClient 工厂方法。DynamoDbClient 实例使用基于 Apache 的 HTTP 客户端的实例。这是因为您在 Maven 提示您输入使用哪个 HTTP 客户端时指定了 apache-client。以下代码显示的是 DependencyFactory 类。
プロジェクトで DynamoDB Enhanced Client API を使い始めるには、dynamodb-enhanced Maven アーティファクトへの依存関係を追加します。これは次の例で示されます。 Maven Gradle <project> <dependencyManagement> <dependencies> <dependency> <groupId>software.amazon.awssdk</groupId> <artifactId...
The following code shows the App class that Maven creates. The main method is the entry point into the application, which creates an instance of the Handler class and then calls its sendRequest method.App classThe DependencyFactory class that Maven creates contains the dynamoDbClient factory ...