在 JAVA sdk 的 quickSight 中的 CreateDataSource 方法中面临问题 DataSourceId 参数

facing issue DataSourceId parameter in the CreateDataSource method in quickSight in JAVA sdk

所以我使用 quick sight java SDK 将 s3 与 quicksight 集成,为此,我在使用此方法时使用 CreateDataSource.so,我必须在此方法中传递一个参数 DataSourceId。 AWS 文档中对此参数的描述类似于 "An ID for the data source. This ID is unique per AWS Region for each AWS account,",我不知道如何获取 this.i 必须以编程方式获取此参数。这个参数的类型是String

getClient().createDataSource(new CreateDataSourceRequest().withDataSourceId("DataSourceID").withAwsAccountId("AWS ACCOUNT").withName("display name of data soure").withType(DataSourceType.S3));

getClient 是使用 quicksight 的客户端 API

是的,对于 s3 和 quicksight 的集成,我无法通过 AWS 控制台执行此操作,我必须以编程方式执行此操作

I do not know how to get this.i to have to get this parameter programmatically

这是你自己设置的,例如:

DataSourceId = "my-first-test-data-source-id"