Skip to content

Commit

Permalink
Merge pull request awsdocs#13 from beckandros/master
Browse files Browse the repository at this point in the history
MediaStore edits
  • Loading branch information
scmacdon authored Sep 3, 2020
2 parents 4961555 + ecacd28 commit 49812bb
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions javav2/example_code/mediastore/Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# AWS Elemental MediaStore Java code examples
# AWS Elemental MediaStore Java code examples

This README discusses how to run and test the Java code examples for AWS Elemental MediaStore.

Expand Down Expand Up @@ -35,9 +35,9 @@ Define these values to successfully run the JUnit tests:

- **containerName** - The name of a new container.
- **existingContainer** – The name of an existing container.
- **filePath** – The file location of a MP4 file to upload to a container.
- **putPath** – The container and location where a file is uploaded (ie, Videos5/sampleVideo.mp4).
- **getPath** – The container and location where a file is downloaded from (ie, Videos5/sampleVideo.mp4).
- **filePath** – The file location of an MP4 file to upload to a container.
- **putPath** – The container and location where a file is uploaded (for example, Videos5/sampleVideo.mp4).
- **getPath** – The container and location where a file is downloaded from (for example, Videos5/sampleVideo.mp4).
- **savePath** – The path on the local drive where the file is saved.

### Command line
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public class CreateContainer {
public static void main(String[] args) {

final String USAGE = "\n" +
"CreateContainer - create an AWS Elemental MediaStore container\n\n" +
"CreateContainer - Create an AWS Elemental MediaStore container.\n\n" +
"Usage: CreateContainer <containerName>\n\n" +
"Where:\n" +
" containerName - the name of the container to create.\n";
" containerName - The name of the container to create.\n";

if (args.length < 1) {
System.out.println(USAGE);
Expand Down Expand Up @@ -77,7 +77,7 @@ public static void createMediaContainer( MediaStoreClient mediaStoreClient, Stri
Thread.sleep(sleepTime * 1000);
}

System.out.println("The container ARN value is "+containerResponse.container().arn());
System.out.println("The container Amazon Resource Name (ARN) value is "+containerResponse.container().arn());
System.out.println("Finished ");

} catch (MediaStoreException | InterruptedException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ public class DeleteContainer {
public static void main(String[] args) {

final String USAGE = "\n" +
"To run this example, supply the name of a container \n" +
"To run this example, supply the name of a container. \n" +
"\n" +
"Ex: DeleteContainer <container-name>\n";
"Example: DeleteContainer <container-name>\n";

if (args.length < 1) {
System.out.println(USAGE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public class DeleteObject {
public static void main(String[] args) throws URISyntaxException {

final String USAGE = "\n" +
"To run this example, supply the path (including the container) of the item to delete and container name\n" +
"To run this example, supply the path (including the container) of the item to delete and container name.\n" +
"\n" +
"Ex: DeleteObject <completePath><containerName> \n";
"Example: DeleteObject <completePath><containerName> \n";

if (args.length < 2) {
System.out.println(USAGE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public class DescribeContainer {
public static void main(String[] args) {

final String USAGE = "\n" +
"To run this example, supply the name of a container \n" +
"To run this example, supply the name of a container. \n" +
"\n" +
"Ex: DescribeContainer <container-name>\n";
"Example: DescribeContainer <container-name>\n";

if (args.length < 1) {
System.out.println(USAGE);
Expand All @@ -63,7 +63,7 @@ public static String checkContainer(MediaStoreClient mediaStoreClient, String na

DescribeContainerResponse containerResponse = mediaStoreClient.describeContainer(describeContainerRequest);
System.out.println("The container name is "+containerResponse.container().name());
System.out.println("The container ARN is "+containerResponse.container().arn());
System.out.println("The container Amazon Resource Name (ARN) is "+containerResponse.container().arn());

return containerResponse.container().status().toString();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public static void main(String[] args) throws URISyntaxException {

final String USAGE = "\n" +
"To run this example, supply the path of the object in the container, \n" +
" the name of the container, and the path on the local drive where the file is saved (including the file name, ie C:/AWS/myvid.mp4 \") \n" +
" the name of the container, and the path on the local drive where the file is saved (including the file name, for example, C:/AWS/myvid.mp4. \") \n" +
"\n" +
"Ex: GetObject <completePath><containerName><savePath>\n";
"Example: GetObject <completePath><containerName><savePath>\n";

if (args.length < 3) {
System.out.println(USAGE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public class ListItems {
public static void main(String[] args) throws URISyntaxException {

final String USAGE = "\n" +
"To run this example, supply the name of a container that contains items \n" +
"To run this example, supply the name of a container that contains items. \n" +
"\n" +
"Ex: ListItems <container-name> \n";
"Example: ListItems <container-name> \n";

if (args.length < 1) {
System.out.println(USAGE);
Expand Down Expand Up @@ -80,8 +80,8 @@ public static void listAllItems(MediaStoreDataClient mediaStoreData, String cont
if (hasItems) {
List<Item> items = itemsResponse.items();
for (Item item : items) {
System.out.println("Item name is: " + item.name());
System.out.println("Content type is: " + item.contentType());
System.out.println("The item name is: " + item.name());
System.out.println("The content type is: " + item.contentType());
}
} else {
System.out.println("There are no items");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//snippet-sourcedescription:[PutObject.java demonstrates how to upload a MP4 file to an AWS Elemental MediaStore container.]
//snippet-sourcedescription:[PutObject.java demonstrates how to upload an MP4 file to an AWS Elemental MediaStore container.]
//snippet-keyword:[Java]
//snippet-keyword:[Code Sample]
//snippet-keyword:[AWS Elemental MediaStore]
Expand Down Expand Up @@ -43,9 +43,9 @@ public class PutObject {
public static void main(String[] args) throws URISyntaxException {

final String USAGE = "\n" +
"To run this example, supply the name of a container, a file location to use, and path in the container \n" +
"To run this example, supply the name of a container, a file location to use, and path in the container. \n" +
"\n" +
"Ex: PutObject <containerName><filePath><completePath>\n";
"Example: PutObject <containerName><filePath><completePath>\n";

if (args.length < 3) {
System.out.println(USAGE);
Expand Down

0 comments on commit 49812bb

Please sign in to comment.