28.4. 사용법
28.4.1. Amazon Kinesis Firehose 구성
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("kinesisFirehoseClient", client);
AmazonKinesisFirehoseClient는 Amazon KinesisFirehoseClient
옵션에서 참조해야 합니다.
from("aws-kinesis-firehose://mykinesisdeliverystream?amazonKinesisFirehoseClient=#kinesisClient") .to("log:out?showAll=true");