0.4.42 • Published 2 years ago
@cloud-technology/secrets-manager-client v0.4.42
secrets-manager-client
AWS Secrets Manager Custom User-Agent + Client
Usage
import { Service } from "@cloud-technology/secrets-manager-client";
const client = new Service();
const secret = await client.get( "Organization/Environment/Application/Service/Example" );
Custom Profile Example
import { Service } from "@cloud-technology/secrets-manager-client";
const client = new Service("Production");
const secret = await client.get( "Organization/Environment/Application/Service/Example" );
Extended Example(s)
import { Parameter } from "@cloud-technology/parameter";
import { Service } from "@cloud-technology/secrets-manager-client";
const $ = new Service();
const name = "Organization/Environment/Application/Service/Example";
const days = 7;
const overwrite = false;
const description = "Secret Parameter Unit Test";
// Note - Values should never be stored, written, or created in code
// Please read-in from a file in production when creating secrets
const secret = JSON.stringify( {
Key: "Example-Key",
Value: "Example-Value"
} );
const creation = await $.create( Parameter.create( name ), description, secret, overwrite );
const list = await $.list();
const search = await $.search( "name", name );
const resource = await $.get( Parameter.create( name ) );
const deletion = await $.delete( Parameter.create( name ), days );
0.4.42
2 years ago
0.4.41
2 years ago
0.4.39
2 years ago
0.4.28
2 years ago
0.4.29
2 years ago
0.4.26
2 years ago
0.4.27
2 years ago
0.4.24
2 years ago
0.4.25
2 years ago
0.4.23
2 years ago
0.4.31
2 years ago
0.4.32
2 years ago
0.4.30
2 years ago
0.4.37
2 years ago
0.4.38
2 years ago
0.4.35
2 years ago
0.4.36
2 years ago
0.4.33
2 years ago
0.4.34
2 years ago
0.4.21
2 years ago
0.3.18
2 years ago
0.3.17
2 years ago
0.3.16
2 years ago
0.2.14
2 years ago
0.2.13
2 years ago
0.2.12
2 years ago
0.2.11
2 years ago
0.2.9
2 years ago
0.2.8
2 years ago
0.2.7
2 years ago
0.2.6
2 years ago
0.2.5
2 years ago
0.1.112
2 years ago