use of com.amazonaws.services.mediastore.model.CreateContainerResult in project aws-doc-sdk-examples by awsdocs.
the class CreateContainer method createContainer.
public static Container createContainer(String name) {
final AWSMediaStore mediastore = AWSMediaStoreClientBuilder.defaultClient();
final CreateContainerRequest request = new CreateContainerRequest().withContainerName(name.trim());
try {
final CreateContainerResult result = mediastore.createContainer(request);
return result.getContainer();
} catch (AWSMediaStoreException e) {
System.err.println(e.getErrorMessage());
}
return null;
}
Aggregations