Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • delay(ms: number): Promise<any>
  • Parameters

    • ms: number

    Returns Promise<any>

  • isThrottlingError(e: any): boolean
  • Parameters

    • e: any

    Returns boolean

  • policyReplacements(props: { acceleratorPrefix: string; additionalReplacements: {}; content: string; managementAccountAccessRole: string; partition: string }): string
  • Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.

    Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at

     http://www.apache.org/licenses/LICENSE-2.0
    

    or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and limitations under the License.

    Parameters

    • props: { acceleratorPrefix: string; additionalReplacements: {}; content: string; managementAccountAccessRole: string; partition: string }
      • acceleratorPrefix: string
      • additionalReplacements: {}
        • [key: string]: string | string[]
      • content: string
      • managementAccountAccessRole: string
      • partition: string

    Returns string

  • throttlingBackOff<T>(request: () => Promise<T>, options?: Partial<Omit<IBackOffOptions, "retry">>): Promise<T>
  • Auxiliary function to retry AWS SDK calls when a throttling error occurs.

    Type parameters

    • T

    Parameters

    • request: () => Promise<T>
        • (): Promise<T>
        • Returns Promise<T>

    • Optional options: Partial<Omit<IBackOffOptions, "retry">>

    Returns Promise<T>

Generated using TypeDoc