Skip to content

Commit b7dc251

Browse files
committed
adding snippet tags to add the example to the the AWS Code Libary (and the Bedrock Runtime Service Guide)
1 parent f1a8e34 commit b7dc251

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.doc_gen/metadata/bedrock-runtime_metadata.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,3 +1632,20 @@ bedrock-runtime_Scenario_InvokeModels:
16321632
- php.example_code.bedrock-runtime.basics.scenario
16331633
services:
16341634
bedrock-runtime: {InvokeModel, InvokeModelWithResponseStream}
1635+
1636+
bedrock-runtime_Scenario_GenerateVideos_NovaReel:
1637+
title: Generate videos from text prompts using &BR; and Nova-Reel
1638+
title_abbrev: "Generate videos from text prompts using &BR;"
1639+
synopsis: a Spring Boot app that generates videos from text prompts using &BR; and the Nova-Reel model
1640+
category: Scenarios
1641+
languages:
1642+
Java:
1643+
versions:
1644+
- sdk_version: 2
1645+
github: javav2/example_code/bedrock-runtime
1646+
excerpts:
1647+
- description: Generate videos from text prompts using &BR; and Nova-Reel
1648+
snippet_tags:
1649+
- bedrock-runtime.java2.NovaReel.VideoGeneration
1650+
services:
1651+
bedrock-runtime: {StartAsyncInvoke, GetAsyncInvoke}

javav2/usecases/video_generation_bedrock_nova_reel/src/main/java/com/example/novareel/VideoGenerationService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
package com.example.novareel;
55

6+
// snippet-start:[bedrock-runtime.java2.NovaReel.VideoGeneration]
67
import org.springframework.stereotype.Service;
78
import software.amazon.awssdk.auth.credentials.ProfileCredentialsProvider;
89
import software.amazon.awssdk.core.document.Document;
@@ -101,5 +102,5 @@ private static Document prepareDocument(String prompt) {
101102
.build();
102103
return novaRequest;
103104
}
104-
105105
}
106+
// snippet-end:[bedrock-runtime.java2.NovaReel.VideoGeneration]

0 commit comments

Comments
 (0)