Skip to content

Commit 90d063f

Browse files
aws-sdk-rust-cidacortDavidSouthereduardomourarjdisanti
committed
[examples] Sync SDK examples from awsdocs/aws-doc-sdk-examples
Includes commit(s): 666f702a6ebd60e260c17dcddee4527d78db3f33 4201ec6fb63a5b1cadeb73da6190e8d58ab6f6dc 0d9cd29d0f4cb5225314bd3789d2f95df97f6949 b4ed643ade8c256ea9feae5cea7c2e1d61a364f6 a0fb25952fb41c2f3b9f206c7798bc478a293650 e4434eb899ef5b15b7872b0a1d8793df2bf7d568 338cf36a2a17e67a254984443a8e9b2f101d4ea3 dbc7e2047ee984e7ff5121ad5f9fa5bbfb930c44 07e676a7589d6d8a018514bc402d3ea4dede540c f817870a5a86a6150fa4294993523b6e1db45172 Co-authored-by: Damon P. Cortesi <[email protected]> Co-authored-by: David Souther <[email protected]> Co-authored-by: Eduardo de Moura Rodrigues <[email protected]> Co-authored-by: John DiSanti <[email protected]> Co-authored-by: ford prior <[email protected]> Co-authored-by: j2clerck <[email protected]>
1 parent 68c4ee0 commit 90d063f

File tree

236 files changed

+1853
-480
lines changed

Some content is hidden

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

236 files changed

+1853
-480
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ members = [
2626
"examples/ecr",
2727
"examples/ecs",
2828
"examples/eks",
29+
"examples/firehose",
2930
"examples/globalaccelerator",
3031
"examples/glue",
3132
"examples/greengrassv2",
@@ -54,11 +55,11 @@ members = [
5455
"examples/sqs",
5556
"examples/ssm",
5657
"examples/stepfunction",
58+
"examples/sts",
5759
"examples/test-utils",
5860
"examples/testing",
5961
"examples/tls",
6062
"examples/transcribestreaming",
61-
"examples/using-native-tls-instead-of-rustls",
6263
"sdk/accessanalyzer",
6364
"sdk/account",
6465
"sdk/acm",

examples/apigateway/src/bin/get_rest_apis.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6+
#![allow(clippy::result_large_err)]
7+
68
use apigateway_code_examples::Error;
79
use aws_config::meta::region::RegionProviderChain;
8-
use aws_sdk_apigateway::types::DisplayErrorContext;
9-
use aws_sdk_apigateway::{Client, Region, PKG_VERSION};
10+
use aws_sdk_apigateway::error::DisplayErrorContext;
11+
use aws_sdk_apigateway::{config::Region, meta::PKG_VERSION, Client};
1012
use aws_smithy_types_convert::date_time::DateTimeExt;
1113
use std::process;
1214
use structopt::StructOpt;

examples/apigateway/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ impl From<aws_sdk_apigateway::Error> for Error {
2626
}
2727
}
2828

29-
impl<T> From<aws_sdk_apigateway::types::SdkError<T>> for Error
29+
impl<T> From<aws_sdk_apigateway::error::SdkError<T>> for Error
3030
where
3131
T: StdError + Send + Sync + 'static,
3232
{
33-
fn from(source: aws_sdk_apigateway::types::SdkError<T>) -> Self {
33+
fn from(source: aws_sdk_apigateway::error::SdkError<T>) -> Self {
3434
Error::unhandled(source)
3535
}
3636
}

examples/apigatewaymanagement/src/bin/post_to_connection.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6+
#![allow(clippy::result_large_err)]
7+
68
use aws_config::meta::region::RegionProviderChain;
7-
use aws_sdk_apigatewaymanagement::types::Blob;
8-
use aws_sdk_apigatewaymanagement::{config, Client, Error, Region, PKG_VERSION};
9+
use aws_sdk_apigatewaymanagement::primitives::Blob;
10+
use aws_sdk_apigatewaymanagement::{config, config::Region, meta::PKG_VERSION, Client, Error};
911
use structopt::StructOpt;
1012

1113
#[derive(Debug, StructOpt)]

examples/applicationautoscaling/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ publish = false
1010
aws-config= { version = "0.55.0", path = "../../sdk/aws-config" }
1111
aws-sdk-applicationautoscaling= { version = "0.25.0", path = "../../sdk/applicationautoscaling" }
1212

13+
[workspace]
14+
1315
[dependencies.tokio]
1416
version = "1.20.1"
1517
features = ["full"]
@@ -21,5 +23,3 @@ default-features = false
2123
[dependencies.tracing-subscriber]
2224
version = "0.3.15"
2325
features = ["env-filter"]
24-
25-
[workspace]

examples/applicationautoscaling/src/bin/describe-scaling-policies.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6+
#![allow(clippy::result_large_err)]
7+
68
use aws_config::meta::region::RegionProviderChain;
7-
use aws_sdk_applicationautoscaling::model::ServiceNamespace;
8-
use aws_sdk_applicationautoscaling::{Client, Error, Region, PKG_VERSION};
9+
use aws_sdk_applicationautoscaling::types::ServiceNamespace;
10+
use aws_sdk_applicationautoscaling::{config::Region, meta::PKG_VERSION, Client, Error};
911
use structopt::StructOpt;
1012

1113
#[derive(Debug, StructOpt)]

examples/autoscaling/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ publish = false
1010
aws-config= { version = "0.55.0", path = "../../sdk/aws-config" }
1111
aws-sdk-autoscaling= { version = "0.25.0", path = "../../sdk/autoscaling" }
1212

13+
[workspace]
14+
1315
[dependencies.tokio]
1416
version = "1.20.1"
1517
features = ["full"]
@@ -21,5 +23,3 @@ default-features = false
2123
[dependencies.tracing-subscriber]
2224
version = "0.3.15"
2325
features = ["env-filter"]
24-
25-
[workspace]

examples/autoscaling/src/bin/create-autoscaling-group.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6+
#![allow(clippy::result_large_err)]
7+
68
use aws_config::meta::region::RegionProviderChain;
7-
use aws_sdk_autoscaling::{Client, Error, Region, PKG_VERSION};
9+
use aws_sdk_autoscaling::{config::Region, meta::PKG_VERSION, Client, Error};
810
use structopt::StructOpt;
911

1012
#[derive(Debug, StructOpt)]

examples/autoscaling/src/bin/delete-autoscaling-group.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6+
#![allow(clippy::result_large_err)]
7+
68
use aws_config::meta::region::RegionProviderChain;
7-
use aws_sdk_autoscaling::{Client, Error, Region, PKG_VERSION};
9+
use aws_sdk_autoscaling::{config::Region, meta::PKG_VERSION, Client, Error};
810
use structopt::StructOpt;
911

1012
#[derive(Debug, StructOpt)]

examples/autoscaling/src/bin/list-autoscaling-groups.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6+
#![allow(clippy::result_large_err)]
7+
68
use aws_config::meta::region::RegionProviderChain;
7-
use aws_sdk_autoscaling::{Client, Error, Region, PKG_VERSION};
9+
use aws_sdk_autoscaling::{config::Region, meta::PKG_VERSION, Client, Error};
810
use structopt::StructOpt;
911

1012
#[derive(Debug, StructOpt)]

0 commit comments

Comments
 (0)