Skip to content

Commit 2341057

Browse files
authored
chore: update amazon clients (#485)
* regenerate * update client * update client
1 parent 0c83dab commit 2341057

File tree

88 files changed

+4967
-70
lines changed

Some content is hidden

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

88 files changed

+4967
-70
lines changed

Cargo.lock

Lines changed: 4 additions & 4 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: 1 addition & 1 deletion
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.9884"
15+
version = "0.1.10016"
1616
authors = ["Grant Gurvis <[email protected]>"]
1717
build = false
1818
exclude = [

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ mod list_available_models;
123123

124124
mod list_available_profiles;
125125

126+
mod list_available_subscriptions;
127+
126128
mod list_code_analysis_findings;
127129

128130
mod list_events;
@@ -139,6 +141,8 @@ mod resume_transformation;
139141

140142
mod send_telemetry_event;
141143

144+
mod set_user_preference;
145+
142146
mod start_code_analysis;
143147

144148
mod start_code_fix_job;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ impl super::Client {
77
/// - The fluent builder is configurable:
88
/// - [`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>
99
/// - [`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>
10+
/// - [`provider(SubscriptionProvider)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::provider) / [`set_provider(Option<SubscriptionProvider>)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::set_provider):<br>required: **false**<br>(undocumented)<br>
11+
/// - [`subscription_type(SubscriptionType)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::subscription_type) / [`set_subscription_type(Option<SubscriptionType>)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::set_subscription_type):<br>required: **false**<br>(undocumented)<br>
1012
/// - On success, responds with
1113
/// [`CreateSubscriptionTokenOutput`](crate::operation::create_subscription_token::CreateSubscriptionTokenOutput)
1214
/// with field(s):

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ impl super::Client {
1010
/// - On success, responds with
1111
/// [`GetUsageLimitsOutput`](crate::operation::get_usage_limits::GetUsageLimitsOutput) with
1212
/// field(s):
13-
/// - [`limits(Vec::<UsageLimitList>)`](crate::operation::get_usage_limits::GetUsageLimitsOutput::limits): (undocumented)
14-
/// - [`days_until_reset(i32)`](crate::operation::get_usage_limits::GetUsageLimitsOutput::days_until_reset): Number of days remaining until the usage metrics reset
13+
/// - [`limits(Option<Vec::<UsageLimitList>>)`](crate::operation::get_usage_limits::GetUsageLimitsOutput::limits): (undocumented)
14+
/// - [`days_until_reset(Option<i32>)`](crate::operation::get_usage_limits::GetUsageLimitsOutput::days_until_reset): Number of days remaining until the usage metrics reset
1515
/// - [`usage_breakdown(Option<UsageBreakdown>)`](crate::operation::get_usage_limits::GetUsageLimitsOutput::usage_breakdown): Usage breakdown by SKU type
16+
/// - [`usage_breakdown_list(Option<Vec::<UsageBreakdown>>)`](crate::operation::get_usage_limits::GetUsageLimitsOutput::usage_breakdown_list): List of usage by resource type
1617
/// - [`subscription_info(Option<SubscriptionInfo>)`](crate::operation::get_usage_limits::GetUsageLimitsOutput::subscription_info): Subscription Info
1718
/// - [`overage_configuration(Option<OverageConfiguration>)`](crate::operation::get_usage_limits::GetUsageLimitsOutput::overage_configuration): Overage Configuration
19+
/// - [`user_info(Option<UserInfo>)`](crate::operation::get_usage_limits::GetUsageLimitsOutput::user_info): User Information
20+
/// - [`free_trial_info(Option<FreeTrialInfo>)`](crate::operation::get_usage_limits::GetUsageLimitsOutput::free_trial_info): User's free trial info
1821
/// - On failure, responds with
1922
/// [`SdkError<GetUsageLimitsError>`](crate::operation::get_usage_limits::GetUsageLimitsError)
2023
pub fn get_usage_limits(&self) -> crate::operation::get_usage_limits::builders::GetUsageLimitsFluentBuilder {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ impl super::Client {
1616
/// [`ListAvailableModelsOutput`](crate::operation::list_available_models::ListAvailableModelsOutput)
1717
/// with field(s):
1818
/// - [`models(Vec::<Model>)`](crate::operation::list_available_models::ListAvailableModelsOutput::models): List of available models
19+
/// - [`default_model(Option<Model>)`](crate::operation::list_available_models::ListAvailableModelsOutput::default_model): Default model set by the client
1920
/// - [`next_token(Option<String>)`](crate::operation::list_available_models::ListAvailableModelsOutput::next_token): Token for retrieving the next page of results
2021
/// - On failure, responds with
2122
/// [`SdkError<ListAvailableModelsError>`](crate::operation::list_available_models::ListAvailableModelsError)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
/// [`ListAvailableSubscriptions`](crate::operation::list_available_subscriptions::builders::ListAvailableSubscriptionsFluentBuilder)
5+
/// operation.
6+
///
7+
/// - The fluent builder takes no input, just
8+
/// [`send`](crate::operation::list_available_subscriptions::builders::ListAvailableSubscriptionsFluentBuilder::send)
9+
/// it.
10+
/// - On success, responds with
11+
/// [`ListAvailableSubscriptionsOutput`](crate::operation::list_available_subscriptions::ListAvailableSubscriptionsOutput)
12+
/// with field(s):
13+
/// - [`subscription_plans(Vec::<SubscriptionPlan>)`](crate::operation::list_available_subscriptions::ListAvailableSubscriptionsOutput::subscription_plans): (undocumented)
14+
/// - On failure, responds with [`SdkError<ListAvailableSubscriptionsError>`](crate::operation::list_available_subscriptions::ListAvailableSubscriptionsError)
15+
pub fn list_available_subscriptions(
16+
&self,
17+
) -> crate::operation::list_available_subscriptions::builders::ListAvailableSubscriptionsFluentBuilder {
18+
crate::operation::list_available_subscriptions::builders::ListAvailableSubscriptionsFluentBuilder::new(
19+
self.handle.clone(),
20+
)
21+
}
22+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
/// [`SetUserPreference`](crate::operation::set_user_preference::builders::SetUserPreferenceFluentBuilder)
5+
/// operation.
6+
///
7+
/// - The fluent builder is configurable:
8+
/// - [`overage_configuration(OverageConfiguration)`](crate::operation::set_user_preference::builders::SetUserPreferenceFluentBuilder::overage_configuration) / [`set_overage_configuration(Option<OverageConfiguration>)`](crate::operation::set_user_preference::builders::SetUserPreferenceFluentBuilder::set_overage_configuration):<br>required: **false**<br>(undocumented)<br>
9+
/// - On success, responds with
10+
/// [`SetUserPreferenceOutput`](crate::operation::set_user_preference::SetUserPreferenceOutput)
11+
/// - On failure, responds with
12+
/// [`SdkError<SetUserPreferenceError>`](crate::operation::set_user_preference::SetUserPreferenceError)
13+
pub fn set_user_preference(
14+
&self,
15+
) -> crate::operation::set_user_preference::builders::SetUserPreferenceFluentBuilder {
16+
crate::operation::set_user_preference::builders::SetUserPreferenceFluentBuilder::new(self.handle.clone())
17+
}
18+
}

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

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,52 @@ impl From<crate::operation::list_available_profiles::ListAvailableProfilesError>
10911091
}
10921092
}
10931093
}
1094+
impl<R>
1095+
From<
1096+
::aws_smithy_runtime_api::client::result::SdkError<
1097+
crate::operation::list_available_subscriptions::ListAvailableSubscriptionsError,
1098+
R,
1099+
>,
1100+
> for Error
1101+
where
1102+
R: Send + Sync + std::fmt::Debug + 'static,
1103+
{
1104+
fn from(
1105+
err: ::aws_smithy_runtime_api::client::result::SdkError<
1106+
crate::operation::list_available_subscriptions::ListAvailableSubscriptionsError,
1107+
R,
1108+
>,
1109+
) -> Self {
1110+
match err {
1111+
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1112+
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1113+
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1114+
source: err.into(),
1115+
}),
1116+
}
1117+
}
1118+
}
1119+
impl From<crate::operation::list_available_subscriptions::ListAvailableSubscriptionsError> for Error {
1120+
fn from(err: crate::operation::list_available_subscriptions::ListAvailableSubscriptionsError) -> Self {
1121+
match err {
1122+
crate::operation::list_available_subscriptions::ListAvailableSubscriptionsError::AccessDeniedError(
1123+
inner,
1124+
) => Error::AccessDeniedError(inner),
1125+
crate::operation::list_available_subscriptions::ListAvailableSubscriptionsError::InternalServerError(
1126+
inner,
1127+
) => Error::InternalServerError(inner),
1128+
crate::operation::list_available_subscriptions::ListAvailableSubscriptionsError::ThrottlingError(inner) => {
1129+
Error::ThrottlingError(inner)
1130+
},
1131+
crate::operation::list_available_subscriptions::ListAvailableSubscriptionsError::ValidationError(inner) => {
1132+
Error::ValidationError(inner)
1133+
},
1134+
crate::operation::list_available_subscriptions::ListAvailableSubscriptionsError::Unhandled(inner) => {
1135+
Error::Unhandled(inner)
1136+
},
1137+
}
1138+
}
1139+
}
10941140
impl<R>
10951141
From<
10961142
::aws_smithy_runtime_api::client::result::SdkError<
@@ -1452,6 +1498,50 @@ impl From<crate::operation::send_telemetry_event::SendTelemetryEventError> for E
14521498
}
14531499
}
14541500
}
1501+
impl<R>
1502+
From<
1503+
::aws_smithy_runtime_api::client::result::SdkError<
1504+
crate::operation::set_user_preference::SetUserPreferenceError,
1505+
R,
1506+
>,
1507+
> for Error
1508+
where
1509+
R: Send + Sync + std::fmt::Debug + 'static,
1510+
{
1511+
fn from(
1512+
err: ::aws_smithy_runtime_api::client::result::SdkError<
1513+
crate::operation::set_user_preference::SetUserPreferenceError,
1514+
R,
1515+
>,
1516+
) -> Self {
1517+
match err {
1518+
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1519+
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1520+
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1521+
source: err.into(),
1522+
}),
1523+
}
1524+
}
1525+
}
1526+
impl From<crate::operation::set_user_preference::SetUserPreferenceError> for Error {
1527+
fn from(err: crate::operation::set_user_preference::SetUserPreferenceError) -> Self {
1528+
match err {
1529+
crate::operation::set_user_preference::SetUserPreferenceError::ValidationError(inner) => {
1530+
Error::ValidationError(inner)
1531+
},
1532+
crate::operation::set_user_preference::SetUserPreferenceError::AccessDeniedError(inner) => {
1533+
Error::AccessDeniedError(inner)
1534+
},
1535+
crate::operation::set_user_preference::SetUserPreferenceError::ThrottlingError(inner) => {
1536+
Error::ThrottlingError(inner)
1537+
},
1538+
crate::operation::set_user_preference::SetUserPreferenceError::InternalServerError(inner) => {
1539+
Error::InternalServerError(inner)
1540+
},
1541+
crate::operation::set_user_preference::SetUserPreferenceError::Unhandled(inner) => Error::Unhandled(inner),
1542+
}
1543+
}
1544+
}
14551545
impl<R>
14561546
From<
14571547
::aws_smithy_runtime_api::client::result::SdkError<

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ pub mod list_available_models;
6767
/// Types for the `ListAvailableProfiles` operation.
6868
pub mod list_available_profiles;
6969

70+
/// Types for the `ListAvailableSubscriptions` operation.
71+
pub mod list_available_subscriptions;
72+
7073
/// Types for the `ListCodeAnalysisFindings` operation.
7174
pub mod list_code_analysis_findings;
7275

@@ -91,6 +94,9 @@ pub mod resume_transformation;
9194
/// Types for the `SendTelemetryEvent` operation.
9295
pub mod send_telemetry_event;
9396

97+
/// Types for the `SetUserPreference` operation.
98+
pub mod set_user_preference;
99+
94100
/// Types for the `StartCodeAnalysis` operation.
95101
pub mod start_code_analysis;
96102

0 commit comments

Comments
 (0)