26.5.2. AmazonKinesis 구성
AmazonKinesisClient 인스턴스를 생성하고 레지스트리에 바인딩해야 합니다.
ClientConfiguration clientConfiguration = new ClientConfiguration(); clientConfiguration.setProxyHost("http://myProxyHost"); clientConfiguration.setProxyPort(8080); Region region = Region.getRegion(Regions.fromName(region)); region.createClient(AmazonKinesisClient.class, null, clientConfiguration); // the 'null' here is the AWSCredentialsProvider which defaults to an instance of DefaultAWSCredentialsProviderChain registry.bind("kinesisClient", client);
그런 다음 AmazonKinesisClient를 Amazon KinesisClient
URI 옵션에서 참조해야 합니다.
from("aws-kinesis://mykinesisstream?amazonKinesisClient=#kinesisClient") .to("log:out?showAll=true");