Skip to content

Commit 7e43b19

Browse files
authored
Merge pull request #53 from awslabs/release-5-6
SDK v0.8 Import from smithy-rs
2 parents 5ba2948 + ef10101 commit 7e43b19

File tree

74 files changed

+23540
-21902
lines changed

Some content is hidden

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

74 files changed

+23540
-21902
lines changed

sdk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[workspace]
22
members = [
3-
"apigateway","polly","secretsmanager","qldbsession","kms","kinesis","qldb","dynamodb","smithy-types","smithy-http","smithy-http-tower","protocol-test-helpers","aws-auth","aws-endpoint","aws-types","aws-hyper","aws-sig-auth","aws-http","examples/secretsmanager-helloworld","examples/polly-list-lexicons","examples/qldb-list-ledgers","examples/dynamo-helloworld","examples/polly-put-lexicon","examples/dynamo-delete-table","examples/polly-describe-voices","examples/polly-helloworld","examples/dynamo-movies","examples/kms-helloworld","examples/secretsmanager-create-secret","examples/dynamo-list-items","examples/qldbsession-helloworld","examples/dynamo-list-tables","examples/secretsmanager-get-secret-value","examples/secretsmanager-list-secrets","examples/dynamo-add-item","examples/dynamo-delete-item","examples/polly-synthesize-speech","examples/polly-generate-speech","examples/dynamo-create-table"
3+
"dynamodb","kinesis","apigateway","qldb","polly","kms","qldbsession","secretsmanager","smithy-types","smithy-http","smithy-http-tower","protocol-test-helpers","aws-auth","aws-endpoint","aws-types","aws-hyper","aws-sig-auth","aws-http","examples/dynamo-delete-item","examples/dynamo-list-items","examples/kinesis-list-streams","examples/secretsmanager-create-secret","examples/secretsmanager-get-secret-value","examples/polly-describe-voices","examples/secretsmanager-helloworld","examples/polly-synthesize-speech","examples/dynamo-create-table","examples/polly-put-lexicon","examples/dynamo-list-tables","examples/qldbsession-helloworld","examples/dynamo-helloworld","examples/kinesis-create-stream","examples/polly-helloworld","examples/secretsmanager-list-secrets","examples/polly-list-lexicons","examples/kms-helloworld","examples/kinesis-describe-stream","examples/dynamo-delete-table","examples/qldb-list-ledgers","examples/dynamo-add-item","examples/kinesis-delete-stream","examples/dynamo-movies","examples/kinesis-put-record"
44
]

sdk/apigateway/src/client.rs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5722,6 +5722,15 @@ pub mod fluent_builders {
57225722
self.handle.client.call(op).await
57235723
}
57245724

5725+
/// <p>The payload of the POST request to import API keys. For the payload format, see <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/api-key-file-format.html">API Key File Format</a>.</p>
5726+
pub fn body(mut self, inp: smithy_types::Blob) -> Self {
5727+
self.inner = self.inner.body(inp);
5728+
self
5729+
}
5730+
pub fn set_body(mut self, inp: std::option::Option<smithy_types::Blob>) -> Self {
5731+
self.inner = self.inner.set_body(inp);
5732+
self
5733+
}
57255734
/// <p>A query parameter to specify the input format to imported API keys. Currently, only the <code>csv</code> format is supported.</p>
57265735
pub fn format(mut self, inp: crate::model::ApiKeysFormat) -> Self {
57275736
self.inner = self.inner.format(inp);
@@ -5797,6 +5806,15 @@ pub mod fluent_builders {
57975806
self.inner = self.inner.set_fail_on_warnings(inp);
57985807
self
57995808
}
5809+
/// <p>[Required] Raw byte array representing the to-be-imported documentation parts. To import from an OpenAPI file, this is a JSON object.</p>
5810+
pub fn body(mut self, inp: smithy_types::Blob) -> Self {
5811+
self.inner = self.inner.body(inp);
5812+
self
5813+
}
5814+
pub fn set_body(mut self, inp: std::option::Option<smithy_types::Blob>) -> Self {
5815+
self.inner = self.inner.set_body(inp);
5816+
self
5817+
}
58005818
}
58015819

