0.4.42 • Published 3 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
3 years ago
0.4.41
3 years ago
0.4.39
3 years ago
0.4.28
3 years ago
0.4.29
3 years ago
0.4.26
3 years ago
0.4.27
3 years ago
0.4.24
3 years ago
0.4.25
3 years ago
0.4.23
3 years ago
0.4.31
3 years ago
0.4.32
3 years ago
0.4.30
3 years ago
0.4.37
3 years ago
0.4.38
3 years ago
0.4.35
3 years ago
0.4.36
3 years ago
0.4.33
3 years ago
0.4.34
3 years ago
0.4.21
3 years ago
0.3.18
3 years ago
0.3.17
3 years ago
0.3.16
3 years ago
0.2.14
3 years ago
0.2.13
3 years ago
0.2.12
3 years ago
0.2.11
3 years ago
0.2.9
3 years ago
0.2.8
3 years ago
0.2.7
3 years ago
0.2.6
3 years ago
0.2.5
3 years ago
0.1.112
3 years ago