Commit Graph

114 Commits

Author SHA1 Message Date
Zelda Hessler 5b2f7c670b
add: RFC for user-configurable retry behavior (#732)
* add: incomplete draft rfc for retry configuraion

* update: rfc based on suggestions
add: reference to SDK reference page on max_attempts
fix: heading levels
update: simplify shared config example
fix: copypaste error in EnvironmentVariableRegionProvider

* update: to use builder method called max_attempts

* fix: leftover language

* update: go back to RetryConfig
add: more definitions
update: examples
add: explainer for process of sending a request
add: note about breaking change to
update: changes checklist
add: note about breaking changes

* fix: use correct module for shard config
update: emit warn log for invalid AWS_MAX_ATTEMPTS

* add: note about where RetryConfigDecorator will be defined
add: note about panics when setting invalid max_attempts
2021-09-30 14:44:42 +00:00
John DiSanti 4cf1c0235c
Update Presigning API RFC (#706) 2021-09-24 14:41:03 -07:00
John DiSanti aa883141d8
RFC: API for Pre-signed URLs (#681)
* Add initial draft RFC for pre-signed URLs

* Change "pre-sign" to "presign" to match other AWS documentation

* Incorporate initial round of feedback

* Change `http::Request` to `PresignedRequest`

Co-authored-by: Russell Cohen <rcoh@amazon.com>
2021-09-17 15:42:34 -04:00
Russell Cohen 5bb82b6e19
RFC: Shared Config (#655)
* Add initial design for shared config

* Update shared config RFC

* add no-configuration proposal

* clarify `aws-types`, remove references to `aws-core`

* Update design/src/aws_config.md

Co-authored-by: John DiSanti <jdisanti@amazon.com>

* Update design/src/aws_config.md

Co-authored-by: David Barsky <me@davidbarsky.com>

* wip

* Update shared config RFC

* Update aws_config.md

* Update aws_config.md

* Update Shared config RFC to match reality

Co-authored-by: John DiSanti <jdisanti@amazon.com>
Co-authored-by: David Barsky <me@davidbarsky.com>
2021-09-17 08:47:07 -04:00
John DiSanti b2187deb83
RFC: Supporting multiple HTTP versions for SDKs that use Event Stream (#669)
* Add initial RFC doc for supporting multiple HTTP versions

* Incorporate `SharedConfig` design and HTTP settings requirements

* Improve design for HTTP settings that vary per operation

* Create a place for RFCs to be merged into
2021-08-27 15:41:03 -07:00
John DiSanti 68984dc408
Refactor middleware to use new `operation::Response` instead of `http::Response<SdkBody>` (#635)
* Refactor Smithy service tower to include a property bag with the response

* Add doc comments and rename functions on operation Request/Response

* Fix codegen

* Update CHANGELOG

* Attach PR number to CHANGELOG

* Fix test compile error

* CR feedback

* Fix AWS runtime tests

* Fix doc comment link

* Fix API gateway customization

* Fix AWS integration tests and update design doc

* Make it possible to run IAM test outside CI and fix it
2021-08-05 17:44:58 -07:00
John DiSanti 398ac41364
Update design documentation (#536)
Co-authored-by: Russell Cohen <rcoh@amazon.com>
2021-06-23 21:30:45 +00:00
Russell Cohen f6267033bc
Update design docs link 2021-05-24 10:51:03 -04:00
Russell Cohen 72a5c5b3e8
Add initial set of docs (#313)
* Add initial set of docs

* More design documentation updates

* Updates to the docs

* Update tenets again to remove the dependeny tenet

* Remove `!`

* Add more design documentation

* More updates to tenets

* More tenets updates

* tenets typo

* Rephrase as 'AWS SDK for Rust'

* rephrase tenets
2021-05-06 22:59:12 +00:00
Russell Cohen bc511ec77f
Add two Amazon Polly examples (#286)
* Add to Amazon Polly examples

* Fix copy-paste error

* Update aws/sdk/examples/polly-helloworld/src/main.rs

Co-authored-by: David Barsky <dbarsky@amazon.com>

* Update aws/sdk/examples/polly-helloworld/src/main.rs

Co-authored-by: David Barsky <dbarsky@amazon.com>

* Some cleanups

* Rerun precommit

* CR Feedback

* Fix clippy lint

* Small cleanup

Co-authored-by: David Barsky <dbarsky@amazon.com>
2021-04-01 21:49:57 -04:00
Russell Cohen 36f67c5f40
Add AwsEndpointResolver when constructing operations (#198)
* Add AwsEndpointResolver when constructing operations

This commit adds a customization for AWS-services to allow specifying an EndpointResolver, with a default fallback provided.

* Enforce no doc warnings, fix bug, add cargoCheck to CI
2021-02-15 17:35:51 -05:00
Russell Cohen 6da99699bb
Implement core Smithy endpoint support (#183)
* Implement core Smithy endpoint support

This commit adds `Endpoint` to smithy-http & records our design decisions in `endpoint.md`. This provides support for the endpoint trait in Smithy. A design for endpoint discovery is proposed but is not currently implemented.

* Apply suggestions from code review

Co-authored-by: Lucio Franco <luciofranco14@gmail.com>

* More cleanups

Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
2021-02-08 10:16:16 -05:00
Russell Cohen 86fc5f25c9
Add middleware & update design docs (#175)
* Add middleware & update design docs

* Add missing design folder

* Improve MapRequest middleware example

* Vendor pin_utils::pin_mut

* Remove Debug body restrictions

* Modify error bound

* Remove redundant return
2021-02-02 12:42:15 -05:00
Russell Cohen 2ff12e6ac9
Http Operation traits and structures (#167)
* Http Operation traits and structures

Initial implementation of `Operation` for HTTP based services and `ParseHttpResponse`. I'm also starting to collect design documentation in `design`, an mdBook intended to serve as a repository for public facing design documentation.

* Update rust-runtime/smithy-http/src/body.rs

Co-authored-by: Jonathan Esterhazy <jonathan.esterhazy@gmail.com>

* Add retry policy

* Fix doctest failures

* Update rust-runtime/smithy-http/src/operation.rs

Co-authored-by: Kerem Kat <keremkat@gmail.com>

* Update rust-runtime/smithy-http/src/operation.rs

Co-authored-by: Kerem Kat <keremkat@gmail.com>

* Update design/src/operation.md

Co-authored-by: Kerem Kat <keremkat@gmail.com>

* Update design/src/operation.md

Co-authored-by: Kerem Kat <keremkat@gmail.com>

* Update rust-runtime/smithy-http/src/response.rs

Co-authored-by: Kerem Kat <keremkat@gmail.com>

* Update design/src/operation.md

Co-authored-by: Kerem Kat <keremkat@gmail.com>

* Update design/src/operation.md

Co-authored-by: Kerem Kat <keremkat@gmail.com>

Co-authored-by: Jonathan Esterhazy <jonathan.esterhazy@gmail.com>
Co-authored-by: Kerem Kat <keremkat@gmail.com>
2021-01-25 08:56:55 -05:00