Example usage for com.amazonaws.services.kinesis AmazonKinesis ENDPOINT_PREFIX

List of usage examples for com.amazonaws.services.kinesis AmazonKinesis ENDPOINT_PREFIX

Introduction

In this page you can find the example usage for com.amazonaws.services.kinesis AmazonKinesis ENDPOINT_PREFIX.

Prototype

String ENDPOINT_PREFIX

To view the source code for com.amazonaws.services.kinesis AmazonKinesis ENDPOINT_PREFIX.

Click Source Link

Document

The region metadata service name for computing region endpoints.

Usage

From source file:zipkin.sparkstreaming.stream.kinesis.KinesisStreamFactory.java

License:Apache License

KinesisStreamFactory(Builder builder) {
    this.stream = builder.stream;
    this.app = builder.app;
    this.regionName = builder.awsRegion;
    this.endpoint = builder.awsEndpoint != null ? builder.awsEndpoint
            : Region.getRegion(Regions.fromName(regionName)).getServiceEndpoint(AmazonKinesis.ENDPOINT_PREFIX);

    this.checkpointInterval = builder.checkpointInterval;
    this.initialPositionInStream = builder.initialPositionInStream;
    this.storageLevel = builder.storageLevel;

    this.awsAccessKeyId = builder.awsAccessKeyId;
    this.awsSecretKey = builder.awsSecretKey;
}