You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param err {Error} The error object returned from the request. Set to <tt>null</tt> if the request is successful.
41
-
* @param data {String} The json-serialized data returned from the request. Set to <tt>null</tt> if a request error occurs. This string can be parsed to get the Object with the following info:
42
-
* data.ARN {String} The ARN of the secret.
43
-
* data.Name {String} The friendly name of the secret.
44
-
* data.VersionId {String} The unique identifier of this version of the secret.
45
-
* data.SecretBinary {Buffer|TypedArray|Blob|String} The decrypted part of the protected secret information that was originally provided as binary data in the form of a byte array.
42
+
* @param data {Object|String} data returned from the request. Return type is decided on DeStringifyResultFlag flag in request. Set to <tt>null</tt> if a request error occurs.
43
+
* @paramdata.ARN {String} The ARN of the secret.
44
+
* @paramdata.Name {String} The friendly name of the secret.
45
+
* @paramdata.VersionId {String} The unique identifier of this version of the secret.
46
+
* @paramdata.SecretBinary {Buffer|TypedArray|Blob|String} The decrypted part of the protected secret information that was originally provided as binary data in the form of a byte array.
46
47
* The response parameter represents the binary data as a base64-encoded string.
47
-
* data.SecretString {String} The decrypted part of the protected secret information that was originally provided as a string.
48
-
* data.VersionStages {String[]} Specifies the secret version that you want to retrieve by the staging label attached to the version.
48
+
* @paramdata.SecretString {String} The decrypted part of the protected secret information that was originally provided as a string.
49
+
* @paramdata.VersionStages {String[]} Specifies the secret version that you want to retrieve by the staging label attached to the version.
49
50
* <br/>Staging labels are used to keep track of different versions during the rotation process.
50
51
*/
51
52
@@ -56,6 +57,7 @@ class SecretsManager {
56
57
* @param params.SecretId {String} Specifies the secret containing the version that you want to retrieve. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
57
58
* @param params.VersionStage {String} Specifies the secret version that you want to retrieve by the staging label attached to the version.
58
59
* <br/>Staging labels are used to keep track of different versions during the rotation process.
60
+
* @param params.DeStringifyResultFlag {boolean} Optional Flag to decide the return type from getSecretValue. If set, it returns de-serialized data object, otherwise it returns stringified response.
59
61
* @param callback {secretsManagerCallback} The callback.
60
62
*
61
63
* @example <caption>Retrieving a local secret value</caption>
0 commit comments