Skip to content

Commit 9fa11fe

Browse files
Update fetchMetadataToken (#4240)
1 parent dacfa24 commit 9fa11fe

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "MetadataService",
4+
"description": "Update AWS.MetadataService to expose the fetchMetadataToken function."
5+
}

lib/metadata_service.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ export class MetadataService {
1717
options: {method?: string, headers?: {[key: string]: String} },
1818
callback: (err: AWSError, data: string) => void
1919
): void;
20+
/**
21+
* Fetches metadata token used for authenticating against the instance metadata service.
22+
*/
23+
fetchMetadataToken(callback: (err: AWSError, token: string) => void): void;
2024
/**
2125
* 169.254.169.254
2226
*/

lib/metadata_service.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ AWS.MetadataService = inherit({
120120
loadCredentialsCallbacks: [],
121121

122122
/**
123-
* Fetches metadata token used for getting credentials
123+
* Fetches metadata token used for authenticating against the instance metadata service.
124124
*
125-
* @api private
126125
* @callback callback function(err, token)
127126
* Called when token is loaded from the resource
128127
*/

0 commit comments

Comments
 (0)