"clientConfig cannot be resolved to a variable" but what about this?
Code snippets are meant to be understood, not blindly copied. Trying to use a variable without creating it first is a mistake in any
java application, not just AWS related ones. Have you really understood that code snippet before using it?