Skip to content

Commit

Permalink
refactor: mark deprecated options
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyentoanit committed Nov 14, 2023
1 parent b3a3cb4 commit f361367
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface AmazonSellingPartnerAPICredentials {
accessKeyId: string
secretAccessKey: string
sessionToken?: string
}
20 changes: 20 additions & 0 deletions src/types/api-clients/api-configuration-parameters.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { AxiosInstance, AxiosRequestConfig } from 'axios'

import { AmazonSellingPartnerAPICredentials } from './amazon-selling-partner-api-credentials'

export interface APIConfigurationParameters {
/**
* Axios Instance
Expand Down Expand Up @@ -32,11 +34,29 @@ export interface APIConfigurationParameters {
*/
baseOptions?: AxiosRequestConfig

/**
* Selling partner API credentials
*
* @deprecated Amazon no longer requires the requests to be signed with AWS4
* @type {AmazonSellingPartnerAPICredentials}
* @memberof APIConfigurationParameters
*/
credentials?: AmazonSellingPartnerAPICredentials

/**
* Selling partner API region
*
* @type {string}
* @memberof APIConfigurationParameters
*/
region?: string

/**
* ARN of the IAM Role to be assumed to get the credentials from.
*
* @deprecated Amazon no longer requires the requests to be signed with AWS4
* @type {string}
* @memberof APIConfigurationParameters
*/
roleArn?: string
}
1 change: 1 addition & 0 deletions src/types/api-clients/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './amazon-selling-partner-api-base-path'
export * from './amazon-selling-partner-api-credentials'
export * from './api-configuration-parameters'

0 comments on commit f361367

Please sign in to comment.