@cloudcomponents/cdk-secret-key
@cloudcomponents/cdk-secret-key / SecretKey
• new SecretKey(secretKeyType
)
Name | Type |
---|---|
secretKeyType |
KeyType |
• Readonly
secretKeyType: KeyType
▸ Optional
Abstract
grantRead(grantee
): Grant
Name | Type |
---|---|
grantee |
IGrantable |
Grant
▸ Abstract
serialize(): string
string
▸ Static
fromPlainText(value
): SecretKey
Name | Type |
---|---|
value |
string |
▸ Static
fromSSMParameter(secretKeyParameter
): SecretKey
Name | Type |
---|---|
secretKeyParameter |
IParameter |
▸ Static
fromSecretsManager(secretKeySecret
, fieldName?
): SecretKey
Name | Type |
---|---|
secretKeySecret |
ISecret |
fieldName? |
string |
@cloudcomponents/cdk-secret-key / SecretKeyStore
• new SecretKeyStore(secretKeyType
)
Name | Type |
---|---|
secretKeyType |
KeyType |
• Readonly
secretKeyType: KeyType
▸ Abstract
grantWrite(grantee
): Grant
Name | Type |
---|---|
grantee |
IGrantable |
Grant
▸ Abstract
serialize(): string
string
▸ Static
fromSSMParameter(secretKeyParameter
): SecretKeyStore
Name | Type |
---|---|
secretKeyParameter |
IParameter |
▸ Static
fromSecretsManager(secretKeySecret
): SecretKeyStore
Name | Type |
---|---|
secretKeySecret |
ISecret |
@cloudcomponents/cdk-secret-key / KeyType
• PLAIN_TEXT = "PLAIN_TEXT"
• SECRETS_MANAGER = "SECRETS_MANAGER"
• SSM_PARAMETER = "SSM_PARAMETER"