aws-delivlib
Version:
A fabulous library for defining continuous pipelines for building, testing and releasing code libraries.
22 lines (21 loc) • 717 B
TypeScript
import { aws_ssm as ssm, aws_secretsmanager as secretsManager } from 'aws-cdk-lib';
/**
* A Credential Pair combines a secret element (the credential) and a public
* element (the principal). The public element is stored in an SSM Parameter,
* while the secret element is stored in AWS Secrets Manager.
*
* For example, this can be:
* - A username and a password
* - A private key and a certificate
* - An OpenPGP Private key and its public part
*/
export interface ICredentialPair {
/**
* The public part of this credential pair.
*/
readonly principal: ssm.IStringParameter;
/**
* The secret part of this credential pair.
*/
readonly credential: secretsManager.ISecret;
}