Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare release v0.0.7-alpha #104

Merged
merged 3 commits into from
Jun 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 9 additions & 12 deletions AWS_SERVICES_SUPPORTED.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# AWS Services Supported

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.
Expand All @@ -16,6 +15,15 @@ The alpha SDK for Rust currently supports the checked services below. If you wan
- [x] [Amazon SSM](https://github.com/awslabs/aws-sdk-rust/issues/22)
- [x] [Amazon SQS](https://github.com/awslabs/aws-sdk-rust/issues/19)
- [x] [Amazon ECS](https://github.com/awslabs/aws-sdk-rust/issues/28)
- [x] Amazon Batch
- [x] [Amazon Route 53](https://github.com/awslabs/aws-sdk-rust/issues/35)
- [x] [Amazon RDS](https://github.com/awslabs/aws-sdk-rust/issues/36)
- [x] Amazon Rds-Data
- [x] [Amazon IAM](https://github.com/awslabs/aws-sdk-rust/issues/21)
- [x] [Amazon SNS](https://github.com/awslabs/aws-sdk-rust/issues/26)
- [x] [Amazon Sts](https://github.com/awslabs/aws-sdk-rust/issues/17)
- [x] Amazon Medialive
- [x] Amazon Mediapackage

------
- [ ] Amazon Access Analyzer
Expand All @@ -37,7 +45,6 @@ The alpha SDK for Rust currently supports the checked services below. If you wan
- [ ] Amazon Autoscaling-Plans
- [ ] Amazon Awsmigrationhub
- [ ] Amazon Backup
- [ ] Amazon Batch
- [ ] Amazon Braket
- [ ] Amazon Budgets
- [ ] Amazon Ce
Expand Down Expand Up @@ -119,7 +126,6 @@ The alpha SDK for Rust currently supports the checked services below. If you wan
- [ ] Amazon Guardduty
- [ ] Amazon Health
- [ ] Amazon Honeycode
- [ ] [Amazon IAM](https://github.com/awslabs/aws-sdk-rust/issues/21)
- [ ] Amazon Identitystore
- [ ] Amazon Imagebuilder
- [ ] Amazon Inspector
Expand Down Expand Up @@ -157,8 +163,6 @@ The alpha SDK for Rust currently supports the checked services below. If you wan
- [ ] Amazon Marketplacecommerceanalytics
- [ ] Amazon Mediaconnect
- [ ] Amazon Mediaconvert
- [ ] Amazon Medialive
- [ ] Amazon Mediapackage
- [ ] Amazon Mediapackage-Vod
- [ ] Amazon Mediastore
- [ ] Amazon Mediastore-Data
Expand All @@ -183,23 +187,18 @@ The alpha SDK for Rust currently supports the checked services below. If you wan
- [ ] Amazon Pinpoint
- [ ] Amazon Pinpoint-Email
- [ ] Amazon Pricing

- [ ] Amazon Quicksight
- [ ] Amazon RAM
- [ ] [Amazon RDS](https://github.com/awslabs/aws-sdk-rust/issues/36)
- [ ] Amazon Rds-Data
- [ ] Amazon Redshift
- [ ] Amazon Redshift-Data
- [ ] Amazon Rekognition
- [ ] Amazon Resource-Groups
- [ ] Amazon Resourcegroupstaggingapi
- [ ] Amazon Robomaker
- [ ] [Amazon Route 53](https://github.com/awslabs/aws-sdk-rust/issues/35)
- [ ] Amazon Route53Domains
- [ ] Amazon Route53Resolver
- [ ] Amazon Runtime.Lex
- [ ] Amazon Runtime.Sagemaker

- [ ] Amazon S3Control
- [ ] Amazon S3Outposts
- [ ] Amazon Sagemaker
Expand All @@ -218,14 +217,12 @@ The alpha SDK for Rust currently supports the checked services below. If you wan
- [ ] Amazon SMS
- [ ] Amazon Sms-Voice
- [ ] Amazon Snowball
- [ ] [Amazon SNS](https://github.com/awslabs/aws-sdk-rust/issues/26)
- [ ] Amazon SSO
- [ ] Amazon Sso-Admin
- [ ] Amazon Sso-Oidc
- [ ] Amazon States
- [ ] Amazon Storagegateway
- [ ] Amazon Streams.Dynamodb
- [ ] [Amazon Sts](https://github.com/awslabs/aws-sdk-rust/issues/17)
- [ ] Amazon Support
- [ ] Amazon Swf
- [ ] Amazon Synthetics
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The AWS SDK for Rust [![Docs](https://img.shields.io/badge/docs-v0.0.6--alpha-blue)](https://awslabs.github.io/aws-sdk-rust/)
# The AWS SDK for Rust [![Docs](https://img.shields.io/badge/docs-v0.0.7--alpha-blue)](https://awslabs.github.io/aws-sdk-rust/)

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

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

```toml
[dependencies]
dynamodb = { git = "https://github.com/awslabs/aws-sdk-rust", tag = "v0.0.6-alpha", package = "aws-sdk-dynamodb" }
dynamodb = { git = "https://github.com/awslabs/aws-sdk-rust", tag = "v0.0.7-alpha", package = "aws-sdk-dynamodb" }
tokio = { version = "1", features = ["full"] }
```
3. Provide your AWS credentials as environment variables:
Expand All @@ -25,13 +25,13 @@ tokio = { version = "1", features = ["full"] }
```bash
export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
export AWS_DEFAULT_REGION=... # eg. us-east-1
export AWS_REGION=... # eg. us-east-1
```
**Windows**
```cmd
set AWS_ACCESS_KEY_ID=...
set AWS_SECRET_ACCESS_KEY=...
set AWS_DEFAULT_REGION=... # eg. us-east-1
set AWS_REGION=... # eg. us-east-1
```

4. Make a request using DynamoDB
Expand Down
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 = [
"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"
"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"
]
6 changes: 3 additions & 3 deletions sdk/apigateway/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
[package]
name = "aws-sdk-apigateway"
version = "0.0.6-alpha"
version = "0.0.7-alpha"
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>"
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
license = "Apache-2.0"
edition = "2018"
[dependencies.aws-endpoint]
path = "..//aws-endpoint"
[dependencies.aws-hyper]
path = "..//aws-hyper"
features = ["test-util"]
optional = true
[dependencies.smithy-http]
path = "..//smithy-http"
[dependencies.aws-endpoint]
path = "..//aws-endpoint"
[dependencies.aws-types]
path = "..//aws-types"
[dependencies.aws-auth]
Expand Down
67 changes: 67 additions & 0 deletions sdk/apigateway/src/aws_endpoint.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn endpoint_resolver() -> impl aws_endpoint::ResolveAwsEndpoint {
aws_endpoint::PartitionResolver::new(
aws_endpoint::Partition::builder()
.id("aws")
.region_regex(r#"^(us|eu|ap|sa|ca|me|af)\-\w+\-\d+$"#)
.default_endpoint(aws_endpoint::partition::endpoint::Metadata {
uri_template: "apigateway.{region}.amazonaws.com",
protocol: aws_endpoint::partition::endpoint::Protocol::Https,
signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4,
credential_scope: aws_endpoint::CredentialScope::builder().build(),
})
.regionalized(aws_endpoint::partition::Regionalized::Regionalized)
.build()
.expect("invalid partition"),
vec![
aws_endpoint::Partition::builder()
.id("aws-cn")
.region_regex(r#"^cn\-\w+\-\d+$"#)
.default_endpoint(aws_endpoint::partition::endpoint::Metadata {
uri_template: "apigateway.{region}.amazonaws.com.cn",
protocol: aws_endpoint::partition::endpoint::Protocol::Https,
signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4,
credential_scope: aws_endpoint::CredentialScope::builder().build(),
})
.regionalized(aws_endpoint::partition::Regionalized::Regionalized)
.build()
.expect("invalid partition"),
aws_endpoint::Partition::builder()
.id("aws-iso")
.region_regex(r#"^us\-iso\-\w+\-\d+$"#)
.default_endpoint(aws_endpoint::partition::endpoint::Metadata {
uri_template: "apigateway.{region}.c2s.ic.gov",
protocol: aws_endpoint::partition::endpoint::Protocol::Https,
signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4,
credential_scope: aws_endpoint::CredentialScope::builder().build(),
})
.regionalized(aws_endpoint::partition::Regionalized::Regionalized)
.build()
.expect("invalid partition"),
aws_endpoint::Partition::builder()
.id("aws-iso-b")
.region_regex(r#"^us\-isob\-\w+\-\d+$"#)
.default_endpoint(aws_endpoint::partition::endpoint::Metadata {
uri_template: "apigateway.{region}.sc2s.sgov.gov",
protocol: aws_endpoint::partition::endpoint::Protocol::Https,
signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4,
credential_scope: aws_endpoint::CredentialScope::builder().build(),
})
.regionalized(aws_endpoint::partition::Regionalized::Regionalized)
.build()
.expect("invalid partition"),
aws_endpoint::Partition::builder()
.id("aws-us-gov")
.region_regex(r#"^us\-gov\-\w+\-\d+$"#)
.default_endpoint(aws_endpoint::partition::endpoint::Metadata {
uri_template: "apigateway.{region}.amazonaws.com",
protocol: aws_endpoint::partition::endpoint::Protocol::Https,
signature_versions: aws_endpoint::partition::endpoint::SignatureVersion::V4,
credential_scope: aws_endpoint::CredentialScope::builder().build(),
})
.regionalized(aws_endpoint::partition::Regionalized::Regionalized)
.build()
.expect("invalid partition"),
],
)
}
8 changes: 3 additions & 5 deletions sdk/apigateway/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ impl Builder {
}
pub fn build(self) -> Config {
Config {
endpoint_resolver: self.endpoint_resolver.unwrap_or_else(|| {
::std::sync::Arc::new(aws_endpoint::DefaultAwsEndpointResolver::for_service(
"apigateway",
))
}),
endpoint_resolver: self
.endpoint_resolver
.unwrap_or_else(|| ::std::sync::Arc::new(crate::aws_endpoint::endpoint_resolver())),
region: {
use aws_types::region::ProvideRegion;
self.region
Expand Down
48 changes: 24 additions & 24 deletions sdk/apigateway/src/http_serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -740,10 +740,18 @@ pub fn deser_header_get_export_retry_after_seconds(
}
}

pub fn deser_header_get_export_content_type(
pub fn deser_payload_get_export_body(
body: &[u8],
) -> Result<std::option::Option<smithy_types::Blob>, crate::error::GetExportError> {
(!body.is_empty())
.then(|| Ok(smithy_types::Blob::new(body)))
.transpose()
}

pub fn deser_header_get_export_content_disposition(
header_map: &http::HeaderMap,
) -> Result<std::option::Option<std::string::String>, smithy_http::header::ParseError> {
let headers = header_map.get_all("Content-Type").iter();
let headers = header_map.get_all("Content-Disposition").iter();
let var_58: Vec<std::string::String> = smithy_http::header::read_many(headers)?;
if var_58.len() > 1 {
Err(smithy_http::header::ParseError)
Expand All @@ -753,10 +761,10 @@ pub fn deser_header_get_export_content_type(
}
}

pub fn deser_header_get_export_content_disposition(
pub fn deser_header_get_export_content_type(
header_map: &http::HeaderMap,
) -> Result<std::option::Option<std::string::String>, smithy_http::header::ParseError> {
let headers = header_map.get_all("Content-Disposition").iter();
let headers = header_map.get_all("Content-Type").iter();
let var_59: Vec<std::string::String> = smithy_http::header::read_many(headers)?;
if var_59.len() > 1 {
Err(smithy_http::header::ParseError)
Expand All @@ -766,14 +774,6 @@ pub fn deser_header_get_export_content_disposition(
}
}

pub fn deser_payload_get_export_body(
body: &[u8],
) -> Result<std::option::Option<smithy_types::Blob>, crate::error::GetExportError> {
(!body.is_empty())
.then(|| Ok(smithy_types::Blob::new(body)))
.transpose()
}

pub fn deser_header_get_gateway_response_retry_after_seconds(
header_map: &http::HeaderMap,
) -> Result<std::option::Option<std::string::String>, smithy_http::header::ParseError> {
Expand Down Expand Up @@ -982,10 +982,18 @@ pub fn deser_header_get_sdk_retry_after_seconds(
}
}

pub fn deser_header_get_sdk_content_type(
pub fn deser_payload_get_sdk_body(
body: &[u8],
) -> Result<std::option::Option<smithy_types::Blob>, crate::error::GetSdkError> {
(!body.is_empty())
.then(|| Ok(smithy_types::Blob::new(body)))
.transpose()
}

pub fn deser_header_get_sdk_content_disposition(
header_map: &http::HeaderMap,
) -> Result<std::option::Option<std::string::String>, smithy_http::header::ParseError> {
let headers = header_map.get_all("Content-Type").iter();
let headers = header_map.get_all("Content-Disposition").iter();
let var_76: Vec<std::string::String> = smithy_http::header::read_many(headers)?;
if var_76.len() > 1 {
Err(smithy_http::header::ParseError)
Expand All @@ -995,10 +1003,10 @@ pub fn deser_header_get_sdk_content_type(
}
}

pub fn deser_header_get_sdk_content_disposition(
pub fn deser_header_get_sdk_content_type(
header_map: &http::HeaderMap,
) -> Result<std::option::Option<std::string::String>, smithy_http::header::ParseError> {
let headers = header_map.get_all("Content-Disposition").iter();
let headers = header_map.get_all("Content-Type").iter();
let var_77: Vec<std::string::String> = smithy_http::header::read_many(headers)?;
if var_77.len() > 1 {
Err(smithy_http::header::ParseError)
Expand All @@ -1008,14 +1016,6 @@ pub fn deser_header_get_sdk_content_disposition(
}
}

pub fn deser_payload_get_sdk_body(
body: &[u8],
) -> Result<std::option::Option<smithy_types::Blob>, crate::error::GetSdkError> {
(!body.is_empty())
.then(|| Ok(smithy_types::Blob::new(body)))
.transpose()
}

pub fn deser_header_get_sdk_type_retry_after_seconds(
header_map: &http::HeaderMap,
) -> Result<std::option::Option<std::string::String>, smithy_http::header::ParseError> {
Expand Down
Loading