Interface StacksContext

Provides access to the current stack context and project configuration.

interface StacksContext {
    autoConfirmEnabled: boolean;
    confidentialValuesLoggingEnabled: boolean;
    credentialManager: CredentialManager;
    credentials?: AwsCredentialIdentity;
    getStackByExactPath: ((path, stackGroupPath?) => Stack);
    getStacksByPath: ((path, stackGroupPath?) => readonly Stack[]);
    iamGeneratePoliciesInstructionsEnabled: boolean;
    logLevel: LogLevel;
    outputFormat: OutputFormat;
    projectConfig: TakomoProjectConfig;
    projectDir: string;
    quiet: boolean;
    regions: readonly string[];
    resetCache: boolean;
    statisticsEnabled: boolean;
    templateEngine: TemplateEngine;
    variables: Variables;
}

Hierarchy (view full)

Properties

autoConfirmEnabled: boolean

No confirmation to operations is asked if auto-confirm is enabled.

confidentialValuesLoggingEnabled: boolean

Log confidential information during operations.

credentialManager: CredentialManager

Credential manager that provides access to AWS credentials used to invoke the current operation.

credentials?: AwsCredentialIdentity

Credentials used to invoke the current operation.

getStackByExactPath: ((path, stackGroupPath?) => Stack)

Return a stack by exact path or throw an error if no stack is found. The stack path can be relative if stackGroupPath is given.

Type declaration

    • (path, stackGroupPath?): Stack
    • Return a stack by exact path or throw an error if no stack is found. The stack path can be relative if stackGroupPath is given.

      Parameters

      • path: string
      • Optional stackGroupPath: string

      Returns Stack

getStacksByPath: ((path, stackGroupPath?) => readonly Stack[])

Return 0 or more stacks by path. The stack path can be relative if stackGroupPath is given.

Type declaration

    • (path, stackGroupPath?): readonly Stack[]
    • Return 0 or more stacks by path. The stack path can be relative if stackGroupPath is given.

      Parameters

      • path: string
      • Optional stackGroupPath: string

      Returns readonly Stack[]

iamGeneratePoliciesInstructionsEnabled: boolean

Show command to generate IAM policies.

logLevel: LogLevel

Logging level.

outputFormat: OutputFormat

Output format.

projectConfig: TakomoProjectConfig

Project configuration.

projectDir: string

Current project directory containing configuration files.

quiet: boolean

Suppress all logging but the actual command results.

regions: readonly string[]

Supported AWS regions.

resetCache: boolean

Reset cache before executing operation.

statisticsEnabled: boolean

Show statistics collected during operations.

templateEngine: TemplateEngine

Template engine instance.

variables: Variables

Variables available in operations.

Generated using TypeDoc