I need to configure the RN SDK for AWS timestream but I keep getting an error:
Cant find variable Credential.
import { TimestreamQueryClient, CreateDatabaseCommand } from "@aws-sdk/client-timestream-query";
const client = new TimestreamQueryClient({
region: "eu-west-1",
credentials: new Credential('XXXXXXXXXXXX', 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXX'), // fails here
apiVersion: 'latest'
});
What am I doing wrong here?!
I was not able to find any documentation regarding the SDK configuration in RN.