58025820
pub struct ImportRestApi {
@@ -5862,6 +5880,15 @@ pub mod fluent_builders {
58625880
self.inner = self.inner.set_parameters(inp);
58635881
self
58645882
}
5883+
/// <p>[Required] The POST request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 6MB.</p>
5884+
pub fn body(mut self, inp: smithy_types::Blob) -> Self {
5885+
self.inner = self.inner.body(inp);
5886+
self
5887+
}
5888+
pub fn set_body(mut self, inp: std::option::Option<smithy_types::Blob>) -> Self {
5889+
self.inner = self.inner.set_body(inp);
5890+
self
5891+
}
58655892
}
58665893

58675894
pub struct PutGatewayResponse {
@@ -6652,6 +6679,15 @@ pub mod fluent_builders {
66526679
self.inner = self.inner.set_parameters(inp);
66536680
self
66546681
}
6682+
/// <p>[Required] The PUT request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 6MB.</p>
6683+
pub fn body(mut self, inp: smithy_types::Blob) -> Self {
6684+
self.inner = self.inner.body(inp);
6685+
self
6686+
}
6687+
pub fn set_body(mut self, inp: std::option::Option<smithy_types::Blob>) -> Self {
6688+
self.inner = self.inner.set_body(inp);
6689+
self
6690+
}
66556691
}
66566692

66576693
pub struct TagResource {

sdk/apigateway/src/error.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10117,7 +10117,7 @@ impl std::error::Error for UnauthorizedError {}
1011710117
pub mod unauthorized_error {
1011810118
/// A builder for [`UnauthorizedError`](crate::error::UnauthorizedError)
1011910119
#[non_exhaustive]
10120-
#[derive(Debug, Clone, Default)]
10120+
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
1012110121
pub struct Builder {
1012210122
message: std::option::Option<std::string::String>,
1012310123
}
@@ -10185,7 +10185,7 @@ impl std::error::Error for TooManyRequestsError {}
1018510185
pub mod too_many_requests_error {
1018610186
/// A builder for [`TooManyRequestsError`](crate::error::TooManyRequestsError)
1018710187
#[non_exhaustive]
10188-
#[derive(Debug, Clone, Default)]
10188+
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
1018910189
pub struct Builder {
1019010190
retry_after_seconds: std::option::Option<std::string::String>,
1019110191
message: std::option::Option<std::string::String>,
@@ -10261,7 +10261,7 @@ impl std::error::Error for NotFoundError {}
1026110261
pub mod not_found_error {
1026210262
/// A builder for [`NotFoundError`](crate::error::NotFoundError)
1026310263
#[non_exhaustive]
10264-
#[derive(Debug, Clone, Default)]
10264+
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
1026510265
pub struct Builder {
1026610266
message: std::option::Option<std::string::String>,
1026710267
}
@@ -10324,7 +10324,7 @@ impl std::error::Error for ConflictError {}
1032410324
pub mod conflict_error {
1032510325
/// A builder for [`ConflictError`](crate::error::ConflictError)
1032610326
#[non_exhaustive]
10327-
#[derive(Debug, Clone, Default)]
10327+
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
1032810328
pub struct Builder {
1032910329
message: std::option::Option<std::string::String>,
1033010330
}
@@ -10387,7 +10387,7 @@ impl std::error::Error for BadRequestError {}
1038710387
pub mod bad_request_error {
1038810388
/// A builder for [`BadRequestError`](crate::error::BadRequestError)
1038910389
#[non_exhaustive]
10390-
#[derive(Debug, Clone, Default)]
10390+
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
1039110391
pub struct Builder {
1039210392
message: std::option::Option<std::string::String>,
1039310393
}
@@ -10455,7 +10455,7 @@ impl std::error::Error for LimitExceededError {}
1045510455
pub mod limit_exceeded_error {
1045610456
/// A builder for [`LimitExceededError`](crate::error::LimitExceededError)
1045710457
#[non_exhaustive]
10458-
#[derive(Debug, Clone, Default)]
10458+
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
1045910459
pub struct Builder {
1046010460
retry_after_seconds: std::option::Option<std::string::String>,
1046110461
message: std::option::Option<std::string::String>,
@@ -10536,7 +10536,7 @@ impl std::error::Error for ServiceUnavailableError {}
1053610536
pub mod service_unavailable_error {
1053710537
/// A builder for [`ServiceUnavailableError`](crate::error::ServiceUnavailableError)
1053810538
#[non_exhaustive]
10539-
#[derive(Debug, Clone, Default)]
10539+
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
1054010540
pub struct Builder {
1054110541
retry_after_seconds: std::option::Option<std::string::String>,
1054210542
message: std::option::Option<std::string::String>,

0 commit comments

Comments
 (0)