34.4.3. 고급 AmazonSNS 구성
AmazonSNS 인스턴스 구성을 더 많이 제어해야 하는 경우 고유한 인스턴스를 생성하고 URI에서 해당 인스턴스를 참조할 수 있습니다.
from("direct:start")
.to("aws-sns://MyTopic?amazonSNSClient=#client");
#client 는 레지스트리의 AmazonSNS 를 나타냅니다.
예를 들어 Camel 애플리케이션이 방화벽 뒤에서 실행 중인 경우입니다.
AWSCredentials awsCredentials = new BasicAWSCredentials("myAccessKey", "mySecretKey");
ClientConfiguration clientConfiguration = new ClientConfiguration();
clientConfiguration.setProxyHost("http://myProxyHost");
clientConfiguration.setProxyPort(8080);
AmazonSNS client = new AmazonSNSClient(awsCredentials, clientConfiguration);
registry.bind("client", client);