0

有了这个片段,

import software.amazon.awssdk.auth.credentials.AwsBasicCredentials
import software.amazon.awssdk.regions.Region
import software.amazon.awssdk.services.dynamodb.DynamoDbClient

DynamoDbClient dynamoDB = DynamoDbClient.builder()
    .region(Region.US_EAST_1)
    .credentialsProvider(AwsBasicCredentials.create(KEY, SECRET_KEY))
    .build()

我收到一条相当神秘的错误消息:

Caught: groovy.lang.GroovyRuntimeException: Cannot read write-only property: credentialsProvider
groovy.lang.GroovyRuntimeException: Cannot read write-only property: credentialsProvider

关于我应该寻找什么的任何提示?

4

0 回答 0