dcloud rds logins modifySet 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 validUntilArguments
<id>Requiredstring
Also accepted as
--id. Constraints: 3-64 chars, /^(?!ewdoc-)[a-z0-9-]+$/<loginId>Requiredstring
Also accepted as
--login-id. Constraints: uuid
Flags
--valid-untilRequiredstring
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 exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.