Class WorkflowBuildOptionsExtensions.InjectionBuildOptions
Provides factories for injecting parameters, secrets, and environment variables into generated workflows.
public sealed class WorkflowBuildOptionsExtensions.InjectionBuildOptions
- Inheritance
-
objectWorkflowBuildOptionsExtensions.InjectionBuildOptions
Constructors
InjectionBuildOptions()
public InjectionBuildOptions()
Methods
EnvironmentVariable(string, Template)
Injects an environment variable into the workflow with the provided value expression.
public WorkflowEnvironmentVariableInjection EnvironmentVariable(string name, Template value)
Parameters
namestringThe name of the environment variable.
valueTemplateThe expression that produces the variable value in the workflow.
Returns
Param(ParamDefinition, Template)
Injects a parameter value into the workflow using the provided expression.
public WorkflowParamInjection Param(ParamDefinition paramDefinition, Template injectionExpression)
Parameters
paramDefinitionParamDefinitionThe definition of the parameter to inject.
injectionExpressionTemplateThe expression that produces the parameter value in the workflow.
Returns
- WorkflowParamInjection
A WorkflowParamInjection option.
Param(string, Template)
Injects a parameter value into the workflow using the provided expression.
public WorkflowParamInjection Param(string paramName, Template injectionExpression)
Parameters
paramNamestringThe name of the parameter to inject.
injectionExpressionTemplateThe expression that produces the parameter value in the workflow.
Returns
- WorkflowParamInjection
A WorkflowParamInjection option.
ParamFromWorkflowEnvironment(string)
Injects a parameter whose value is sourced from the workflow's environment.
public WorkflowParamInjectionFromEnvironment ParamFromWorkflowEnvironment(string name)
Parameters
namestringThe name of the parameter to inject.
Returns
Secret(ParamDefinition)
Injects a secret into the workflow from the platform's secret store.
public WorkflowSecretInjection Secret(ParamDefinition secretDefinition)
Parameters
secretDefinitionParamDefinitionThe definition of the secret parameter to inject.
Returns
Secret(string)
Injects a secret into the workflow from the platform's secret store.
public WorkflowSecretInjection Secret(string secretName)
Parameters
secretNamestringThe name of the secret to inject.
Returns
SecretForSecretProvider(ParamDefinition)
Injects a secret that is resolved by a registered ISecretsProvider at build time, rather than from the platform's secret store.
public WorkflowSecretInjectionForSecretProvider SecretForSecretProvider(ParamDefinition secretDefinition)
Parameters
secretDefinitionParamDefinitionThe definition of the secret parameter to inject.
Returns
SecretForSecretProvider(string)
Injects a secret that is resolved by a registered ISecretsProvider at build time, rather than from the platform's secret store.
public WorkflowSecretInjectionForSecretProvider SecretForSecretProvider(string secretName)
Parameters
secretNamestringThe name of the secret to inject.
Returns
SecretFromWorkflowEnvironment(ParamDefinition)
Injects a secret whose value is sourced from the workflow's environment.
public WorkflowSecretInjectionFromEnvironment SecretFromWorkflowEnvironment(ParamDefinition secretDefinition)
Parameters
secretDefinitionParamDefinitionThe definition of the secret parameter to inject.
Returns
SecretFromWorkflowEnvironment(string)
Injects a secret whose value is sourced from the workflow's environment.
public WorkflowSecretInjectionFromEnvironment SecretFromWorkflowEnvironment(string secretName)
Parameters
secretNamestringThe name of the secret to inject.