Interface CommandContext

Provides access to the current project configuration.

interface CommandContext {
    autoConfirmEnabled: boolean;
    confidentialValuesLoggingEnabled: boolean;
    credentials?: AwsCredentialIdentity;
    iamGeneratePoliciesInstructionsEnabled: boolean;
    logLevel: LogLevel;
    outputFormat: OutputFormat;
    projectConfig: TakomoProjectConfig;
    projectDir: string;
    quiet: boolean;
    regions: readonly string[];
    resetCache: boolean;
    statisticsEnabled: boolean;
    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.

credentials?: AwsCredentialIdentity

Credentials used to invoke the current operation.

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.

variables: Variables

Variables available in operations.

Generated using TypeDoc