#![cfg(feature = "test-util")]
#[::tokio::test]
async fn operation_input_test_list_tables_1() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=true, AccountId=111111111111, AccountIdEndpointMode=preferred, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_2() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=false, AccountId=111111111111, AccountIdEndpointMode=preferred, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_3() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: Dualstack and custom endpoint are not supported [{UseFIPS=false, UseDualStack=true, AccountId=111111111111, AccountIdEndpointMode=preferred, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: Dualstack and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: Dualstack and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_4() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_5() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_6() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_7() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=true, ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, AccountIdEndpointMode=preferred, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_8() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=false, ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, AccountIdEndpointMode=preferred, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_9() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: Dualstack and custom endpoint are not supported [{UseFIPS=false, UseDualStack=true, ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, AccountIdEndpointMode=preferred, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: Dualstack and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: Dualstack and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_10() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_11() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-west-2:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_12() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:s3:us-west-2:222222222222:stream/testStream".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_13() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=true, ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], AccountIdEndpointMode=preferred, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_14() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=false, ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], AccountIdEndpointMode=preferred, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_15() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: Dualstack and custom endpoint are not supported [{UseFIPS=false, UseDualStack=true, ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], AccountIdEndpointMode=preferred, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: Dualstack and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: Dualstack and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_16() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_17() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=true, AccountId=111111111111, AccountIdEndpointMode=disabled, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_18() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=false, AccountId=111111111111, AccountIdEndpointMode=disabled, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_19() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: Dualstack and custom endpoint are not supported [{UseFIPS=false, UseDualStack=true, AccountId=111111111111, AccountIdEndpointMode=disabled, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: Dualstack and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: Dualstack and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_20() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_21() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_22() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_23() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=true, ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, AccountIdEndpointMode=disabled, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_24() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=false, ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, AccountIdEndpointMode=disabled, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_25() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: Dualstack and custom endpoint are not supported [{UseFIPS=false, UseDualStack=true, ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, AccountIdEndpointMode=disabled, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: Dualstack and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: Dualstack and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_26() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_27() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-west-2:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_28() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:s3:us-west-2:222222222222:stream/testStream".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_29() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=true, ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], AccountIdEndpointMode=disabled, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_30() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=false, ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], AccountIdEndpointMode=disabled, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_31() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: Dualstack and custom endpoint are not supported [{UseFIPS=false, UseDualStack=true, ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], AccountIdEndpointMode=disabled, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: Dualstack and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: Dualstack and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_32() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_33() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=true, AccountId=111111111111, AccountIdEndpointMode=required, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_34() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=false, AccountId=111111111111, AccountIdEndpointMode=required, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_35() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: Dualstack and custom endpoint are not supported [{UseFIPS=false, UseDualStack=true, AccountId=111111111111, AccountIdEndpointMode=required, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: Dualstack and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: Dualstack and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_36() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_37() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_38() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_39() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=true, ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, AccountIdEndpointMode=required, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_40() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=false, ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, AccountIdEndpointMode=required, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_41() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: Dualstack and custom endpoint are not supported [{UseFIPS=false, UseDualStack=true, ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, AccountIdEndpointMode=required, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: Dualstack and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: Dualstack and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_42() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_43() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-west-2:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_44() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:s3:us-west-2:222222222222:stream/testStream".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_45() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=true, ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], AccountIdEndpointMode=required, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_46() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: FIPS and custom endpoint are not supported [{UseFIPS=true, UseDualStack=false, ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], AccountIdEndpointMode=required, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: FIPS and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: FIPS and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_47() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: Dualstack and custom endpoint are not supported [{UseFIPS=false, UseDualStack=true, ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], AccountIdEndpointMode=required, Region=us-east-1, Endpoint=https://example.com}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: Dualstack and custom endpoint are not supported"),
"expected error to contain `Invalid Configuration: Dualstack and custom endpoint are not supported` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_48() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.endpoint_url("https://example.com");
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://example.com"),
"expected URI to start with `https://example.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_49() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_50() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_51() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_52() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_53() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-west-2:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_54() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:s3:us-west-2:222222222222:stream/testStream".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_55() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_56() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_57() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_58() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_59() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_60() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-west-2:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_61() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:s3:us-west-2:222222222222:stream/testStream".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_62() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_63() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_64() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_65() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_66() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_67() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-west-2:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_68() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:s3:us-west-2:222222222222:stream/testStream".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_69() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("local"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("http://localhost:8000"),
"expected URI to start with `http://localhost:8000` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_70() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb-fips.us-east-1.api.aws"),
"expected URI to start with `https://dynamodb-fips.us-east-1.api.aws` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_71() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb-fips.us-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb-fips.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_72() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://111111111111.ddb.us-east-1.api.aws"),
"expected URI to start with `https://111111111111.ddb.us-east-1.api.aws` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_73() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://111111111111.ddb.us-east-1.amazonaws.com"),
"expected URI to start with `https://111111111111.ddb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_74() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://333333333333.ddb.us-east-1.amazonaws.com"),
"expected URI to start with `https://333333333333.ddb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_75() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Credentials-sourced account ID parameter is invalid [{UseFIPS=false, UseDualStack=false, AccountId=, AccountIdEndpointMode=preferred, Region=us-east-1}]");
assert!(
format!("{:?}", error).contains("Credentials-sourced account ID parameter is invalid"),
"expected error to contain `Credentials-sourced account ID parameter is invalid` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_76() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb-fips.us-east-1.api.aws"),
"expected URI to start with `https://dynamodb-fips.us-east-1.api.aws` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_77() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb-fips.us-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb-fips.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_78() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://222222222222.ddb.us-east-1.api.aws"),
"expected URI to start with `https://222222222222.ddb.us-east-1.api.aws` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_79() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://222222222222.ddb.us-east-1.amazonaws.com"),
"expected URI to start with `https://222222222222.ddb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_80() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-west-2:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_81() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:s3:us-west-2:222222222222:stream/testStream".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_82() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb-fips.us-east-1.api.aws"),
"expected URI to start with `https://dynamodb-fips.us-east-1.api.aws` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_83() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb-fips.us-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb-fips.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_84() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://333333333333.ddb.us-east-1.api.aws"),
"expected URI to start with `https://333333333333.ddb.us-east-1.api.aws` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_85() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://333333333333.ddb.us-east-1.amazonaws.com"),
"expected URI to start with `https://333333333333.ddb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_86() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported [{UseFIPS=true, UseDualStack=true, AccountId=111111111111, AccountIdEndpointMode=required, Region=us-east-1}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"),
"expected error to contain `Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported` but it was {:?}", error
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_87() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported [{UseFIPS=true, UseDualStack=false, AccountId=111111111111, AccountIdEndpointMode=required, Region=us-east-1}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"),
"expected error to contain `Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported` but it was {:?}", error
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_88() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://111111111111.ddb.us-east-1.api.aws"),
"expected URI to start with `https://111111111111.ddb.us-east-1.api.aws` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_89() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://111111111111.ddb.us-east-1.amazonaws.com"),
"expected URI to start with `https://111111111111.ddb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_90() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://333333333333.ddb.us-east-1.amazonaws.com"),
"expected URI to start with `https://333333333333.ddb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_91() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Credentials-sourced account ID parameter is invalid [{UseFIPS=false, UseDualStack=false, AccountId=, AccountIdEndpointMode=required, Region=us-east-1}]");
assert!(
format!("{:?}", error).contains("Credentials-sourced account ID parameter is invalid"),
"expected error to contain `Credentials-sourced account ID parameter is invalid` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_92() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported [{UseFIPS=true, UseDualStack=true, ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, AccountIdEndpointMode=required, Region=us-east-1}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"),
"expected error to contain `Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported` but it was {:?}", error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_93() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported [{UseFIPS=true, UseDualStack=false, ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, AccountIdEndpointMode=required, Region=us-east-1}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"),
"expected error to contain `Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported` but it was {:?}", error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_94() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://222222222222.ddb.us-east-1.api.aws"),
"expected URI to start with `https://222222222222.ddb.us-east-1.api.aws` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_95() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://222222222222.ddb.us-east-1.amazonaws.com"),
"expected URI to start with `https://222222222222.ddb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_96() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-west-2:222222222222:table/table_name".to_owned()
))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: AccountIdEndpointMode is required but no AccountID was provided or able to be loaded [{UseFIPS=false, UseDualStack=false, ResourceArn=arn:aws:dynamodb:us-west-2:222222222222:table/table_name, AccountIdEndpointMode=required, Region=us-east-1}]");
assert!(
format!("{:?}", error).contains("AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"),
"expected error to contain `AccountIdEndpointMode is required but no AccountID was provided or able to be loaded` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_97() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:s3:us-west-2:222222222222:stream/testStream".to_owned()
))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: AccountIdEndpointMode is required but no AccountID was provided or able to be loaded [{UseFIPS=false, UseDualStack=false, ResourceArn=arn:aws:s3:us-west-2:222222222222:stream/testStream, AccountIdEndpointMode=required, Region=us-east-1}]");
assert!(
format!("{:?}", error).contains("AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"),
"expected error to contain `AccountIdEndpointMode is required but no AccountID was provided or able to be loaded` but it was {:?}",
error
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_98() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported [{UseFIPS=true, UseDualStack=true, ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], AccountIdEndpointMode=required, Region=us-east-1}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"),
"expected error to contain `Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported` but it was {:?}", error
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_99() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported [{UseFIPS=true, UseDualStack=false, ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], AccountIdEndpointMode=required, Region=us-east-1}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"),
"expected error to contain `Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported` but it was {:?}", error
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_100() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://333333333333.ddb.us-east-1.api.aws"),
"expected URI to start with `https://333333333333.ddb.us-east-1.api.aws` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_101() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://333333333333.ddb.us-east-1.amazonaws.com"),
"expected URI to start with `https://333333333333.ddb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_102() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition [{UseFIPS=false, UseDualStack=false, AccountId=111111111111, AccountIdEndpointMode=required, Region=cn-north-1}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition"),
"expected error to contain `Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition` but it was {:?}", error
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_103() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition [{UseFIPS=false, UseDualStack=false, AccountId=111111111111, ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], AccountIdEndpointMode=required, Region=cn-north-1}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition"),
"expected error to contain `Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition` but it was {:?}", error
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_104() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition [{UseFIPS=false, UseDualStack=false, AccountId=, AccountIdEndpointMode=required, Region=cn-north-1}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition"),
"expected error to contain `Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition` but it was {:?}", error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_105() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition [{UseFIPS=false, UseDualStack=false, ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, AccountIdEndpointMode=required, Region=cn-north-1}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition"),
"expected error to contain `Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition` but it was {:?}", error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_106() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-west-2:222222222222:table/table_name".to_owned()
))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition [{UseFIPS=false, UseDualStack=false, ResourceArn=arn:aws:dynamodb:us-west-2:222222222222:table/table_name, AccountIdEndpointMode=required, Region=cn-north-1}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition"),
"expected error to contain `Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition` but it was {:?}", error
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_107() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:s3:us-west-2:222222222222:stream/testStream".to_owned()
))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition [{UseFIPS=false, UseDualStack=false, ResourceArn=arn:aws:s3:us-west-2:222222222222:stream/testStream, AccountIdEndpointMode=required, Region=cn-north-1}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition"),
"expected error to contain `Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition` but it was {:?}", error
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_108() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("required").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
rcvr.expect_no_request();
let error = _result.expect_err("expected error: Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition [{UseFIPS=false, UseDualStack=false, ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], AccountIdEndpointMode=required, Region=cn-north-1}]");
assert!(
format!("{:?}", error).contains("Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition"),
"expected error to contain `Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition` but it was {:?}", error
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_109() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb-fips.us-east-1.api.aws"),
"expected URI to start with `https://dynamodb-fips.us-east-1.api.aws` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_110() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb-fips.us-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb-fips.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_111() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-east-1.api.aws"),
"expected URI to start with `https://dynamodb.us-east-1.api.aws` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_112() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_113() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_114() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_115() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb-fips.us-east-1.api.aws"),
"expected URI to start with `https://dynamodb-fips.us-east-1.api.aws` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_116() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb-fips.us-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb-fips.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_117() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-east-1.api.aws"),
"expected URI to start with `https://dynamodb.us-east-1.api.aws` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_118() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_119() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-west-2:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_120() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:s3:us-west-2:222222222222:stream/testStream".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_121() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb-fips.us-east-1.api.aws"),
"expected URI to start with `https://dynamodb-fips.us-east-1.api.aws` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_122() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(true);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb-fips.us-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb-fips.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_123() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(true);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-east-1.api.aws"),
"expected URI to start with `https://dynamodb.us-east-1.api.aws` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_124() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("disabled").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb.us-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_125() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.cn-north-1.amazonaws.com.cn"),
"expected URI to start with `https://dynamodb.cn-north-1.amazonaws.com.cn` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_126() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.cn-north-1.amazonaws.com.cn"),
"expected URI to start with `https://dynamodb.cn-north-1.amazonaws.com.cn` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_127() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.cn-north-1.amazonaws.com.cn"),
"expected URI to start with `https://dynamodb.cn-north-1.amazonaws.com.cn` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_128() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.cn-north-1.amazonaws.com.cn"),
"expected URI to start with `https://dynamodb.cn-north-1.amazonaws.com.cn` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_129() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-west-2:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.cn-north-1.amazonaws.com.cn"),
"expected URI to start with `https://dynamodb.cn-north-1.amazonaws.com.cn` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_130() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:s3:us-west-2:222222222222:stream/testStream".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.cn-north-1.amazonaws.com.cn"),
"expected URI to start with `https://dynamodb.cn-north-1.amazonaws.com.cn` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_131() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("cn-north-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.cn-north-1.amazonaws.com.cn"),
"expected URI to start with `https://dynamodb.cn-north-1.amazonaws.com.cn` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_132() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-iso-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-iso-east-1.c2s.ic.gov"),
"expected URI to start with `https://dynamodb.us-iso-east-1.c2s.ic.gov` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_133() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-iso-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-iso-east-1.c2s.ic.gov"),
"expected URI to start with `https://dynamodb.us-iso-east-1.c2s.ic.gov` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_134() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-iso-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-iso-east-1.c2s.ic.gov"),
"expected URI to start with `https://dynamodb.us-iso-east-1.c2s.ic.gov` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_135() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-iso-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-iso-east-1.c2s.ic.gov"),
"expected URI to start with `https://dynamodb.us-iso-east-1.c2s.ic.gov` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_136() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-iso-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-west-2:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-iso-east-1.c2s.ic.gov"),
"expected URI to start with `https://dynamodb.us-iso-east-1.c2s.ic.gov` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_137() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-iso-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:s3:us-west-2:222222222222:stream/testStream".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-iso-east-1.c2s.ic.gov"),
"expected URI to start with `https://dynamodb.us-iso-east-1.c2s.ic.gov` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_138() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-iso-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-iso-east-1.c2s.ic.gov"),
"expected URI to start with `https://dynamodb.us-iso-east-1.c2s.ic.gov` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_139() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-gov-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-gov-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb.us-gov-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_140() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-gov-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("111111111111").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-gov-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb.us-gov-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_list_tables_141() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-gov-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.credentials_provider(::aws_credential_types::provider::SharedCredentialsProvider::new(
::aws_credential_types::CredentialsBuilder::for_tests().account_id("").build(),
));
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(client.list_tables().send().await);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-gov-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb.us-gov-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_142() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-gov-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-east-1:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-gov-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb.us-gov-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_143() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-gov-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:dynamodb:us-west-2:222222222222:table/table_name".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-gov-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb.us-gov-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_describe_table_144() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-gov-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.describe_table()
.set_table_name(::std::option::Option::Some(
"arn:aws:s3:us-west-2:222222222222:stream/testStream".to_owned()
))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-gov-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb.us-gov-east-1.amazonaws.com` but it was `{}`",
uri
);
}
#[::tokio::test]
async fn operation_input_test_batch_get_item_145() {
let (http_client, rcvr) = ::aws_smithy_http_client::test_util::capture_request(None);
let conf = {
#[allow(unused_mut)]
let mut builder = aws_sdk_dynamodb::Config::builder().with_test_defaults().http_client(http_client);
let builder = builder.region(::aws_types::region::Region::new("us-gov-east-1"));
let builder = builder.use_fips(false);
let builder = builder.use_dual_stack(false);
let builder = builder.account_id_endpoint_mode(
<::aws_types::endpoint_config::AccountIdEndpointMode as std::str::FromStr>::from_str("preferred").expect("should parse"),
);
builder.build()
};
let client = aws_sdk_dynamodb::Client::from_conf(conf);
let _result = dbg!(
client
.batch_get_item()
.set_request_items(::std::option::Option::Some({
let mut ret = ::std::collections::HashMap::new();
ret.insert(
"arn:aws:dynamodb:us-east-1:333333333333:table/table_name".to_owned(),
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(::std::option::Option::Some(vec![{
let mut ret = ::std::collections::HashMap::new();
ret.insert("pk".to_owned(), aws_sdk_dynamodb::types::AttributeValue::S("value".to_owned()));
ret
}]))
.build()
.unwrap(),
);
ret
}))
.send()
.await
);
let req = rcvr.expect_request();
let uri = req.uri().to_string();
assert!(
uri.starts_with("https://dynamodb.us-gov-east-1.amazonaws.com"),
"expected URI to start with `https://dynamodb.us-gov-east-1.amazonaws.com` but it was `{}`",
uri
);
}