Class LocalWorkspace
LocalWorkspace is a default implementation of the Workspace interface.
A Workspace is the execution context containing a single Pulumi project, a program, and multiple stacks.Workspaces are used to manage the execution environment, providing various utilities such as plugin installation, environment configuration ($PULUMI_HOME), and creation, deletion, and listing of Stacks. LocalWorkspace relies on Pulumi.yaml and Pulumi.{stack}.yaml as the intermediate format for Project and Stack settings.Modifying ProjectSettings will alter the Workspace Pulumi.yaml file, and setting config on a Stack will modify the Pulumi.{stack}.yaml file. This is identical to the behavior of Pulumi CLI driven workspaces. If not provided a working directory - causing LocalWorkspace to create a temp directory, than the temp directory will be cleaned up on Dispose().Implements
Inherited Members
Namespace: Pulumi.Automation
Assembly: Pulumi.Automation.dll
Syntax
public sealed class LocalWorkspace : Workspace, IDisposable
Properties
View SourceEnvironmentVariables
Environment values scoped to the current workspace. These will be supplied to every Pulumi command.
Declaration
public override IDictionary<string, string?>? EnvironmentVariables { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
Overrides
View SourceLogger
A custom logger instance that will be used for the action. Note that it will only be used if Program is also provided.
Declaration
public override ILogger? Logger { get; set; }
Property Value
Type | Description |
---|---|
ILogger |
Overrides
View SourceProgram
The inline program PulumiFn to be used for Preview/Update operations if any.
If none is specified, the stack will refer to ProjectSettings for this information.Declaration
public override PulumiFn? Program { get; set; }
Property Value
Type | Description |
---|---|
PulumiFn |
Overrides
View SourcePulumiHome
The directory override for CLI metadata if set.
This customizes the location of $PULUMI_HOME where metadata is stored and plugins are installed.Declaration
public override string? PulumiHome { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
View SourcePulumiVersion
The version of the underlying Pulumi CLI/Engine.
Declaration
public override string PulumiVersion { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
View SourceSecretsProvider
The secrets provider to use for encryption and decryption of stack secrets.
See: https://www.pulumi.com/docs/intro/concepts/secrets/#available-encryption-providersDeclaration
public override string? SecretsProvider { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
View SourceWorkDir
The working directory to run Pulumi CLI commands.
Declaration
public override string WorkDir { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
View SourceCreateAsync(LocalWorkspaceOptions?, CancellationToken)
Creates a workspace using the specified options. Used for maximal control and customization of the underlying environment before any stacks are created or selected.
Declaration
public static Task<LocalWorkspace> CreateAsync(LocalWorkspaceOptions? options = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
LocalWorkspaceOptions | options | Options used to configure the workspace. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task<LocalWorkspace> |
CreateOrSelectStackAsync(InlineProgramArgs, CancellationToken)
Creates or selects an existing Stack with a LocalWorkspace utilizing the specified inline (in process) Program. This program is fully debuggable and runs in process. If no ProjectSettings option is specified, default project settings will be created on behalf of the user. Similarly, unless a WorkDir option is specified, the working directory will default to a new temporary directory provided by the OS.
Declaration
public static Task<WorkspaceStack> CreateOrSelectStackAsync(InlineProgramArgs args, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
InlineProgramArgs | args | A set of arguments to initialize a Stack with an inline PulumiFn program that runs in process, as well as any additional customizations to be applied to the workspace. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task<WorkspaceStack> |
CreateOrSelectStackAsync(InlineProgramArgs)
Creates or selects an existing Stack with a LocalWorkspace utilizing the specified inline (in process) Program. This program is fully debuggable and runs in process. If no ProjectSettings option is specified, default project settings will be created on behalf of the user. Similarly, unless a WorkDir option is specified, the working directory will default to a new temporary directory provided by the OS.
Declaration
public static Task<WorkspaceStack> CreateOrSelectStackAsync(InlineProgramArgs args)
Parameters
Type | Name | Description |
---|---|---|
InlineProgramArgs | args | A set of arguments to initialize a Stack with an inline PulumiFn program that runs in process, as well as any additional customizations to be applied to the workspace. |
Returns
Type | Description |
---|---|
Task<WorkspaceStack> |
CreateOrSelectStackAsync(LocalProgramArgs, CancellationToken)
Creates or selects an existing Stack with a LocalWorkspace utilizing the local Pulumi CLI program from the specified WorkDir. This is a way to create drivers on top of pre-existing Pulumi programs. This Workspace will pick up any available Settings files(Pulumi.yaml, Pulumi.{stack}.yaml).
Declaration
public static Task<WorkspaceStack> CreateOrSelectStackAsync(LocalProgramArgs args, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
LocalProgramArgs | args | A set of arguments to initialize a Stack with a pre-configured Pulumi CLI program that already exists on disk, as well as any additional customizations to be applied to the workspace. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task<WorkspaceStack> |
CreateOrSelectStackAsync(LocalProgramArgs)
Creates or selects an existing Stack with a LocalWorkspace utilizing the local Pulumi CLI program from the specified WorkDir. This is a way to create drivers on top of pre-existing Pulumi programs. This Workspace will pick up any available Settings files(Pulumi.yaml, Pulumi.{stack}.yaml).
Declaration
public static Task<WorkspaceStack> CreateOrSelectStackAsync(LocalProgramArgs args)
Parameters
Type | Name | Description |
---|---|---|
LocalProgramArgs | args | A set of arguments to initialize a Stack with a pre-configured Pulumi CLI program that already exists on disk, as well as any additional customizations to be applied to the workspace. |
Returns
Type | Description |
---|---|
Task<WorkspaceStack> |
CreateStackAsync(InlineProgramArgs, CancellationToken)
Creates a Stack with a LocalWorkspace utilizing the specified inline (in process) Program. This program is fully debuggable and runs in process. If no ProjectSettings option is specified, default project settings will be created on behalf of the user. Similarly, unless a WorkDir option is specified, the working directory will default to a new temporary directory provided by the OS.
Declaration
public static Task<WorkspaceStack> CreateStackAsync(InlineProgramArgs args, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
InlineProgramArgs | args | A set of arguments to initialize a Stack with an inline PulumiFn program that runs in process, as well as any additional customizations to be applied to the workspace. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task<WorkspaceStack> |
CreateStackAsync(InlineProgramArgs)
Creates a Stack with a LocalWorkspace utilizing the specified inline (in process) Program. This program is fully debuggable and runs in process. If no ProjectSettings option is specified, default project settings will be created on behalf of the user. Similarly, unless a WorkDir option is specified, the working directory will default to a new temporary directory provided by the OS.
Declaration
public static Task<WorkspaceStack> CreateStackAsync(InlineProgramArgs args)
Parameters
Type | Name | Description |
---|---|---|
InlineProgramArgs | args | A set of arguments to initialize a Stack with an inline PulumiFn program that runs in process, as well as any additional customizations to be applied to the workspace. |
Returns
Type | Description |
---|---|
Task<WorkspaceStack> |
CreateStackAsync(LocalProgramArgs, CancellationToken)
Creates a Stack with a LocalWorkspace utilizing the local Pulumi CLI program from the specified WorkDir. This is a way to create drivers on top of pre-existing Pulumi programs. This Workspace will pick up any available Settings files(Pulumi.yaml, Pulumi.{stack}.yaml).
Declaration
public static Task<WorkspaceStack> CreateStackAsync(LocalProgramArgs args, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
LocalProgramArgs | args | A set of arguments to initialize a Stack with a pre-configured Pulumi CLI program that already exists on disk, as well as any additional customizations to be applied to the workspace. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task<WorkspaceStack> |
CreateStackAsync(LocalProgramArgs)
Creates a Stack with a LocalWorkspace utilizing the local Pulumi CLI program from the specified WorkDir. This is a way to create drivers on top of pre-existing Pulumi programs. This Workspace will pick up any available Settings files(Pulumi.yaml, Pulumi.{stack}.yaml).
Declaration
public static Task<WorkspaceStack> CreateStackAsync(LocalProgramArgs args)
Parameters
Type | Name | Description |
---|---|---|
LocalProgramArgs | args | A set of arguments to initialize a Stack with a pre-configured Pulumi CLI program that already exists on disk, as well as any additional customizations to be applied to the workspace. |
Returns
Type | Description |
---|---|
Task<WorkspaceStack> |
CreateStackAsync(string, CancellationToken)
Creates and sets a new stack with the specified stack name, failing if one already exists.
Declaration
public override Task CreateStackAsync(string stackName, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The stack to create. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task |
Overrides
Exceptions
Type | Condition |
---|---|
StackAlreadyExistsException | If a stack already exists by the provided name. |
Dispose()
Declaration
public override void Dispose()
Overrides
View SourceExportStackAsync(string, CancellationToken)
Exports the deployment state of the stack.
This can be combined with ImportStackAsync to edit a stack's state (such as recovery from failed deployments).Declaration
public override Task<StackDeployment> ExportStackAsync(string stackName, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<StackDeployment> |
Overrides
View SourceGetAllConfigAsync(string, CancellationToken)
Returns the config map for the specified stack name, scoped to the current Workspace.
Declaration
public override Task<ImmutableDictionary<string, ConfigValue>> GetAllConfigAsync(string stackName, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The name of the stack to read config from. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task<ImmutableDictionary<string, ConfigValue>> |
Overrides
View SourceGetConfigAsync(string, string, CancellationToken)
Returns the value associated with the specified stack name and key, scoped to the Workspace.
Declaration
public override Task<ConfigValue> GetConfigAsync(string stackName, string key, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The name of the stack to read config from. |
string | key | The key to use for the config lookup. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task<ConfigValue> |
Overrides
View SourceGetProjectSettingsAsync(CancellationToken)
Returns project settings for the current project if any.
Declaration
public override Task<ProjectSettings?> GetProjectSettingsAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<ProjectSettings> |
Overrides
View SourceGetStackOutputsAsync(string, CancellationToken)
Gets the current set of Stack outputs from the last UpAsync(UpOptions?, CancellationToken).
Declaration
public override Task<ImmutableDictionary<string, OutputValue>> GetStackOutputsAsync(string stackName, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The name of the stack. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task<ImmutableDictionary<string, OutputValue>> |
Overrides
View SourceGetStackSettingsAsync(string, CancellationToken)
Returns stack settings for the stack matching the specified stack name if any.
Declaration
public override Task<StackSettings?> GetStackSettingsAsync(string stackName, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The name of the stack. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task<StackSettings> |
Overrides
View SourceGetTagAsync(string, string, CancellationToken)
Returns the value associated with the specified stack name and key, scoped to the Workspace.
Declaration
public override Task<string> GetTagAsync(string stackName, string key, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The name of the stack to read tag metadata from. |
string | key | The key to use for the tag lookup. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task<string> |
Overrides
View SourceImportStackAsync(string, StackDeployment, CancellationToken)
Imports the specified deployment state into a pre-existing stack.
This can be combined with ExportStackAsync to edit a stack's state (such as recovery from failed deployments).Declaration
public override Task ImportStackAsync(string stackName, StackDeployment state, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | |
StackDeployment | state | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |
Overrides
View SourceInstallPluginAsync(string, string, PluginKind, PluginInstallOptions?, CancellationToken)
Installs a plugin in the Workspace, for example to use cloud providers like AWS or GCP.
Declaration
public override Task InstallPluginAsync(string name, string version, PluginKind kind = PluginKind.Resource, PluginInstallOptions? options = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the plugin. |
string | version | The version of the plugin e.g. "v1.0.0". |
PluginKind | kind | The kind of plugin e.g. "resource". |
PluginInstallOptions | options | Any additional plugin installation options. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task |
Overrides
View SourceListPluginsAsync(CancellationToken)
Returns a list of all plugins installed in the Workspace.
Declaration
public override Task<ImmutableList<PluginInfo>> ListPluginsAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<ImmutableList<PluginInfo>> |
Overrides
View SourceListStacksAsync(CancellationToken)
Returns all stacks created under the current project.
This queries underlying backend and may return stacks not present in the Workspace (as Pulumi.{stack}.yaml files).Declaration
public override Task<ImmutableList<StackSummary>> ListStacksAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<ImmutableList<StackSummary>> |
Overrides
View SourceListTagsAsync(string, CancellationToken)
Returns the tag map for the specified stack name, scoped to the current Workspace.
Declaration
public override Task<Dictionary<string, string>> ListTagsAsync(string stackName, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The stack to operate on. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task<Dictionary<string, string>> |
Overrides
View SourcePostCommandCallbackAsync(string, CancellationToken)
Hook executed after every command. Called with the stack name.
An extensibility point to perform workspace cleanup (CLI operations may create/modify a Pulumi.stack.yaml). LocalWorkspace does not utilize this extensibility point.Declaration
public override Task PostCommandCallbackAsync(string stackName, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The name of the stack. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task |
Overrides
View SourceRefreshConfigAsync(string, CancellationToken)
Gets and sets the config map used with the last update for the stack matching the specified stack name.
Declaration
public override Task<ImmutableDictionary<string, ConfigValue>> RefreshConfigAsync(string stackName, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The name of the stack to operate on. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task<ImmutableDictionary<string, ConfigValue>> |
Overrides
View SourceRemoveAllConfigAsync(string, IEnumerable<string>, CancellationToken)
Removes all values in the provided key collection from the config map for the specified stack name.
Declaration
public override Task RemoveAllConfigAsync(string stackName, IEnumerable<string> keys, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The name of the stack to operate on. |
IEnumerable<string> | keys | The collection of keys to remove from the underlying config map. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task |
Overrides
View SourceRemoveConfigAsync(string, string, CancellationToken)
Removes the specified key-value pair from the provided stack's config.
Declaration
public override Task RemoveConfigAsync(string stackName, string key, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The name of the stack to operate on. |
string | key | The config key to remove. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task |
Overrides
View SourceRemovePluginAsync(string?, string?, PluginKind, CancellationToken)
Removes a plugin from the Workspace matching the specified name and version.
Declaration
public override Task RemovePluginAsync(string? name = null, string? versionRange = null, PluginKind kind = PluginKind.Resource, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | name | The optional name of the plugin. |
string | versionRange | The optional semver range to check when removing plugins matching the given name e.g. "1.0.0", ">1.0.0". |
PluginKind | kind | The kind of plugin e.g. "resource". |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task |
Overrides
View SourceRemoveStackAsync(string, CancellationToken)
Deletes the stack and all associated configuration and history.
Declaration
public override Task RemoveStackAsync(string stackName, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The stack to remove. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task |
Overrides
View SourceRemoveTagAsync(string, string, CancellationToken)
Sets the specified key-value pair on the provided stack name.
Declaration
public override Task RemoveTagAsync(string stackName, string key, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The stack to operate on. |
string | key | The tag key to set. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task |
Overrides
View SourceSaveProjectSettingsAsync(ProjectSettings, CancellationToken)
Overwrites the settings for the current project.
There can only be a single project per workspace. Fails if new project name does not match old.Declaration
public override Task SaveProjectSettingsAsync(ProjectSettings settings, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ProjectSettings | settings | The settings object to save. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task |
Overrides
View SourceSaveStackSettingsAsync(string, StackSettings, CancellationToken)
Overwrite the settings for the stack matching the specified stack name.
Declaration
public override Task SaveStackSettingsAsync(string stackName, StackSettings settings, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The name of the stack to operate on. |
StackSettings | settings | The settings object to save. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task |
Overrides
View SourceSelectStackAsync(InlineProgramArgs, CancellationToken)
Selects an existing Stack with a LocalWorkspace utilizing the specified inline (in process) Program. This program is fully debuggable and runs in process. If no ProjectSettings option is specified, default project settings will be created on behalf of the user. Similarly, unless a WorkDir option is specified, the working directory will default to a new temporary directory provided by the OS.
Declaration
public static Task<WorkspaceStack> SelectStackAsync(InlineProgramArgs args, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
InlineProgramArgs | args | A set of arguments to initialize a Stack with an inline PulumiFn program that runs in process, as well as any additional customizations to be applied to the workspace. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task<WorkspaceStack> |
SelectStackAsync(InlineProgramArgs)
Selects an existing Stack with a LocalWorkspace utilizing the specified inline (in process) Program. This program is fully debuggable and runs in process. If no ProjectSettings option is specified, default project settings will be created on behalf of the user. Similarly, unless a WorkDir option is specified, the working directory will default to a new temporary directory provided by the OS.
Declaration
public static Task<WorkspaceStack> SelectStackAsync(InlineProgramArgs args)
Parameters
Type | Name | Description |
---|---|---|
InlineProgramArgs | args | A set of arguments to initialize a Stack with an inline PulumiFn program that runs in process, as well as any additional customizations to be applied to the workspace. |
Returns
Type | Description |
---|---|
Task<WorkspaceStack> |
SelectStackAsync(LocalProgramArgs, CancellationToken)
Selects an existing Stack with a LocalWorkspace utilizing the local Pulumi CLI program from the specified WorkDir. This is a way to create drivers on top of pre-existing Pulumi programs. This Workspace will pick up any available Settings files(Pulumi.yaml, Pulumi.{stack}.yaml).
Declaration
public static Task<WorkspaceStack> SelectStackAsync(LocalProgramArgs args, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
LocalProgramArgs | args | A set of arguments to initialize a Stack with a pre-configured Pulumi CLI program that already exists on disk, as well as any additional customizations to be applied to the workspace. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task<WorkspaceStack> |
SelectStackAsync(LocalProgramArgs)
Selects an existing Stack with a LocalWorkspace utilizing the local Pulumi CLI program from the specified WorkDir. This is a way to create drivers on top of pre-existing Pulumi programs. This Workspace will pick up any available Settings files(Pulumi.yaml, Pulumi.{stack}.yaml).
Declaration
public static Task<WorkspaceStack> SelectStackAsync(LocalProgramArgs args)
Parameters
Type | Name | Description |
---|---|---|
LocalProgramArgs | args | A set of arguments to initialize a Stack with a pre-configured Pulumi CLI program that already exists on disk, as well as any additional customizations to be applied to the workspace. |
Returns
Type | Description |
---|---|
Task<WorkspaceStack> |
SelectStackAsync(string, CancellationToken)
Selects and sets an existing stack matching the stack name, failing if none exists.
Declaration
public override Task SelectStackAsync(string stackName, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The stack to select. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task |
Overrides
View SourceSerializeArgsForOpAsync(string, CancellationToken)
Hook to provide additional args to every CLI command before they are executed.
Provided with a stack name, returns an array of args to append to an invoked command["--config=...", ]
.
LocalWorkspace does not utilize this extensibility point.
Declaration
public override Task<ImmutableList<string>> SerializeArgsForOpAsync(string stackName, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The name of the stack. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task<ImmutableList<string>> |
Overrides
View SourceSetAllConfigAsync(string, IDictionary<string, ConfigValue>, CancellationToken)
Sets all values in the provided config map for the specified stack name.
Declaration
public override Task SetAllConfigAsync(string stackName, IDictionary<string, ConfigValue> configMap, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The name of the stack to operate on. |
IDictionary<string, ConfigValue> | configMap | The config map to upsert against the existing config. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task |
Overrides
View SourceSetConfigAsync(string, string, ConfigValue, CancellationToken)
Sets the specified key-value pair in the provided stack's config.
Declaration
public override Task SetConfigAsync(string stackName, string key, ConfigValue value, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The name of the stack to operate on. |
string | key | The config key to set. |
ConfigValue | value | The config value to set. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task |
Overrides
View SourceSetTagAsync(string, string, string, CancellationToken)
Sets the specified key-value pair on the provided stack name.
Declaration
public override Task SetTagAsync(string stackName, string key, string value, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | stackName | The stack to operate on. |
string | key | The tag key to set. |
string | value | The tag value to set. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task |
Overrides
View SourceWhoAmIAsync(CancellationToken)
Returns the currently authenticated user.
Declaration
public override Task<WhoAmIResult> WhoAmIAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<WhoAmIResult> |