Skip to content

Commit 1b923f8

Browse files
authored
Prepare release v0.0.7-alpha (#104)
* Prepare release * Update services supported * Import v0.12 from smithy-rs
1 parent c8ebdce commit 1b923f8

File tree

306 files changed

+492172
-3698
lines changed

Some content is hidden

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

306 files changed

+492172
-3698
lines changed

AWS_SERVICES_SUPPORTED.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# AWS Services Supported
32

43
The alpha SDK for Rust currently supports the checked services below. If you want to see a particular service added, please add your "+1" to the GitHub issue corresponding to the service. If the Issue doesn't exist yet, feel free to create one! This will help us prioritize adding new services to the SDK.
@@ -16,6 +15,15 @@ The alpha SDK for Rust currently supports the checked services below. If you wan
1615
- [x] [Amazon SSM](https://github.com/awslabs/aws-sdk-rust/issues/22)
1716
- [x] [Amazon SQS](https://github.com/awslabs/aws-sdk-rust/issues/19)
1817
- [x] [Amazon ECS](https://github.com/awslabs/aws-sdk-rust/issues/28)
18+
- [x] Amazon Batch
19+
- [x] [Amazon Route 53](https://github.com/awslabs/aws-sdk-rust/issues/35)
20+
- [x] [Amazon RDS](https://github.com/awslabs/aws-sdk-rust/issues/36)
21+
- [x] Amazon Rds-Data
22+
- [x] [Amazon IAM](https://github.com/awslabs/aws-sdk-rust/issues/21)
23+
- [x] [Amazon SNS](https://github.com/awslabs/aws-sdk-rust/issues/26)
24+
- [x] [Amazon Sts](https://github.com/awslabs/aws-sdk-rust/issues/17)
25+
- [x] Amazon Medialive
26+
- [x] Amazon Mediapackage
1927

2028
------
2129
- [ ] Amazon Access Analyzer
@@ -37,7 +45,6 @@ The alpha SDK for Rust currently supports the checked services below. If you wan
3745
- [ ] Amazon Autoscaling-Plans
3846
- [ ] Amazon Awsmigrationhub
3947
- [ ] Amazon Backup
40-
- [ ] Amazon Batch
4148
- [ ] Amazon Braket
4249
- [ ] Amazon Budgets
4350
- [ ] Amazon Ce
@@ -119,7 +126,6 @@ The alpha SDK for Rust currently supports the checked services below. If you wan
119126
- [ ] Amazon Guardduty
120127
- [ ] Amazon Health
121128
- [ ] Amazon Honeycode
122-
- [ ] [Amazon IAM](https://github.com/awslabs/aws-sdk-rust/issues/21)
123129
- [ ] Amazon Identitystore
124130
- [ ] Amazon Imagebuilder
125131
- [ ] Amazon Inspector
@@ -157,8 +163,6 @@ The alpha SDK for Rust currently supports the checked services below. If you wan
157163
- [ ] Amazon Marketplacecommerceanalytics
158164
- [ ] Amazon Mediaconnect
159165
- [ ] Amazon Mediaconvert
160-
- [ ] Amazon Medialive
161-
- [ ] Amazon Mediapackage
162166
- [ ] Amazon Mediapackage-Vod
163167
- [ ] Amazon Mediastore
164168
- [ ] Amazon Mediastore-Data
@@ -183,23 +187,18 @@ The alpha SDK for Rust currently supports the checked services below. If you wan
183187
- [ ] Amazon Pinpoint
184188
- [ ] Amazon Pinpoint-Email
185189
- [ ] Amazon Pricing
186-
187190
- [ ] Amazon Quicksight
188191
- [ ] Amazon RAM
189-
- [ ] [Amazon RDS](https://github.com/awslabs/aws-sdk-rust/issues/36)
190-
- [ ] Amazon Rds-Data
191192
- [ ] Amazon Redshift
192193
- [ ] Amazon Redshift-Data
193194
- [ ] Amazon Rekognition
194195
- [ ] Amazon Resource-Groups
195196
- [ ] Amazon Resourcegroupstaggingapi
196197
- [ ] Amazon Robomaker
197-
- [ ] [Amazon Route 53](https://github.com/awslabs/aws-sdk-rust/issues/35)
198198
- [ ] Amazon Route53Domains
199199
- [ ] Amazon Route53Resolver
200200
- [ ] Amazon Runtime.Lex
201201
- [ ] Amazon Runtime.Sagemaker
202-
203202
- [ ] Amazon S3Control
204203
- [ ] Amazon S3Outposts
205204
- [ ] Amazon Sagemaker
@@ -218,14 +217,12 @@ The alpha SDK for Rust currently supports the checked services below. If you wan
218217
- [ ] Amazon SMS
219218
- [ ] Amazon Sms-Voice
220219
- [ ] Amazon Snowball
221-
- [ ] [Amazon SNS](https://github.com/awslabs/aws-sdk-rust/issues/26)
222220
- [ ] Amazon SSO
223221
- [ ] Amazon Sso-Admin
224222
- [ ] Amazon Sso-Oidc
225223
- [ ] Amazon States
226224
- [ ] Amazon Storagegateway
227225
- [ ] Amazon Streams.Dynamodb
228-
- [ ] [Amazon Sts](https://github.com/awslabs/aws-sdk-rust/issues/17)
229226
- [ ] Amazon Support
230227
- [ ] Amazon Swf
231228
- [ ] Amazon Synthetics

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# The AWS SDK for Rust [![Docs](https://img.shields.io/badge/docs-v0.0.6--alpha-blue)](https://awslabs.github.io/aws-sdk-rust/)
1+
# The AWS SDK for Rust [![Docs](https://img.shields.io/badge/docs-v0.0.7--alpha-blue)](https://awslabs.github.io/aws-sdk-rust/)
22

33
This repo contains the new AWS SDK for Rust and its [public roadmap](https://github.com/awslabs/aws-sdk-rust/projects/1)
44

@@ -15,7 +15,7 @@ The new AWS SDK for Rust is built with one crate per AWS service. [Tokio](https:
1515

1616
```toml
1717
[dependencies]
18-
dynamodb = { git = "https://github.com/awslabs/aws-sdk-rust", tag = "v0.0.6-alpha", package = "aws-sdk-dynamodb" }
18+
dynamodb = { git = "https://github.com/awslabs/aws-sdk-rust", tag = "v0.0.7-alpha", package = "aws-sdk-dynamodb" }
1919
tokio = { version = "1", features = ["full"] }
2020
```
2121
3. Provide your AWS credentials as environment variables:
@@ -25,13 +25,13 @@ tokio = { version = "1", features = ["full"] }
2525
```bash
2626
export AWS_ACCESS_KEY_ID=...
2727
export AWS_SECRET_ACCESS_KEY=...
28-
export AWS_DEFAULT_REGION=... # eg. us-east-1
28+
export AWS_REGION=... # eg. us-east-1
2929
```
3030
**Windows**
3131
```cmd
3232
set AWS_ACCESS_KEY_ID=...
3333
set AWS_SECRET_ACCESS_KEY=...
34-
set AWS_DEFAULT_REGION=... # eg. us-east-1
34+
set AWS_REGION=... # eg. us-east-1
3535
```
3636

3737
4. Make a request using DynamoDB

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-
"qldb","qldbsession","sqs","secretsmanager","kms","dynamodb","kinesis","polly","ecs","ssm","lambda","apigateway","s3","smithy-types","smithy-json","smithy-query","smithy-xml","smithy-http","smithy-http-tower","protocol-test-helpers","aws-auth","aws-endpoint","aws-types","aws-hyper","aws-sig-auth","aws-http","examples/lambda-list-functions","examples/polly-synthesize-speech","examples/secretsmanager-helloworld","examples/polly-describe-voices","examples/ssm-put-parameter","examples/polly-list-lexicons","examples/kinesis-create-stream","examples/polly-helloworld","examples/lambda-invoke-function","examples/ecs","examples/sqs","examples/kinesis-list-streams","examples/qldbsession-helloworld","examples/kinesis-describe-stream","examples/dynamo-create-table","examples/dynamo-list-items","examples/kinesis-put-record","examples/secretsmanager-get-secret-value","examples/dynamo-movies","examples/secretsmanager-create-secret","examples/dynamo-delete-item","examples/kinesis-delete-stream","examples/secretsmanager-list-secrets","examples/s3-helloworld","examples/dynamo-add-item","examples/dynamo-delete-table","examples/polly-put-lexicon","examples/dynamo-helloworld","examples/dynamo-list-tables","examples/kms-helloworld","examples/qldb-list-ledgers"
3+
"sns","qldb","qldbsession","sqs","route53","sts","secretsmanager","kms","rdsdata","dynamodb","kinesis","batch","polly","ecs","ssm","rds","lambda","apigateway","mediapackage","medialive","iam","s3","smithy-types","smithy-json","smithy-query","smithy-xml","smithy-http","smithy-http-tower","protocol-test-helpers","aws-auth","aws-endpoint","aws-types","aws-hyper","aws-sig-auth","aws-http","examples/lambda-list-functions","examples/polly-synthesize-speech","examples/secretsmanager-helloworld","examples/polly-describe-voices","examples/ssm-put-parameter","examples/medialive-helloworld","examples/polly-list-lexicons","examples/kinesis-create-stream","examples/polly-helloworld","examples/lambda-invoke-function","examples/iam","examples/ecs","examples/sqs","examples/kinesis-list-streams","examples/qldbsession-helloworld","examples/kinesis-describe-stream","examples/dynamo-create-table","examples/dynamo-list-items","examples/kinesis-put-record","examples/secretsmanager-get-secret-value","examples/dynamo-movies","examples/secretsmanager-create-secret","examples/dynamo-delete-item","examples/sts","examples/kinesis-delete-stream","examples/secretsmanager-list-secrets","examples/rds-helloworld","examples/sns","examples/mediapackage-helloworld","examples/s3-helloworld","examples/batch-helloworld","examples/dynamo-add-item","examples/dynamo-delete-table","examples/rdsdata-helloworld","examples/polly-put-lexicon","examples/dynamo-helloworld","examples/dynamo-list-tables","examples/route53-helloworld","examples/kms-helloworld","examples/mediapackage-listendpoints","examples/qldb-list-ledgers"
44
]

sdk/apigateway/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
22
[package]
33
name = "aws-sdk-apigateway"
4-
version = "0.0.6-alpha"
4+
version = "0.0.7-alpha"
55
description = "<fullname>Amazon API Gateway</fullname>\n <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>"
66
authors = ["AWS Rust SDK Team <[email protected]>", "Russell Cohen <[email protected]>"]
77
license = "Apache-2.0"
88
edition = "2018"
9+
[dependencies.aws-endpoint]
10+
path = "..//aws-endpoint"
911
[dependencies.aws-hyper]
1012
path = "..//aws-hyper"
1113
features = ["test-util"]
1214
optional = true
1315
[dependencies.smithy-http]
1416
path = "..//smithy-http"
15-
[dependencies.aws-endpoint]
16-
path = "..//aws-endpoint"
1717
[dependencies.aws-types]
1818
path = "..//aws-types"
1919
[dependencies.aws-auth]

sdk/apigateway/src/aws_endpoint.rs

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2+
pub fn endpoint_resolver() -> impl aws_endpoint::ResolveAwsEndpoint {
3+
aws_endpoint::PartitionResolver::new(
4+
aws_endpoint::Partition::builder()
5+
.id("aws")
6+
.region_regex(r#"^(us|eu|ap|sa|ca|me|af)\-\w+\-\d+$"#)
7+
.default_endpoint(aws_endpoint::partition::endpoint::Metadata {
8+
uri_template: "apigateway.{region}.amazonaws.com",
9+
protocol: aws_endpoint::partition::endpoint::Protocol::Https,
10+
signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4,
11+
credential_scope: aws_endpoint::CredentialScope::builder().build(),
12+
})
13+
.regionalized(aws_endpoint::partition::Regionalized::Regionalized)
14+
.build()
15+
.expect("invalid partition"),
16+
vec![
17+
aws_endpoint::Partition::builder()
18+
.id("aws-cn")
19+
.region_regex(r#"^cn\-\w+\-\d+$"#)
20+
.default_endpoint(aws_endpoint::partition::endpoint::Metadata {
21+
uri_template: "apigateway.{region}.amazonaws.com.cn",
22+
protocol: aws_endpoint::partition::endpoint::Protocol::Https,
23+
signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4,
24+
credential_scope: aws_endpoint::CredentialScope::builder().build(),
25+
})
26+
.regionalized(aws_endpoint::partition::Regionalized::Regionalized)
27+
.build()
28+
.expect("invalid partition"),
29+
aws_endpoint::Partition::builder()
30+
.id("aws-iso")
31+
.region_regex(r#"^us\-iso\-\w+\-\d+$"#)
32+
.default_endpoint(aws_endpoint::partition::endpoint::Metadata {
33+
uri_template: "apigateway.{region}.c2s.ic.gov",
34+
protocol: aws_endpoint::partition::endpoint::Protocol::Https,
35+
signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4,
36+
credential_scope: aws_endpoint::CredentialScope::builder().build(),
37+
})
38+
.regionalized(aws_endpoint::partition::Regionalized::Regionalized)
39+
.build()
40+
.expect("invalid partition"),
41+
aws_endpoint::Partition::builder()
42+
.id("aws-iso-b")
43+
.region_regex(r#"^us\-isob\-\w+\-\d+$"#)
44+
.default_endpoint(aws_endpoint::partition::endpoint::Metadata {
45+
uri_template: "apigateway.{region}.sc2s.sgov.gov",
46+
protocol: aws_endpoint::partition::endpoint::Protocol::Https,
47+
signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4,
48+
credential_scope: aws_endpoint::CredentialScope::builder().build(),
49+
})
50+
.regionalized(aws_endpoint::partition::Regionalized::Regionalized)
51+
.build()
52+
.expect("invalid partition"),
53+
aws_endpoint::Partition::builder()
54+
.id("aws-us-gov")
55+
.region_regex(r#"^us\-gov\-\w+\-\d+$"#)
56+
.default_endpoint(aws_endpoint::partition::endpoint::Metadata {
57+
uri_template: "apigateway.{region}.amazonaws.com",
58+
protocol: aws_endpoint::partition::endpoint::Protocol::Https,
59+
signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4,
60+
credential_scope: aws_endpoint::CredentialScope::builder().build(),
61+
})
62+
.regionalized(aws_endpoint::partition::Regionalized::Regionalized)
63+
.build()
64+
.expect("invalid partition"),
65+
],
66+
)
67+
}

sdk/apigateway/src/config.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,9 @@ impl Builder {
5353
}
5454
pub fn build(self) -> Config {
5555
Config {
56-
endpoint_resolver: self.endpoint_resolver.unwrap_or_else(|| {
57-
::std::sync::Arc::new(aws_endpoint::DefaultAwsEndpointResolver::for_service(
58-
"apigateway",
59-
))
60-
}),
56+
endpoint_resolver: self
57+
.endpoint_resolver
58+
.unwrap_or_else(|| ::std::sync::Arc::new(crate::aws_endpoint::endpoint_resolver())),
6159
region: {
6260
use aws_types::region::ProvideRegion;
6361
self.region

sdk/apigateway/src/http_serde.rs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -740,10 +740,18 @@ pub fn deser_header_get_export_retry_after_seconds(
740740
}
741741
}
742742

743-
pub fn deser_header_get_export_content_type(
743+
pub fn deser_payload_get_export_body(
744+
body: &[u8],
745+
) -> Result<std::option::Option<smithy_types::Blob>, crate::error::GetExportError> {
746+
(!body.is_empty())
747+
.then(|| Ok(smithy_types::Blob::new(body)))
748+
.transpose()
749+
}
750+
751+
pub fn deser_header_get_export_content_disposition(
744752
header_map: &http::HeaderMap,
745753
) -> Result<std::option::Option<std::string::String>, smithy_http::header::ParseError> {
746-
let headers = header_map.get_all("Content-Type").iter();
754+
let headers = header_map.get_all("Content-Disposition").iter();
747755
let var_58: Vec<std::string::String> = smithy_http::header::read_many(headers)?;
748756
if var_58.len() > 1 {
749757
Err(smithy_http::header::ParseError)
@@ -753,10 +761,10 @@ pub fn deser_header_get_export_content_type(
753761
}
754762
}
755763

756-
pub fn deser_header_get_export_content_disposition(
764+
pub fn deser_header_get_export_content_type(
757765
header_map: &http::HeaderMap,
758766
) -> Result<std::option::Option<std::string::String>, smithy_http::header::ParseError> {
759-
let headers = header_map.get_all("Content-Disposition").iter();
767+
let headers = header_map.get_all("Content-Type").iter();
760768
let var_59: Vec<std::string::String> = smithy_http::header::read_many(headers)?;
761769
if var_59.len() > 1 {
762770
Err(smithy_http::header::ParseError)
@@ -766,14 +774,6 @@ pub fn deser_header_get_export_content_disposition(
766774
}
767775
}
768776

769-
pub fn deser_payload_get_export_body(
770-
body: &[u8],
771-
) -> Result<std::option::Option<smithy_types::Blob>, crate::error::GetExportError> {
772-
(!body.is_empty())
773-
.then(|| Ok(smithy_types::Blob::new(body)))
774-
.transpose()
775-
}
776-
777777
pub fn deser_header_get_gateway_response_retry_after_seconds(
778778
header_map: &http::HeaderMap,
779779
) -> Result<std::option::Option<std::string::String>, smithy_http::header::ParseError> {
@@ -982,10 +982,18 @@ pub fn deser_header_get_sdk_retry_after_seconds(
982982
}
983983
}
984984

985-
pub fn deser_header_get_sdk_content_type(
985+
pub fn deser_payload_get_sdk_body(
986+
body: &[u8],
987+
) -> Result<std::option::Option<smithy_types::Blob>, crate::error::GetSdkError> {
988+
(!body.is_empty())
989+
.then(|| Ok(smithy_types::Blob::new(body)))
990+
.transpose()
991+
}
992+
993+
pub fn deser_header_get_sdk_content_disposition(
986994
header_map: &http::HeaderMap,
987995
) -> Result<std::option::Option<std::string::String>, smithy_http::header::ParseError> {
988-
let headers = header_map.get_all("Content-Type").iter();
996+
let headers = header_map.get_all("Content-Disposition").iter();
989997
let var_76: Vec<std::string::String> = smithy_http::header::read_many(headers)?;
990998
if var_76.len() > 1 {
991999
Err(smithy_http::header::ParseError)
@@ -995,10 +1003,10 @@ pub fn deser_header_get_sdk_content_type(
9951003
}
9961004
}
9971005

998-
pub fn deser_header_get_sdk_content_disposition(
1006+
pub fn deser_header_get_sdk_content_type(
9991007
header_map: &http::HeaderMap,
10001008
) -> Result<std::option::Option<std::string::String>, smithy_http::header::ParseError> {
1001-
let headers = header_map.get_all("Content-Disposition").iter();
1009+
let headers = header_map.get_all("Content-Type").iter();
10021010
let var_77: Vec<std::string::String> = smithy_http::header::read_many(headers)?;
10031011
if var_77.len() > 1 {
10041012
Err(smithy_http::header::ParseError)
@@ -1008,14 +1016,6 @@ pub fn deser_header_get_sdk_content_disposition(
10081016
}
10091017
}
10101018

1011-
pub fn deser_payload_get_sdk_body(
1012-
body: &[u8],
1013-
) -> Result<std::option::Option<smithy_types::Blob>, crate::error::GetSdkError> {
1014-
(!body.is_empty())
1015-
.then(|| Ok(smithy_types::Blob::new(body)))
1016-
.transpose()
1017-
}
1018-
10191019
pub fn deser_header_get_sdk_type_retry_after_seconds(
10201020
header_map: &http::HeaderMap,
10211021
) -> Result<std::option::Option<std::string::String>, smithy_http::header::ParseError> {

0 commit comments

Comments
 (0)