Aws Access Key
@sntxrr/aws-access-keyv2026.09.23.2
01README
Mint, inventory, deactivate and delete AWS IAM access keys — the step @swamp/aws/iam cannot model — delivering a new key straight into a named vault item, verified by read-back and rolled back if delivery fails
02Models
@sntxrr/aws-access-keyv2026.09.23.2aws_access_key.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| userName | string | The IAM user whose access keys this instance manages. |
| region | string | Region the IAM client signs for. IAM is global; leave the default unless your partition needs otherwise. |
| targetVault? | string | Name of the swamp vault `create` writes the new key into. Required by create; list/deactivate/delete do not use it. |
| targetItem? | string | Item within targetVault. create writes <targetItem>/access-key-id and <targetItem>/secret-access-key. |
fn list()
Inventory the user's access keys with status, age and last use.
fn create(allowSecond: boolean)
Mint a new access key and write both halves into targetVault/targetItem, verified by read-back. Rolls the key back if delivery fails.
| Argument | Type | Description |
|---|---|---|
| allowSecond | boolean | Permit minting while the user already holds one key — the overlap step of a rotation. Off by default so an accidental second key cannot outlive the first. |
fn deactivate(accessKeyId: string)
Set one key Inactive — the reversible step before delete in a rotation.
| Argument | Type | Description |
|---|---|---|
| accessKeyId | string | The access key id to act on (AKIA…). |
fn delete(accessKeyId: string)
Delete one key. Refuses an Active key — deactivate it first, so a still-used key fails loudly and reversibly before it is gone.
| Argument | Type | Description |
|---|---|---|
| accessKeyId | string | The access key id to act on (AKIA…). |
Resources
key(infinite)— One access key's metadata and fingerprints. Never the secret.
inventory(infinite)— Every key the user holds as of one list call.
03Previous Versions
2026.09.23.1
04Stats
A
100 / 100
Downloads
16
Archive size
209.4 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
05Platforms
06Labels