Please find the code snippet and the error below
AWSCredentialsProvider awsCredentialsProvider = new AWSStaticCredentialsProvider(credentials); AmazonId