@amazon-codecatalyst/blueprint-component.secrets
TypeScript icon, indicating that this package has built-in type declarations

0.3.135 • Public • Published
import { Secret, SecretDefinition } from '@amazon-codecatalyst/blueprint-component.secrets'

Secrets Component

Secrets are used to store sensitive data that can be referenced in workflows. With CodeCatalyst, you can protect these values by adding a secret to your project, and then referencing the secret in your workflow definition file.

Example: Creating a secret

export interface Options extends ParentOptions {
    ...
    mySecret: SecretDefinition;
}


export class Blueprint extends ParentBlueprint {
  constructor(options_: Options) {
    new Secret(this, options.secret);
}

The minimal required default shape looks like:

{
    ...
    "secret": {
        "name": "secretName"
    },

}

The UI component will prompt the user to enter in a secret value and optional description.

For more info on using Secrets in CodeCatalyst, See Working with secrets.

/@amazon-codecatalyst/blueprint-component.secrets/

    Package Sidebar

    Install

    npm i @amazon-codecatalyst/blueprint-component.secrets

    Weekly Downloads

    319

    Version

    0.3.135

    License

    Apache-2.0

    Unpacked Size

    27 kB

    Total Files

    11

    Last publish

    Collaborators

    • alexfors
    • codecatalyst-blueprints-npm-bot
    • cindyzhao