Skip to content

DescribeUser

Source: src/AWS/Transfer/DescribeUser.ts

Runtime binding for transfer:DescribeUser.

Reads the bound User’s live configuration — home directory, role, POSIX profile, and the SSH public keys currently registered (including their SshPublicKeyIds, which DeleteSshPublicKey needs). The ServerId and UserName are injected from the binding. Provide the implementation with Effect.provide(AWS.Transfer.DescribeUserHttp).

// init — bind the operation to the user
const describeUser = yield* AWS.Transfer.DescribeUser(user);
// runtime
const { User } = yield* describeUser();
const keyIds = (User.SshPublicKeys ?? []).map((k) => k.SshPublicKeyId);