dcloud rds logins modify

Set or clear a login's expiry, at least five minutes ahead (to cut off now, revoke)

IAM rds:ModifyDBLoginChanges state

Postgres checks VALID UNTIL at connect; the expiry sweep ends sessions still open when it passes.

Synopsis

dcloud rds logins modify id loginId --valid-until validUntil

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: 3-64 chars, /^(?!ewdoc-)[a-z0-9-]+$/

  • <loginId>Required

    string

    Also accepted as --login-id. Constraints: uuid

Flags

  • --valid-untilRequired

    string

    New expiry, 5 minutes to 2 years ahead; null removes the expiry

    Constraints: datetime

    May be null.

Example

dcloud rds logins modify id loginId --valid-until example

Generated from the API description, the same one the API checks requests against and the CLI is built from.