aws-sdk 2.782.0 → 2.783.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -1
- package/README.md +1 -1
- package/apis/braket-2019-09-01.min.json +105 -7
- package/apis/dms-2016-01-01.min.json +103 -72
- package/apis/imagebuilder-2019-12-02.min.json +12 -12
- package/apis/macie2-2020-01-01.min.json +4 -0
- package/apis/medialive-2017-10-14.min.json +207 -172
- package/clients/braket.d.ts +100 -26
- package/clients/dms.d.ts +45 -1
- package/clients/elasticache.d.ts +22 -22
- package/clients/imagebuilder.d.ts +21 -20
- package/clients/macie2.d.ts +4 -0
- package/clients/medialive.d.ts +42 -0
- package/clients/sns.d.ts +6 -6
- package/dist/aws-sdk-core-react-native.js +1 -1
- package/dist/aws-sdk-react-native.js +6 -6
- package/dist/aws-sdk.js +3 -3
- package/dist/aws-sdk.min.js +2 -2
- package/lib/core.js +1 -1
- package/lib/credentials/credential_provider_chain.d.ts +2 -2
- package/lib/error.d.ts +14 -10
- package/package.json +1 -1
package/lib/core.js
CHANGED
|
@@ -8,7 +8,7 @@ export class CredentialProviderChain {
|
|
|
8
8
|
/**
|
|
9
9
|
* Resolves the provider chain by searching for the first set of credentials in providers.
|
|
10
10
|
*/
|
|
11
|
-
resolve(callback:(err: AWSError, credentials
|
|
11
|
+
resolve(callback:(err: AWSError|null, credentials?: Credentials) => void): CredentialProviderChain;
|
|
12
12
|
/**
|
|
13
13
|
* Return a Promise on resolve() function
|
|
14
14
|
*/
|
|
@@ -16,7 +16,7 @@ export class CredentialProviderChain {
|
|
|
16
16
|
/**
|
|
17
17
|
* Returns a list of credentials objects or functions that return credentials objects. If the provider is a function, the function will be executed lazily when the provider needs to be checked for valid credentials. By default, this object will be set to the defaultProviders.
|
|
18
18
|
*/
|
|
19
|
-
providers: Credentials
|
|
19
|
+
providers: Array<Credentials|provider>;
|
|
20
20
|
|
|
21
21
|
static defaultProviders: provider[]
|
|
22
22
|
}
|
package/lib/error.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A structure containing information about a service or networking error.
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type AWSError = Error & {
|
|
5
5
|
/**
|
|
6
6
|
* A unique short code representing the error that was emitted.
|
|
7
7
|
*/
|
|
@@ -13,11 +13,11 @@ export class AWSError extends Error {
|
|
|
13
13
|
/**
|
|
14
14
|
* Whether the error message is retryable.
|
|
15
15
|
*/
|
|
16
|
-
retryable
|
|
16
|
+
retryable?: boolean;
|
|
17
17
|
/**
|
|
18
18
|
* In the case of a request that reached the service, this value contains the response status code.
|
|
19
19
|
*/
|
|
20
|
-
statusCode
|
|
20
|
+
statusCode?: number;
|
|
21
21
|
/**
|
|
22
22
|
* The date time object when the error occurred.
|
|
23
23
|
*/
|
|
@@ -25,25 +25,29 @@ export class AWSError extends Error {
|
|
|
25
25
|
/**
|
|
26
26
|
* Set when a networking error occurs to easily identify the endpoint of the request.
|
|
27
27
|
*/
|
|
28
|
-
hostname
|
|
28
|
+
hostname?: string;
|
|
29
29
|
/**
|
|
30
30
|
* Set when a networking error occurs to easily identify the region of the request.
|
|
31
31
|
*/
|
|
32
|
-
region
|
|
32
|
+
region?: string;
|
|
33
33
|
/**
|
|
34
34
|
* Amount of time (in seconds) that the request waited before being resent.
|
|
35
35
|
*/
|
|
36
|
-
retryDelay
|
|
36
|
+
retryDelay?: number;
|
|
37
37
|
/**
|
|
38
38
|
* The unique request ID associated with the response.
|
|
39
39
|
*/
|
|
40
|
-
requestId
|
|
40
|
+
requestId?: string;
|
|
41
41
|
/**
|
|
42
42
|
* Second request ID associated with the response from S3.
|
|
43
43
|
*/
|
|
44
|
-
extendedRequestId
|
|
44
|
+
extendedRequestId?: string;
|
|
45
45
|
/**
|
|
46
46
|
* CloudFront request ID associated with the response.
|
|
47
47
|
*/
|
|
48
|
-
cfId
|
|
49
|
-
|
|
48
|
+
cfId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The original error which caused this Error
|
|
51
|
+
*/
|
|
52
|
+
originalError?: Error
|
|
53
|
+
}
|