Skip to content

Commit

Permalink
Update SDK models
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-rust-ci committed Nov 1, 2024
1 parent dcd66c2 commit 3199538
Show file tree
Hide file tree
Showing 102 changed files with 8,345 additions and 541 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[workspace]
resolver = "2"
exclude = [
"examples/cross_service",
"examples/webassembly",
"examples/lambda",
"examples/examples",
"examples/test-utils",
"examples/lambda",
"examples/cross_service",
"tests/webassembly",
"tests/no-default-features"
]
Expand Down
6 changes: 3 additions & 3 deletions aws-models/bedrock-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -2005,7 +2005,7 @@
"min": 20,
"max": 2048
},
"smithy.api#pattern": "^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)$"
"smithy.api#pattern": "^(arn:aws(-[^:]{1,12})?:(bedrock|sagemaker):[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$"
}
},
"com.amazonaws.bedrockagent#BedrockEmbeddingModelConfiguration": {
Expand Down Expand Up @@ -2050,7 +2050,7 @@
"min": 1,
"max": 2048
},
"smithy.api#pattern": "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}::foundation-model/([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})|(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{1,20}):(|[0-9]{12}):inference-profile/[a-zA-Z0-9-:.]+)$"
"smithy.api#pattern": "^(arn:aws(-[^:]{1,12})?:(bedrock):[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$"
}
},
"com.amazonaws.bedrockagent#BucketOwnerAccountId": {
Expand Down Expand Up @@ -13621,7 +13621,7 @@
"embeddingModelArn": {
"target": "com.amazonaws.bedrockagent#BedrockEmbeddingModelArn",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.</p>",
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.</p>",
"smithy.api#required": {}
}
},
Expand Down
2 changes: 1 addition & 1 deletion aws-models/cloudwatch-logs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3386,7 +3386,7 @@
"traits": {
"smithy.api#length": {
"min": 2,
"max": 3
"max": 4
}
}
},
Expand Down
372 changes: 371 additions & 1 deletion aws-models/docdb-elastic.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions aws-models/sdk-endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -16192,6 +16192,7 @@
"hostname" : "rekognition-fips.ca-central-1.amazonaws.com"
},
"eu-central-1" : { },
"eu-south-2" : { },
"eu-west-1" : { },
"eu-west-2" : { },
"il-central-1" : { },
Expand Down
375 changes: 368 additions & 7 deletions aws-models/taxsettings.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/cross_service/rest_ses/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ tracing-bunyan-formatter = "0.3.4"
tracing-log = "0.1.3"
xlsxwriter = "0.6.0"
aws-config= { version = "1.5.9", path = "../../../sdk/aws-config" }
aws-sdk-cloudwatchlogs= { version = "1.55.0", path = "../../../sdk/cloudwatchlogs" }
aws-sdk-cloudwatchlogs= { version = "1.56.0", path = "../../../sdk/cloudwatchlogs" }
aws-sdk-rdsdata= { version = "1.48.0", path = "../../../sdk/rdsdata" }
aws-sdk-ses= { version = "1.50.0", path = "../../../sdk/ses" }
aws-smithy-types= { version = "1.2.8", path = "../../../sdk/aws-smithy-types" }
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/cloudwatchlogs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tracing = "0.1.40"
async-recursion = "1.0.5"
futures = "0.3.30"
aws-config= { version = "1.5.9", path = "../../../sdk/aws-config", features = ["behavior-version-latest"] }
aws-sdk-cloudwatchlogs= { version = "1.55.0", path = "../../../sdk/cloudwatchlogs", features = ["test-util"] }
aws-sdk-cloudwatchlogs= { version = "1.56.0", path = "../../../sdk/cloudwatchlogs", features = ["test-util"] }
aws-types= { version = "1.3.3", path = "../../../sdk/aws-types" }

