use of org.apache.beam.sdk.io.kinesis.KinesisIO.Write in project beam by apache.
the class KinesisIOWriteTest method testReadWithCredentialsProviderAndCustomEndpoint.
@Test
public void testReadWithCredentialsProviderAndCustomEndpoint() {
String customEndpoint = "localhost:9999";
Regions region = Regions.US_WEST_1;
AWSCredentialsProvider credentialsProvider = DefaultAWSCredentialsProviderChain.getInstance();
Write write = KinesisIO.write().withAWSClientsProvider(credentialsProvider, region, customEndpoint);
assertEquals(write.getAWSClientsProvider(), new BasicKinesisProvider(credentialsProvider, region, customEndpoint, true));
}
Aggregations