Skip to content

Commit 35a58f4

Browse files
aws-sdk-rust-ciDavidSouthershepazon
committed
[examples] Sync SDK examples from awsdocs/aws-doc-sdk-examples
Includes commit(s): de7b1ee3fae2e3cd7d81a24c17345040f76b1d75 dbef793bffc03888015c55ef3a0218422b196f1d Co-authored-by: David Souther <[email protected]> Co-authored-by: Eric Shepherd <[email protected]>
1 parent 9d887fd commit 35a58f4

File tree

259 files changed

+546
-928
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+546
-928
lines changed

examples/cross_service/detect_faces/src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
/*
2-
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3-
* SPDX-License-Identifier: Apache-2.0.
4-
*/
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
53

64
use aws_config::meta::region::RegionProviderChain;
75
use aws_config::BehaviorVersion;

examples/cross_service/detect_labels/src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
/*
2-
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3-
* SPDX-License-Identifier: Apache-2.0.
4-
*/
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
53

64
extern crate exif;
75

examples/cross_service/photo_asset_management/integration/tests/update_label.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
13
use std::collections::HashMap;
24

35
use aws_sdk_dynamodb::types::{AttributeDefinition, KeySchemaElement, ProvisionedThroughput};

examples/cross_service/photo_asset_management/src/bin/detect_labels.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
13
use photo_asset_management::{
24
common::{init_tracing_subscriber, Common},
35
handlers::detect_labels,

examples/cross_service/photo_asset_management/src/bin/download.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
13
use photo_asset_management::{
24
common::{init_tracing_subscriber, Common},
35
handlers::download,

examples/cross_service/photo_asset_management/src/bin/hello.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
13
use photo_asset_management::{
24
common::{init_tracing_subscriber, Common},
35
handlers::hello,

examples/cross_service/photo_asset_management/src/bin/labels.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
13
use photo_asset_management::{
24
common::{init_tracing_subscriber, Common},
35
handlers::labels,

examples/cross_service/photo_asset_management/src/bin/pam.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
13
use photo_asset_management::{
24
common::{init_tracing_subscriber, Common},
35
handlers::{detect_labels, download, hello, labels, upload},

examples/cross_service/photo_asset_management/src/bin/upload.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
13
use photo_asset_management::{
24
common::{init_tracing_subscriber, Common},
35
handlers::upload,

examples/cross_service/photo_asset_management/src/chunked_uploader.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
13
use std::io::Read;
24

35
use anyhow::anyhow;

0 commit comments

Comments
 (0)