[dependencies.tokio]
Expand Down
2 changes: 1 addition & 1 deletion sdk/bedrockagent/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
[package]
name = "aws-sdk-bedrockagent"
version = "1.59.0"
version = "1.60.0"
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
description = "AWS SDK for Agents for Amazon Bedrock"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion sdk/bedrockagent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ your project, add the following to your **Cargo.toml** file:
```toml
[dependencies]
aws-config = { version = "1.1.7", features = ["behavior-version-latest"] }
aws-sdk-bedrockagent = "1.59.0"
aws-sdk-bedrockagent = "1.60.0"
tokio = { version = "1", features = ["full"] }
```

Expand Down
2 changes: 1 addition & 1 deletion sdk/bedrockagent/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
//! ```toml
//! [dependencies]
//! aws-config = { version = "1.1.7", features = ["behavior-version-latest"] }
//! aws-sdk-bedrockagent = "1.59.0"
//! aws-sdk-bedrockagent = "1.60.0"
//! tokio = { version = "1", features = ["full"] }
//! ```
//!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct VectorKnowledgeBaseConfiguration {
/// <p>The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.</p>
/// <p>The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.</p>
pub embedding_model_arn: ::std::string::String,
/// <p>The embeddings model configuration details for the vector model used in Knowledge Base.</p>
pub embedding_model_configuration: ::std::option::Option<crate::types::EmbeddingModelConfiguration>,
}
impl VectorKnowledgeBaseConfiguration {
/// <p>The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.</p>
/// <p>The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.</p>
pub fn embedding_model_arn(&self) -> &str {
use std::ops::Deref;
self.embedding_model_arn.deref()
Expand All @@ -35,18 +35,18 @@ pub struct VectorKnowledgeBaseConfigurationBuilder {
pub(crate) embedding_model_configuration: ::std::option::Option<crate::types::EmbeddingModelConfiguration>,
}
impl VectorKnowledgeBaseConfigurationBuilder {
/// <p>The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.</p>
/// <p>The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.</p>
/// This field is required.
pub fn embedding_model_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.embedding_model_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.</p>
/// <p>The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.</p>
pub fn set_embedding_model_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.embedding_model_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.</p>
/// <p>The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.</p>
pub fn get_embedding_model_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.embedding_model_arn
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/cloudwatchlogs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
[package]
name = "aws-sdk-cloudwatchlogs"
version = "1.55.0"
version = "1.56.0"
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
description = "AWS SDK for Amazon CloudWatch Logs"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion sdk/cloudwatchlogs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ your project, add the following to your **Cargo.toml** file:
```toml
[dependencies]
aws-config = { version = "1.1.7", features = ["behavior-version-latest"] }
aws-sdk-cloudwatchlogs = "1.55.0"
aws-sdk-cloudwatchlogs = "1.56.0"
tokio = { version = "1", features = ["full"] }
```

Expand Down
2 changes: 1 addition & 1 deletion sdk/cloudwatchlogs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
//! ```toml
//! [dependencies]
//! aws-config = { version = "1.1.7", features = ["behavior-version-latest"] }
//! aws-sdk-cloudwatchlogs = "1.55.0"
//! aws-sdk-cloudwatchlogs = "1.56.0"
//! tokio = { version = "1", features = ["full"] }
//! ```
//!
Expand Down
2 changes: 1 addition & 1 deletion sdk/docdbelastic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
[package]
name = "aws-sdk-docdbelastic"
version = "1.49.0"
version = "1.50.0"
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
description = "AWS SDK for Amazon DocumentDB Elastic Clusters"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion sdk/docdbelastic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ your project, add the following to your **Cargo.toml** file:
```toml
[dependencies]
aws-config = { version = "1.1.7", features = ["behavior-version-latest"] }
aws-sdk-docdbelastic = "1.49.0"
aws-sdk-docdbelastic = "1.50.0"
tokio = { version = "1", features = ["full"] }
```

Expand Down
16 changes: 11 additions & 5 deletions sdk/docdbelastic/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ pub(crate) struct Handle {
/// # Using the `Client`
///
/// A client has a function for every operation that can be performed by the service.
/// For example, the [`CopyClusterSnapshot`](crate::operation::copy_cluster_snapshot) operation has
/// a [`Client::copy_cluster_snapshot`], function which returns a builder for that operation.
/// For example, the [`ApplyPendingMaintenanceAction`](crate::operation::apply_pending_maintenance_action) operation has
/// a [`Client::apply_pending_maintenance_action`], function which returns a builder for that operation.
/// The fluent builder ultimately has a `send()` function that returns an async future that
/// returns a result, as illustrated below:
///
/// ```rust,ignore
/// let result = client.copy_cluster_snapshot()
/// .snapshot_arn("example")
/// let result = client.apply_pending_maintenance_action()
/// .resource_arn("example")
/// .send()
/// .await;
/// ```
Expand Down Expand Up @@ -136,6 +136,8 @@ impl Client {
}
}

mod apply_pending_maintenance_action;

mod copy_cluster_snapshot;

mod create_cluster;
Expand All @@ -153,7 +155,7 @@ mod create_cluster_snapshot;
/// # let client: aws_sdk_docdbelastic::Client = unimplemented!();
/// use ::http::header::{HeaderName, HeaderValue};
///
/// let result = client.copy_cluster_snapshot()
/// let result = client.apply_pending_maintenance_action()
/// .customize()
/// .mutate_request(|req| {
/// // Add `x-example-header` with value
Expand All @@ -177,10 +179,14 @@ mod get_cluster;

mod get_cluster_snapshot;

mod get_pending_maintenance_action;

mod list_cluster_snapshots;

mod list_clusters;

mod list_pending_maintenance_actions;

mod list_tags_for_resource;

mod restore_cluster_from_snapshot;
Expand Down
18 changes: 18 additions & 0 deletions sdk/docdbelastic/src/client/apply_pending_maintenance_action.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ApplyPendingMaintenanceAction`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The Amazon DocumentDB Amazon Resource Name (ARN) of the resource to which the pending maintenance action applies.</p><br>
/// - [`apply_action(impl Into<String>)`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::apply_action) / [`set_apply_action(Option<String>)`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::set_apply_action):<br>required: **true**<br><p>The pending maintenance action to apply to the resource.</p> <p>Valid actions are:</p> <ul> <li> <p><code>ENGINE_UPDATE<i></i> </code></p></li> <li> <p><code>ENGINE_UPGRADE</code></p></li> <li> <p><code>SECURITY_UPDATE</code></p></li> <li> <p><code>OS_UPDATE</code></p></li> <li> <p><code>MASTER_USER_PASSWORD_UPDATE</code></p></li> </ul><br>
/// - [`opt_in_type(OptInType)`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::opt_in_type) / [`set_opt_in_type(Option<OptInType>)`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::set_opt_in_type):<br>required: **true**<br><p>A value that specifies the type of opt-in request, or undoes an opt-in request. An opt-in request of type <code>IMMEDIATE</code> can't be undone.</p><br>
/// - [`apply_on(impl Into<String>)`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::apply_on) / [`set_apply_on(Option<String>)`](crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::set_apply_on):<br>required: **false**<br><p>A specific date to apply the pending maintenance action. Required if opt-in-type is <code>APPLY_ON</code>. Format: <code>yyyy/MM/dd HH:mm-yyyy/MM/dd HH:mm</code></p><br>
/// - On success, responds with [`ApplyPendingMaintenanceActionOutput`](crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionOutput) with field(s):
/// - [`resource_pending_maintenance_action(Option<ResourcePendingMaintenanceAction>)`](crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionOutput::resource_pending_maintenance_action): <p>The output of the pending maintenance action being applied.</p>
/// - On failure, responds with [`SdkError<ApplyPendingMaintenanceActionError>`](crate::operation::apply_pending_maintenance_action::ApplyPendingMaintenanceActionError)
pub fn apply_pending_maintenance_action(
&self,
) -> crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder {
crate::operation::apply_pending_maintenance_action::builders::ApplyPendingMaintenanceActionFluentBuilder::new(self.handle.clone())
}
}
15 changes: 15 additions & 0 deletions sdk/docdbelastic/src/client/get_pending_maintenance_action.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetPendingMaintenanceAction`](crate::operation::get_pending_maintenance_action::builders::GetPendingMaintenanceActionFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::operation::get_pending_maintenance_action::builders::GetPendingMaintenanceActionFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::get_pending_maintenance_action::builders::GetPendingMaintenanceActionFluentBuilder::set_resource_arn):<br>required: **true**<br><p>Retrieves pending maintenance actions for a specific Amazon Resource Name (ARN).</p><br>
/// - On success, responds with [`GetPendingMaintenanceActionOutput`](crate::operation::get_pending_maintenance_action::GetPendingMaintenanceActionOutput) with field(s):
/// - [`resource_pending_maintenance_action(Option<ResourcePendingMaintenanceAction>)`](crate::operation::get_pending_maintenance_action::GetPendingMaintenanceActionOutput::resource_pending_maintenance_action): <p>Provides information about a pending maintenance action for a resource.</p>
/// - On failure, responds with [`SdkError<GetPendingMaintenanceActionError>`](crate::operation::get_pending_maintenance_action::GetPendingMaintenanceActionError)
pub fn get_pending_maintenance_action(
&self,
) -> crate::operation::get_pending_maintenance_action::builders::GetPendingMaintenanceActionFluentBuilder {
crate::operation::get_pending_maintenance_action::builders::GetPendingMaintenanceActionFluentBuilder::new(self.handle.clone())
}
}
18 changes: 18 additions & 0 deletions sdk/docdbelastic/src/client/list_pending_maintenance_actions.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListPendingMaintenanceActions`](crate::operation::list_pending_maintenance_actions::builders::ListPendingMaintenanceActionsFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_pending_maintenance_actions::builders::ListPendingMaintenanceActionsFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`next_token(impl Into<String>)`](crate::operation::list_pending_maintenance_actions::builders::ListPendingMaintenanceActionsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_pending_maintenance_actions::builders::ListPendingMaintenanceActionsFluentBuilder::set_next_token):<br>required: **false**<br><p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>maxResults</code>.</p><br>
/// - [`max_results(i32)`](crate::operation::list_pending_maintenance_actions::builders::ListPendingMaintenanceActionsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_pending_maintenance_actions::builders::ListPendingMaintenanceActionsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to include in the response. If more records exist than the specified <code>maxResults</code> value, a pagination token (marker) is included in the response so that the remaining results can be retrieved.</p><br>
/// - On success, responds with [`ListPendingMaintenanceActionsOutput`](crate::operation::list_pending_maintenance_actions::ListPendingMaintenanceActionsOutput) with field(s):
/// - [`resource_pending_maintenance_actions(Vec::<ResourcePendingMaintenanceAction>)`](crate::operation::list_pending_maintenance_actions::ListPendingMaintenanceActionsOutput::resource_pending_maintenance_actions): <p>Provides information about a pending maintenance action for a resource.</p>
/// - [`next_token(Option<String>)`](crate::operation::list_pending_maintenance_actions::ListPendingMaintenanceActionsOutput::next_token): <p>An optional pagination token provided by a previous request. If this parameter is displayed, the responses will include only records beyond the marker, up to the value specified by <code>maxResults</code>.</p>
/// - On failure, responds with [`SdkError<ListPendingMaintenanceActionsError>`](crate::operation::list_pending_maintenance_actions::ListPendingMaintenanceActionsError)
pub fn list_pending_maintenance_actions(
&self,
) -> crate::operation::list_pending_maintenance_actions::builders::ListPendingMaintenanceActionsFluentBuilder {
crate::operation::list_pending_maintenance_actions::builders::ListPendingMaintenanceActionsFluentBuilder::new(self.handle.clone())
}
}
Loading

0 comments on commit 3199538

Please sign in to comment.