Skip to content

Commit 5d0fd41

Browse files
committed
updated the SDK build number
1 parent 98fddb0 commit 5d0fd41

File tree

5 files changed

+12784
-15
lines changed

5 files changed

+12784
-15
lines changed

javav2/example_code/eventbridge/pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<dependency>
3030
<groupId>software.amazon.awssdk</groupId>
3131
<artifactId>bom</artifactId>
32-
<version>2.21.20</version>
32+
<version>2.29.45</version>
3333
<type>pom</type>
3434
<scope>import</scope>
3535
</dependency>
@@ -84,5 +84,13 @@
8484
<groupId>software.amazon.awssdk</groupId>
8585
<artifactId>eventbridge</artifactId>
8686
</dependency>
87+
<dependency>
88+
<groupId>software.amazon.awssdk</groupId>
89+
<artifactId>sso</artifactId>
90+
</dependency>
91+
<dependency>
92+
<groupId>software.amazon.awssdk</groupId>
93+
<artifactId>ssooidc</artifactId>
94+
</dependency>
8795
</dependencies>
8896
</project>

javav2/example_code/firehose/pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<dependency>
3939
<groupId>software.amazon.awssdk</groupId>
4040
<artifactId>bom</artifactId>
41-
<version>2.21.20</version>
41+
<version>2.29.45</version>
4242
<type>pom</type>
4343
<scope>import</scope>
4444
</dependency>
@@ -95,5 +95,13 @@
9595
<artifactId>commons-io</artifactId>
9696
<version>2.14.0</version>
9797
</dependency>
98+
<dependency>
99+
<groupId>software.amazon.awssdk</groupId>
100+
<artifactId>sso</artifactId>
101+
</dependency>
102+
<dependency>
103+
<groupId>software.amazon.awssdk</groupId>
104+
<artifactId>ssooidc</artifactId>
105+
</dependency>
98106
</dependencies>
99107
</project>

javav2/example_code/firehose/src/main/java/com/example/firehose/scenario/FirehoseScenario.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import software.amazon.awssdk.services.firehose.model.*;
1313
import software.amazon.awssdk.services.firehose.model.Record;
1414

15+
import java.io.IOException;
1516
import java.io.InputStream;
1617
import java.nio.charset.StandardCharsets;
1718
import java.time.Instant;
@@ -37,12 +38,12 @@ public static void main(String[] args) {
3738
deliveryStreamName - The Firehose delivery stream name.
3839
""";
3940

40-
if (args.length != 1) {
41-
System.out.println(usage);
42-
return;
43-
}
41+
// if (args.length != 1) {
42+
// System.out.println(usage);
43+
// return;
44+
// }
4445

45-
String deliveryStreamName = args[0];
46+
String deliveryStreamName = "stream35" ; //args[0];
4647

4748
try {
4849
// Read and parse sample data.
@@ -201,10 +202,10 @@ private static void monitorMetric(String metricName, Instant startTime, Instant
201202
}
202203
}
203204

204-
public static String readJsonFile(String fileName) {
205-
try (InputStream inputStream = FirehoseScenario.class.getClassLoader().getResourceAsStream(fileName);
205+
public static String readJsonFile(String fileName) throws IOException {
206+
try (InputStream inputStream = FirehoseScenario.class.getResourceAsStream("/" + fileName);
206207
Scanner scanner = new Scanner(inputStream, StandardCharsets.UTF_8)) {
207-
return scanner.useDelimiter("\\A").next();
208+
return scanner.useDelimiter("\\\\A").next();
208209
} catch (Exception e) {
209210
throw new RuntimeException("Error reading file: " + fileName, e);
210211
}

0 commit comments

Comments
 (0)