Skip to content

Commit

Permalink
Merge pull request #53 from awslabs/release-5-6
Browse files Browse the repository at this point in the history
SDK v0.8 Import from smithy-rs
  • Loading branch information
rcoh authored May 6, 2021
2 parents 5ba2948 + ef10101 commit 7e43b19
Show file tree
Hide file tree
Showing 74 changed files with 23,540 additions and 21,902 deletions.
2 changes: 1 addition & 1 deletion sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[workspace]
members = [
"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"
"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"
]
36 changes: 36 additions & 0 deletions sdk/apigateway/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5722,6 +5722,15 @@ pub mod fluent_builders {
self.handle.client.call(op).await
}

/// <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>
pub fn body(mut self, inp: smithy_types::Blob) -> Self {
self.inner = self.inner.body(inp);
self
}
pub fn set_body(mut self, inp: std::option::Option<smithy_types::Blob>) -> Self {
self.inner = self.inner.set_body(inp);
self
}
/// <p>A query parameter to specify the input format to imported API keys. Currently, only the <code>csv</code> format is supported.</p>
pub fn format(mut self, inp: crate::model::ApiKeysFormat) -> Self {
self.inner = self.inner.format(inp);
Expand Down Expand Up @@ -5797,6 +5806,15 @@ pub mod fluent_builders {
self.inner = self.inner.set_fail_on_warnings(inp);
self
}
/// <p>[Required] Raw byte array representing the to-be-imported documentation parts. To import from an OpenAPI file, this is a JSON object.</p>
pub fn body(mut self, inp: smithy_types::Blob) -> Self {
self.inner = self.inner.body(inp);
self
}
pub fn set_body(mut self, inp: std::option::Option<smithy_types::Blob>) -> Self {
self.inner = self.inner.set_body(inp);
self
}
}

pub struct ImportRestApi {
Expand Down Expand Up @@ -5862,6 +5880,15 @@ pub mod fluent_builders {
self.inner = self.inner.set_parameters(inp);
self
}
/// <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>
pub fn body(mut self, inp: smithy_types::Blob) -> Self {
self.inner = self.inner.body(inp);
self
}
pub fn set_body(mut self, inp: std::option::Option<smithy_types::Blob>) -> Self {
self.inner = self.inner.set_body(inp);
self
}
}

pub struct PutGatewayResponse {
Expand Down Expand Up @@ -6652,6 +6679,15 @@ pub mod fluent_builders {
self.inner = self.inner.set_parameters(inp);
self
}
/// <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>
pub fn body(mut self, inp: smithy_types::Blob) -> Self {
self.inner = self.inner.body(inp);
self
}
pub fn set_body(mut self, inp: std::option::Option<smithy_types::Blob>) -> Self {
self.inner = self.inner.set_body(inp);
self
}
}

pub struct TagResource {
Expand Down
14 changes: 7 additions & 7 deletions sdk/apigateway/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10117,7 +10117,7 @@ impl std::error::Error for UnauthorizedError {}
pub mod unauthorized_error {
/// A builder for [`UnauthorizedError`](crate::error::UnauthorizedError)
#[non_exhaustive]
#[derive(Debug, Clone, Default)]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
message: std::option::Option<std::string::String>,
}
Expand Down Expand Up @@ -10185,7 +10185,7 @@ impl std::error::Error for TooManyRequestsError {}
pub mod too_many_requests_error {
/// A builder for [`TooManyRequestsError`](crate::error::TooManyRequestsError)
#[non_exhaustive]
#[derive(Debug, Clone, Default)]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
retry_after_seconds: std::option::Option<std::string::String>,
message: std::option::Option<std::string::String>,
Expand Down Expand Up @@ -10261,7 +10261,7 @@ impl std::error::Error for NotFoundError {}
pub mod not_found_error {
/// A builder for [`NotFoundError`](crate::error::NotFoundError)
#[non_exhaustive]
#[derive(Debug, Clone, Default)]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
message: std::option::Option<std::string::String>,
}
Expand Down Expand Up @@ -10324,7 +10324,7 @@ impl std::error::Error for ConflictError {}
pub mod conflict_error {
/// A builder for [`ConflictError`](crate::error::ConflictError)
#[non_exhaustive]
#[derive(Debug, Clone, Default)]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
message: std::option::Option<std::string::String>,
}
Expand Down Expand Up @@ -10387,7 +10387,7 @@ impl std::error::Error for BadRequestError {}
pub mod bad_request_error {
/// A builder for [`BadRequestError`](crate::error::BadRequestError)
#[non_exhaustive]
#[derive(Debug, Clone, Default)]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
message: std::option::Option<std::string::String>,
}
Expand Down Expand Up @@ -10455,7 +10455,7 @@ impl std::error::Error for LimitExceededError {}
pub mod limit_exceeded_error {
/// A builder for [`LimitExceededError`](crate::error::LimitExceededError)
#[non_exhaustive]
#[derive(Debug, Clone, Default)]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
retry_after_seconds: std::option::Option<std::string::String>,
message: std::option::Option<std::string::String>,
Expand Down Expand Up @@ -10536,7 +10536,7 @@ impl std::error::Error for ServiceUnavailableError {}
pub mod service_unavailable_error {
/// A builder for [`ServiceUnavailableError`](crate::error::ServiceUnavailableError)
#[non_exhaustive]
#[derive(Debug, Clone, Default)]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
retry_after_seconds: std::option::Option<std::string::String>,
message: std::option::Option<std::string::String>,
Expand Down
Loading

0 comments on commit 7e43b19

Please sign in to comment.