Internal
The invocation's host context.
Plugin config with this invocation's aws flags applied.
OptionaldefaultRegion?: stringFallback region when region cannot be resolved from config/dotenv/AWS CLI.
OptionalloginOnDemand?: booleanWhen true, attempt aws sso login on-demand when credential export fails for an SSO profile.
Optionalprofile?: stringPreferred AWS profile name (overrides dotenv-derived profile keys when set).
OptionalprofileFallbackKey?: stringDotenv/config fallback key for profile lookup (default AWS_PROFILE).
OptionalprofileKey?: stringDotenv/config key for local profile lookup (default AWS_LOCAL_PROFILE).
Optionalregion?: stringPreferred AWS region (overrides dotenv-derived region key when set).
OptionalregionKey?: stringDotenv/config key for region lookup (default AWS_REGION).
Optionalstrategy?: "none" | "cli-export"Credential acquisition strategy.
'cli-export': resolve via AWS CLI'none': skip credential resolutionThe session.
Establish the AWS session of an invocation once: the first caller (the
awspreSubcommandhook foraws <flags> <child>, else theafterResolvehook) resolves it withcfg(config plus theawsflags) and applies it toprocess.envandctx.plugins.aws; every later caller of the same invocation gets that session back, so an aws child command keeps the session its parent established (#56).An invocation is one composed context: each run composes a new one.