Constructor
new SecretsManager()
Constructs a service object. This object has one method for each API operation.
- Source:
Example
var secretsmanager = new GG.SecretsManager();
Methods
getSecretValue(params, callback)
Retrieves a specific local secret value.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
||||||||||||
callback |
secretsManagerCallback | The callback. |
- Source:
Example
// This operation retrieves a local secret value
var params = {
SecretId: "STRING_VALUE",
VersionStage: "STRING_VALUE"
};
secretsmanager.getSecretValue(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});