Skip to content

Commit

Permalink
AT-9828: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
rddimon committed Jul 18, 2023
1 parent 9877e31 commit e16880f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/models/apigateway-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,10 @@ import DomainInfo = require("./domain-info");
import ApiGatewayMap = require("./api-gateway-map");
import DomainConfig = require("./domain-config");
import {Client} from "@aws-sdk/smithy-client";
import {ConfiguredRetryStrategy} from "@aws-sdk/util-retry";

abstract class APIGatewayBase {
public apiGateway: Client<any, any, any, any>;

public static getRetryStrategy() {
return new ConfiguredRetryStrategy(
5, // max attempts.
// This example sets the backoff at 100ms plus 5s per attempt.
// https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/modules/_aws_sdk_util_retry.html#aws-sdkutil-retry
(attempt: number) => 100 + attempt * 5000 // backoff function.
)
}

abstract createCustomDomain(domain: DomainConfig): Promise<DomainInfo>;

abstract getCustomDomain(domain: DomainConfig): Promise<DomainInfo>;
Expand Down

0 comments on commit e16880f

Please sign in to comment.