Example usage for com.amazonaws.services.cloudfront.model ListCloudFrontOriginAccessIdentitiesRequest ListCloudFrontOriginAccessIdentitiesRequest

List of usage examples for com.amazonaws.services.cloudfront.model ListCloudFrontOriginAccessIdentitiesRequest ListCloudFrontOriginAccessIdentitiesRequest

Introduction

In this page you can find the example usage for com.amazonaws.services.cloudfront.model ListCloudFrontOriginAccessIdentitiesRequest ListCloudFrontOriginAccessIdentitiesRequest.

Prototype

ListCloudFrontOriginAccessIdentitiesRequest

Source Link

Usage

From source file:org.duracloud.s3task.streaming.EnableStreamingTaskRunner.java

License:Apache License

private String getExistingOriginAccessId() {
    List<CloudFrontOriginAccessIdentitySummary> oaiList = cfClient
            .listCloudFrontOriginAccessIdentities(new ListCloudFrontOriginAccessIdentitiesRequest())
            .getCloudFrontOriginAccessIdentityList().getItems();
    if (oaiList != null && oaiList.size() > 0) {
        return oaiList.iterator().next().getId();
    }/*from   ww  w . j a v a 2 s . c om*/
    return null;
}