Skip to content

Update links to point to smithy.io #4193

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

Merged
merged 1 commit into from
Nov 16, 2022
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
* @see QueryMemberSerVisitor
* @see XmlMemberDeserVisitor
* @see AwsProtocolUtils
* @see <a href="https://awslabs.github.io/smithy/spec/xml.html">Smithy XML traits.</a>
* @see <a href="https://awslabs.github.io/smithy/spec/aws-core.html#ec2QueryName-trait">Smithy EC2 Query Name trait.</a>
* @see <a href="https://smithy.io/2.0/spec/protocol-traits.html#xml-bindings">Smithy XML traits.</a>
* @see <a href="https://smithy.io/2.0/aws/protocols/aws-ec2-query-protocol.html#aws-protocols-ec2queryname-trait">Smithy EC2 Query Name trait.</a>
*/
@SmithyInternalApi
final class AwsEc2 extends HttpRpcProtocolGenerator {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private AwsProtocolUtils() {}
* Writes an {@code 'x-amz-content-sha256' = 'UNSIGNED-PAYLOAD'} header for an
* {@code @aws.api#unsignedPayload} trait that specifies the {@code "aws.v4"} auth scheme.
*
* @see <a href=https://awslabs.github.io/smithy/spec/aws-core.html#aws-api-unsignedpayload-trait>@aws.api#unsignedPayload trait</a>
* @see <a href=https://smithy.io/2.0/aws/aws-auth.html#aws-auth-unsignedpayload-trait>@aws.api#unsignedPayload trait</a>
*
* @param context The generation context.
* @param operation The operation being generated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
* @see QueryMemberSerVisitor
* @see XmlMemberDeserVisitor
* @see AwsProtocolUtils
* @see <a href="https://awslabs.github.io/smithy/spec/xml.html">Smithy XML traits.</a>
* @see <a href="https://smithy.io/2.0/spec/protocol-traits.html#xml-bindings">Smithy XML traits.</a>
*/
@SmithyInternalApi
final class AwsQuery extends HttpRpcProtocolGenerator {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
* @see XmlMemberSerVisitor
* @see XmlMemberDeserVisitor
* @see AwsProtocolUtils
* @see <a href="https://awslabs.github.io/smithy/spec/http.html">Smithy HTTP protocol bindings.</a>
* @see <a href="https://awslabs.github.io/smithy/spec/xml.html">Smithy XML traits.</a>
* @see <a href="https://smithy.io/2.0/spec/http-bindings.html">Smithy HTTP protocol bindings.</a>
* @see <a href="https://smithy.io/2.0/spec/protocol-traits.html#xml-bindings">Smithy XML traits.</a>
*/
@SmithyInternalApi
final class AwsRestXml extends HttpBindingProtocolGenerator {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ private void writeNativeAttributeValue() {
* @param member The member being generated for.
* @return If the interface member should be treated as required.
*
* @see <a href="https://awslabs.github.io/smithy/spec/core.html#idempotencytoken-trait">Smithy idempotencyToken trait.</a>
* @see <a href="https://smithy.io/2.0/spec/behavior-traits.html#smithy-api-idempotencytoken-trait">Smithy idempotencyToken trait.</a>
*/
private boolean isRequiredMember(MemberShape member) {
return member.isRequired() && !member.hasTrait(IdempotencyTokenTrait.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
*
* @see AwsEc2
* @see QueryShapeSerVisitor
* @see <a href="https://awslabs.github.io/smithy/spec/aws-core.html#ec2QueryName-trait">Smithy EC2 Query Name trait.</a>
* @see <a href="https://smithy.io/2.0/aws/protocols/aws-ec2-query-protocol.html#aws-protocols-ec2queryname-trait">Smithy EC2 Query Name trait.</a>
*/
@SmithyInternalApi
final class Ec2ShapeSerVisitor extends QueryShapeSerVisitor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* @see JsonMemberSerVisitor
* @see JsonMemberDeserVisitor
* @see AwsProtocolUtils
* @see <a href="https://awslabs.github.io/smithy/spec/http.html">Smithy HTTP protocol bindings.</a>
* @see <a href="https://smithy.io/2.0/spec/http-bindings.html">Smithy HTTP protocol bindings.</a>
*/
@SmithyInternalApi
abstract class RestJsonProtocolGenerator extends HttpBindingProtocolGenerator {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* <li>Compares boolean shapes to the string {@code "true"} to generate a boolean.</li>
* </ul>
*
* @see <a href="https://awslabs.github.io/smithy/spec/xml.html">Smithy XML traits.</a>
* @see <a href="https://smithy.io/2.0/spec/protocol-traits.html#xml-bindings">Smithy XML traits.</a>
*/
@SmithyInternalApi
final class XmlMemberDeserVisitor extends DocumentMemberDeserVisitor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
*
* TODO: Work out support for BigDecimal and BigInteger, natively or through a library.
*
* @see <a href="https://awslabs.github.io/smithy/spec/xml.html">Smithy XML traits.</a>
* @see <a href="https://smithy.io/2.0/spec/protocol-traits.html#xml-bindings">Smithy XML traits.</a>
*/
@SmithyInternalApi
final class XmlMemberSerVisitor extends DocumentMemberSerVisitor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
*
* Timestamps are deserialized from {@link Format}.DATE_TIME by default.
*
* @see <a href="https://awslabs.github.io/smithy/spec/xml.html">Smithy XML
* @see <a href="https://smithy.io/2.0/spec/protocol-traits.html#xml-bindings">Smithy XML
* traits.</a>
*/
@SmithyInternalApi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
*
* Timestamps are serialized to {@link Format}.DATE_TIME by default.
*
* @see <a href="https://awslabs.github.io/smithy/spec/xml.html">Smithy XML traits.</a>
* @see <a href="https://smithy.io/2.0/spec/protocol-traits.html#xml-bindings">Smithy XML traits.</a>
*/
@SmithyInternalApi
final class XmlShapeSerVisitor extends DocumentShapeSerVisitor {
Expand Down
2 changes: 1 addition & 1 deletion packages/token-providers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ import { nodeProvider } from "@aws-sdk/token-providers"
cont token = await nodeProvider();
```

[http-bearer-auth-trait]: https://awslabs.github.io/smithy/1.0/spec/core/auth-traits.html#httpbearerauth-trait
[http-bearer-auth-trait]: https://smithy.io/2.0/spec/authentication-traits.html#smithy-api-httpbearerauth-trait
2 changes: 1 addition & 1 deletion packages/types/src/shapes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type DocumentType = null | boolean | number | string | DocumentType[] | {

/**
* A structure shape with the error trait.
* https://awslabs.github.io/smithy/spec/core.html#retryable-trait
* https://smithy.io/2.0/spec/behavior-traits.html#smithy-api-retryable-trait
*/
export interface RetryableTrait {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/util-waiter/src/poller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { sleep } from "./utils/sleep";
import { WaiterOptions, WaiterResult, WaiterState } from "./waiter";

/**
* Reference: https://awslabs.github.io/smithy/1.0/spec/waiters.html#waiter-retries
* Reference: https://smithy.io/2.0/additional-specs/waiters.html#waiter-retries
*/
const exponentialBackoffWithJitter = (minDelay: number, maxDelay: number, attemptCeiling: number, attempt: number) => {
if (attempt > attemptCeiling) return maxDelay;
Expand Down