Skip to content

Latest commit

 

History

History
264 lines (147 loc) · 3.75 KB

File metadata and controls

264 lines (147 loc) · 3.75 KB

README

@cloudcomponents/cdk-secret-key

@cloudcomponents/cdk-secret-key

Table of contents

Enumerations

Classes

Secret Key

@cloudcomponents/cdk-secret-key / SecretKey

Class: SecretKey

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new SecretKey(secretKeyType)

Parameters

Name Type
secretKeyType KeyType

Properties

secretKeyType

Readonly secretKeyType: KeyType

Methods

grantRead

Optional Abstract grantRead(grantee): Grant

Parameters

Name Type
grantee IGrantable

Returns

Grant


serialize

Abstract serialize(): string

Returns

string


fromPlainText

Static fromPlainText(value): SecretKey

Parameters

Name Type
value string

Returns

SecretKey


fromSSMParameter

Static fromSSMParameter(secretKeyParameter): SecretKey

Parameters

Name Type
secretKeyParameter IParameter

Returns

SecretKey


fromSecretsManager

Static fromSecretsManager(secretKeySecret, fieldName?): SecretKey

Parameters

Name Type
secretKeySecret ISecret
fieldName? string

Returns

SecretKey

Secret Key Store

@cloudcomponents/cdk-secret-key / SecretKeyStore

Class: SecretKeyStore

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new SecretKeyStore(secretKeyType)

Parameters

Name Type
secretKeyType KeyType

Properties

secretKeyType

Readonly secretKeyType: KeyType

Methods

grantWrite

Abstract grantWrite(grantee): Grant

Parameters

Name Type
grantee IGrantable

Returns

Grant


serialize

Abstract serialize(): string

Returns

string


fromSSMParameter

Static fromSSMParameter(secretKeyParameter): SecretKeyStore

Parameters

Name Type
secretKeyParameter IParameter

Returns

SecretKeyStore


fromSecretsManager

Static fromSecretsManager(secretKeySecret): SecretKeyStore

Parameters

Name Type
secretKeySecret ISecret

Returns

SecretKeyStore

Key Type

@cloudcomponents/cdk-secret-key / KeyType

Enumeration: KeyType

Table of contents

Enumeration members

Enumeration members

PLAIN_TEXT

PLAIN_TEXT = "PLAIN_TEXT"


SECRETS_MANAGER

SECRETS_MANAGER = "SECRETS_MANAGER"


SSM_PARAMETER

SSM_PARAMETER = "SSM_PARAMETER"