aws-sdk 2.1625.0 → 2.1627.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/README.md +1 -1
- package/apis/chatbot-2017-10-11.min.json +138 -24
- package/apis/cloudformation-2010-05-15.min.json +48 -43
- package/apis/emr-serverless-2021-07-13.min.json +35 -13
- package/apis/kms-2014-11-01.min.json +3 -0
- package/apis/opensearch-2021-01-01.min.json +18 -12
- package/apis/opsworks-2013-02-18.min.json +3 -0
- package/apis/wafv2-2019-07-29.min.json +42 -32
- package/clients/chatbot.d.ts +100 -0
- package/clients/cloudformation.d.ts +11 -2
- package/clients/emrserverless.d.ts +22 -0
- package/clients/kms.d.ts +6 -6
- package/clients/opensearch.d.ts +14 -1
- package/clients/opsworks.d.ts +117 -117
- package/clients/wafv2.d.ts +34 -4
- package/dist/aws-sdk-core-react-native.js +6 -3
- package/dist/aws-sdk-react-native.js +13 -10
- package/dist/aws-sdk.js +63 -49
- package/dist/aws-sdk.min.js +53 -53
- package/lib/core.js +1 -1
- package/lib/credentials/sso_credentials.js +1 -1
- package/lib/credentials/token_file_web_identity_credentials.d.ts +2 -2
- package/lib/metadata_service.d.ts +4 -0
- package/lib/metadata_service.js +1 -2
- package/lib/protocol/rest_json.js +2 -1
- package/lib/query/query_param_serializer.js +3 -1
- package/package.json +1 -1
package/lib/core.js
CHANGED
@@ -176,7 +176,7 @@ AWS.SsoCredentials = AWS.util.inherit(AWS.Credentials, {
|
|
176
176
|
var ssoTokenProvider = new AWS.SSOTokenProvider({
|
177
177
|
profile: profileName,
|
178
178
|
});
|
179
|
-
ssoTokenProvider.
|
179
|
+
ssoTokenProvider.get(function (err) {
|
180
180
|
if (err) {
|
181
181
|
return callback(err);
|
182
182
|
}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import {Credentials} from '../credentials';
|
2
2
|
import {AWSError} from '../error';
|
3
|
-
import {
|
3
|
+
import {ClientConfiguration} from '../../clients/sts';
|
4
4
|
export class TokenFileWebIdentityCredentials extends Credentials {
|
5
5
|
/**
|
6
6
|
* Creates a new credentials object with optional configuraion.
|
7
7
|
* @param {Object} clientConfig - a map of configuration options to pass to the underlying STS client.
|
8
8
|
*/
|
9
|
-
constructor(clientConfig?:
|
9
|
+
constructor(clientConfig?: ClientConfiguration);
|
10
10
|
/**
|
11
11
|
* Refreshes credentials using AWS.STS.assumeRoleWithWebIdentity().
|
12
12
|
*/
|
@@ -17,6 +17,10 @@ export class MetadataService {
|
|
17
17
|
options: {method?: string, headers?: {[key: string]: String} },
|
18
18
|
callback: (err: AWSError, data: string) => void
|
19
19
|
): void;
|
20
|
+
/**
|
21
|
+
* Fetches metadata token used for authenticating against the instance metadata service.
|
22
|
+
*/
|
23
|
+
fetchMetadataToken(callback: (err: AWSError, token: string) => void): void;
|
20
24
|
/**
|
21
25
|
* 169.254.169.254
|
22
26
|
*/
|
package/lib/metadata_service.js
CHANGED
@@ -120,9 +120,8 @@ AWS.MetadataService = inherit({
|
|
120
120
|
loadCredentialsCallbacks: [],
|
121
121
|
|
122
122
|
/**
|
123
|
-
* Fetches metadata token used for
|
123
|
+
* Fetches metadata token used for authenticating against the instance metadata service.
|
124
124
|
*
|
125
|
-
* @api private
|
126
125
|
* @callback callback function(err, token)
|
127
126
|
* Called when token is loaded from the resource
|
128
127
|
*/
|
@@ -1,3 +1,4 @@
|
|
1
|
+
var AWS = require('../core');
|
1
2
|
var util = require('../util');
|
2
3
|
var Rest = require('./rest');
|
3
4
|
var Json = require('./json');
|
@@ -75,7 +76,7 @@ function extractData(resp) {
|
|
75
76
|
var body = resp.httpResponse.body;
|
76
77
|
if (payloadMember.isEventStream) {
|
77
78
|
parser = new JsonParser();
|
78
|
-
resp.data[payload] = util.createEventStream(
|
79
|
+
resp.data[rules.payload] = util.createEventStream(
|
79
80
|
AWS.HttpClient.streamsApiVersion === 2 ? resp.httpResponse.stream : body,
|
80
81
|
parser,
|
81
82
|
payloadMember
|