Skip to content

DescribeSecret

Source: src/AWS/SecretsManager/DescribeSecret.ts

Runtime binding for secretsmanager:DescribeSecret.

Bind this operation to a Secret to get a callable that reads the secret’s metadata (name, description, rotation config, version stages) without exposing its value. Provide the implementation with Effect.provide(AWS.SecretsManager.DescribeSecretHttp).

// init — bind the operation to the secret
const describeSecret = yield* AWS.SecretsManager.DescribeSecret(secret);
// runtime — metadata only, no secret value in the response
const info = yield* describeSecret();
const arn = info.ARN;
const description = info.Description;