Skip to content

Commit c266817

Browse files
authored
chore: update amazon clients (#447)
* bump * fmt * fmt * clippy
1 parent 94cc9a4 commit c266817

File tree

96 files changed

+3396
-315
lines changed

Some content is hidden

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

96 files changed

+3396
-315
lines changed

Cargo.lock

Lines changed: 39 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/amzn-codewhisperer-client/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[package]
1313
edition = "2021"
1414
name = "amzn-codewhisperer-client"
15-
version = "0.1.8702"
15+
version = "0.1.9759"
1616
authors = ["Grant Gurvis <[email protected]>"]
1717
build = false
1818
exclude = [
@@ -64,10 +64,10 @@ version = "1.5.5"
6464
version = "1.2.4"
6565

6666
[dependencies.aws-smithy-http]
67-
version = "0.62.1"
67+
version = "0.60.12"
6868

6969
[dependencies.aws-smithy-json]
70-
version = "0.61.3"
70+
version = "0.61.2"
7171

7272
[dependencies.aws-smithy-runtime]
7373
version = "1.7.8"

crates/amzn-codewhisperer-client/src/client.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ mod get_usage_limits;
115115

116116
mod list_available_customizations;
117117

118+
mod list_available_models;
119+
118120
mod list_available_profiles;
119121

120122
mod list_code_analysis_findings;

crates/amzn-codewhisperer-client/src/client/create_subscription_token.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ impl super::Client {
55
/// operation.
66
///
77
/// - The fluent builder is configurable:
8-
/// - [`account_id(impl Into<String>)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::account_id) / [`set_account_id(Option<String>)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::set_account_id):<br>required: **true**<br>Represents the AWS account ID of the customer<br>
98
/// - [`client_token(impl Into<String>)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::set_client_token):<br>required: **false**<br>(undocumented)<br>
9+
/// - [`status_only(bool)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::status_only) / [`set_status_only(Option<bool>)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::set_status_only):<br>required: **false**<br>(undocumented)<br>
1010
/// - On success, responds with
1111
/// [`CreateSubscriptionTokenOutput`](crate::operation::create_subscription_token::CreateSubscriptionTokenOutput)
1212
/// with field(s):
13-
/// - [`encoded_verification_url(String)`](crate::operation::create_subscription_token::CreateSubscriptionTokenOutput::encoded_verification_url): (undocumented)
14-
/// - [`token(String)`](crate::operation::create_subscription_token::CreateSubscriptionTokenOutput::token): (undocumented)
13+
/// - [`encoded_verification_url(Option<String>)`](crate::operation::create_subscription_token::CreateSubscriptionTokenOutput::encoded_verification_url): (undocumented)
14+
/// - [`token(Option<String>)`](crate::operation::create_subscription_token::CreateSubscriptionTokenOutput::token): (undocumented)
1515
/// - [`status(SubscriptionStatus)`](crate::operation::create_subscription_token::CreateSubscriptionTokenOutput::status): (undocumented)
1616
/// - On failure, responds with
1717
/// [`SdkError<CreateSubscriptionTokenError>`](crate::operation::create_subscription_token::CreateSubscriptionTokenError)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2+
impl super::Client {
3+
/// Constructs a fluent builder for the
4+
/// [`ListAvailableModels`](crate::operation::list_available_models::builders::ListAvailableModelsFluentBuilder)
5+
/// operation. This operation supports pagination; See
6+
/// [`into_paginator()`](crate::operation::list_available_models::builders::ListAvailableModelsFluentBuilder::into_paginator).
7+
///
8+
///
9+
/// - The fluent builder is configurable:
10+
/// - [`origin(Origin)`](crate::operation::list_available_models::builders::ListAvailableModelsFluentBuilder::origin) / [`set_origin(Option<Origin>)`](crate::operation::list_available_models::builders::ListAvailableModelsFluentBuilder::set_origin):<br>required: **true**<br>The origin context for which to list available models<br>
11+
/// - [`max_results(i32)`](crate::operation::list_available_models::builders::ListAvailableModelsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_available_models::builders::ListAvailableModelsFluentBuilder::set_max_results):<br>required: **false**<br>Maximum number of models to return in a single response<br>
12+
/// - [`next_token(impl Into<String>)`](crate::operation::list_available_models::builders::ListAvailableModelsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_available_models::builders::ListAvailableModelsFluentBuilder::set_next_token):<br>required: **false**<br>Token for retrieving the next page of results<br>
13+
/// - [`profile_arn(impl Into<String>)`](crate::operation::list_available_models::builders::ListAvailableModelsFluentBuilder::profile_arn) / [`set_profile_arn(Option<String>)`](crate::operation::list_available_models::builders::ListAvailableModelsFluentBuilder::set_profile_arn):<br>required: **false**<br>ARN of the profile to use for model filtering<br>
14+
/// - [`model_provider(ModelProvider)`](crate::operation::list_available_models::builders::ListAvailableModelsFluentBuilder::model_provider) / [`set_model_provider(Option<ModelProvider>)`](crate::operation::list_available_models::builders::ListAvailableModelsFluentBuilder::set_model_provider):<br>required: **false**<br>Provider of AI models<br>
15+
/// - On success, responds with
16+
/// [`ListAvailableModelsOutput`](crate::operation::list_available_models::ListAvailableModelsOutput)
17+
/// with field(s):
18+
/// - [`models(Vec::<Model>)`](crate::operation::list_available_models::ListAvailableModelsOutput::models): List of available models
19+
/// - [`next_token(Option<String>)`](crate::operation::list_available_models::ListAvailableModelsOutput::next_token): Token for retrieving the next page of results
20+
/// - On failure, responds with
21+
/// [`SdkError<ListAvailableModelsError>`](crate::operation::list_available_models::ListAvailableModelsError)
22+
pub fn list_available_models(
23+
&self,
24+
) -> crate::operation::list_available_models::builders::ListAvailableModelsFluentBuilder {
25+
crate::operation::list_available_models::builders::ListAvailableModelsFluentBuilder::new(self.handle.clone())
26+
}
27+
}

crates/amzn-codewhisperer-client/src/config.rs

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,6 @@ impl Builder {
609609
/// # Examples
610610
///
611611
/// Disabling identity caching:
612-
///
613612
/// ```no_run
614613
/// use amzn_codewhisperer_client::config::IdentityCache;
615614
///
@@ -621,7 +620,6 @@ impl Builder {
621620
/// ```
622621
///
623622
/// Customizing lazy caching:
624-
///
625623
/// ```no_run
626624
/// use std::time::Duration;
627625
///
@@ -658,7 +656,6 @@ impl Builder {
658656
/// # Examples
659657
///
660658
/// Disabling identity caching:
661-
///
662659
/// ```no_run
663660
/// use amzn_codewhisperer_client::config::IdentityCache;
664661
///
@@ -670,7 +667,6 @@ impl Builder {
670667
/// ```
671668
///
672669
/// Customizing lazy caching:
673-
///
674670
/// ```no_run
675671
/// use std::time::Duration;
676672
///
@@ -1132,9 +1128,7 @@ impl Builder {
11321128
/// # Examples
11331129
///
11341130
/// Set the behavior major version to `latest`. This is equivalent to enabling the
1135-
/// `behavior-version-latest` cargo feature.
1136-
///
1137-
/// ```no_run
1131+
/// `behavior-version-latest` cargo feature. ```no_run
11381132
/// use amzn_codewhisperer_client::config::BehaviorVersion;
11391133
///
11401134
/// let config = amzn_codewhisperer_client::Config::builder()
@@ -1143,9 +1137,8 @@ impl Builder {
11431137
/// .build();
11441138
/// let client = amzn_codewhisperer_client::Client::from_conf(config);
11451139
/// ```
1146-
///
1140+
///
11471141
/// Customizing behavior major version:
1148-
///
11491142
/// ```no_run
11501143
/// use amzn_codewhisperer_client::config::BehaviorVersion;
11511144
///
@@ -1170,9 +1163,7 @@ impl Builder {
11701163
/// # Examples
11711164
///
11721165
/// Set the behavior major version to `latest`. This is equivalent to enabling the
1173-
/// `behavior-version-latest` cargo feature.
1174-
///
1175-
/// ```no_run
1166+
/// `behavior-version-latest` cargo feature. ```no_run
11761167
/// use amzn_codewhisperer_client::config::BehaviorVersion;
11771168
///
11781169
/// let config = amzn_codewhisperer_client::Config::builder()
@@ -1181,9 +1172,8 @@ impl Builder {
11811172
/// .build();
11821173
/// let client = amzn_codewhisperer_client::Client::from_conf(config);
11831174
/// ```
1184-
///
1175+
///
11851176
/// Customizing behavior major version:
1186-
///
11871177
/// ```no_run
11881178
/// use amzn_codewhisperer_client::config::BehaviorVersion;
11891179
///

crates/amzn-codewhisperer-client/src/error_meta.rs

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,52 @@ impl From<crate::operation::list_available_customizations::ListAvailableCustomiz
923923
}
924924
}
925925
}
926+
impl<R>
927+
From<
928+
::aws_smithy_runtime_api::client::result::SdkError<
929+
crate::operation::list_available_models::ListAvailableModelsError,
930+
R,
931+
>,
932+
> for Error
933+
where
934+
R: Send + Sync + std::fmt::Debug + 'static,
935+
{
936+
fn from(
937+
err: ::aws_smithy_runtime_api::client::result::SdkError<
938+
crate::operation::list_available_models::ListAvailableModelsError,
939+
R,
940+
>,
941+
) -> Self {
942+
match err {
943+
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
944+
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
945+
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
946+
source: err.into(),
947+
}),
948+
}
949+
}
950+
}
951+
impl From<crate::operation::list_available_models::ListAvailableModelsError> for Error {
952+
fn from(err: crate::operation::list_available_models::ListAvailableModelsError) -> Self {
953+
match err {
954+
crate::operation::list_available_models::ListAvailableModelsError::ValidationError(inner) => {
955+
Error::ValidationError(inner)
956+
},
957+
crate::operation::list_available_models::ListAvailableModelsError::AccessDeniedError(inner) => {
958+
Error::AccessDeniedError(inner)
959+
},
960+
crate::operation::list_available_models::ListAvailableModelsError::InternalServerError(inner) => {
961+
Error::InternalServerError(inner)
962+
},
963+
crate::operation::list_available_models::ListAvailableModelsError::ThrottlingError(inner) => {
964+
Error::ThrottlingError(inner)
965+
},
966+
crate::operation::list_available_models::ListAvailableModelsError::Unhandled(inner) => {
967+
Error::Unhandled(inner)
968+
},
969+
}
970+
}
971+
}
926972
impl<R>
927973
From<
928974
::aws_smithy_runtime_api::client::result::SdkError<

0 commit comments

Comments
 (0)