Skip to content

Commit

Permalink
Moved Kinesis code examples into Kinesis directory (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug-AWS authored Jun 9, 2021
1 parent 6618ac2 commit 646e20e
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 58 deletions.
14 changes: 0 additions & 14 deletions aws/sdk/examples/kinesis-delete-stream/Cargo.toml

This file was deleted.

14 changes: 0 additions & 14 deletions aws/sdk/examples/kinesis-describe-stream/Cargo.toml

This file was deleted.

14 changes: 0 additions & 14 deletions aws/sdk/examples/kinesis-list-streams/Cargo.toml

This file was deleted.

14 changes: 0 additions & 14 deletions aws/sdk/examples/kinesis-put-record/Cargo.toml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "kinesis-create-stream"
name = "kinesis-code-examples"
version = "0.1.0"
authors = ["Doug Schwartz <dougsch@amazon.com>"]
edition = "2018"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ async fn main() {

let client = Client::from_conf(config);

match client.create_stream().stream_name(name).send().await {
match client
.create_stream()
.stream_name(name)
.shard_count(4)
.send()
.await
{
Ok(_) => println!("Created stream"),
Err(e) => {
println!("Got an error creating stream");
Expand Down

0 comments on commit 646e20e

Please sign in to comment.