23.6. 사용법
23.6.1. AmazonDynamoDBStreamsClient configuration 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
AmazonDynamoDBStreamsClient 인스턴스를 생성하여 레지스트리에 바인딩해야 합니다.
ClientConfiguration clientConfiguration = new ClientConfiguration();
clientConfiguration.setProxyHost("http://myProxyHost");
clientConfiguration.setProxyPort(8080);
Region region = Region.getRegion(Regions.fromName(region));
region.createClient(AmazonDynamoDBStreamsClient.class, null, clientConfiguration);
// the 'null' here is the AWSCredentialsProvider which defaults to an instance of DefaultAWSCredentialsProviderChain
registry.bind("kinesisClient", client);
23.6.2. AWS 자격 증명 제공 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
새 ClientConfiguration 인스턴스를 생성할 때 기본값인 DefaultAWSCredentialsProviderchain 을 사용하여 인증 정보를 얻는 것이 좋지만 createClient(…)를 호출할 때 다른 AWSCredentialsProvider 를 지정할 수 있습니다.