This provider is currently in preview.
published on Thursday, May 21, 2026 by Pulumi
This provider is currently in preview.
published on Thursday, May 21, 2026 by Pulumi
Creates or updates Pulumi Deployments settings for a stack using a merge operation. If no settings exist, they are created. If settings already exist, the request body is merged with the current settings using the following logic: for each property, start with the current value, remove it if the patch specifies null, or merge the new non-null value with the existing one. Non-object properties (strings, numbers, booleans) are replaced entirely. Settings include source context (git repository URL, branch, directory), operation context (environment variables, pre-run commands, OIDC configuration), executor context, GitHub integration settings, and cache options. Requires a Team Growth or higher subscription. Cannot be used to configure Pulumi Deployments for Terraform stacks.
Create Settings Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Settings(name: string, args: SettingsArgs, opts?: CustomResourceOptions);@overload
def Settings(resource_name: str,
args: SettingsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Settings(resource_name: str,
opts: Optional[ResourceOptions] = None,
org_name: Optional[str] = None,
project_name: Optional[str] = None,
stack_name: Optional[str] = None,
agent_pool_id: Optional[str] = None,
cache_options: Optional[Any] = None,
executor_context: Optional[Any] = None,
git_hub: Optional[Any] = None,
operation_context: Optional[Any] = None,
source_context: Optional[Any] = None,
tag: Optional[str] = None,
vcs: Optional[Any] = None)func NewSettings(ctx *Context, name string, args SettingsArgs, opts ...ResourceOption) (*Settings, error)public Settings(string name, SettingsArgs args, CustomResourceOptions? opts = null)
public Settings(String name, SettingsArgs args)
public Settings(String name, SettingsArgs args, CustomResourceOptions options)
type: pulumiservice:api/deployments:Settings
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "pulumiservice_api_deployments_settings" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SettingsArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SettingsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SettingsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var settingsResource = new PulumiService.Api.Deployments.Settings("settingsResource", new()
{
OrgName = "string",
ProjectName = "string",
StackName = "string",
AgentPoolID = "string",
CacheOptions = "any",
ExecutorContext = "any",
GitHub = "any",
OperationContext = "any",
SourceContext = "any",
Tag = "string",
Vcs = "any",
});
example, err := deployments.NewSettings(ctx, "settingsResource", &deployments.SettingsArgs{
OrgName: pulumi.String("string"),
ProjectName: pulumi.String("string"),
StackName: pulumi.String("string"),
AgentPoolID: pulumi.String("string"),
CacheOptions: pulumi.Any("any"),
ExecutorContext: pulumi.Any("any"),
GitHub: pulumi.Any("any"),
OperationContext: pulumi.Any("any"),
SourceContext: pulumi.Any("any"),
Tag: pulumi.String("string"),
Vcs: pulumi.Any("any"),
})
resource "pulumiservice_api_deployments_settings" "settingsResource" {
org_name = "string"
project_name = "string"
stack_name = "string"
agent_pool_id = "string"
cache_options = "any"
executor_context = "any"
git_hub = "any"
operation_context = "any"
source_context = "any"
tag = "string"
vcs = "any"
}
var settingsResource = new Settings("settingsResource", SettingsArgs.builder()
.orgName("string")
.projectName("string")
.stackName("string")
.agentPoolID("string")
.cacheOptions("any")
.executorContext("any")
.gitHub("any")
.operationContext("any")
.sourceContext("any")
.tag("string")
.vcs("any")
.build());
settings_resource = pulumiservice.api.deployments.Settings("settingsResource",
org_name="string",
project_name="string",
stack_name="string",
agent_pool_id="string",
cache_options="any",
executor_context="any",
git_hub="any",
operation_context="any",
source_context="any",
tag="string",
vcs="any")
const settingsResource = new pulumiservice.api.deployments.Settings("settingsResource", {
orgName: "string",
projectName: "string",
stackName: "string",
agentPoolID: "string",
cacheOptions: "any",
executorContext: "any",
gitHub: "any",
operationContext: "any",
sourceContext: "any",
tag: "string",
vcs: "any",
});
type: pulumiservice:api/deployments:Settings
properties:
agentPoolID: string
cacheOptions: any
executorContext: any
gitHub: any
operationContext: any
orgName: string
projectName: string
sourceContext: any
stackName: string
tag: string
vcs: any
Settings Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Settings resource accepts the following input properties:
- Org
Name string - The organization name
- Project
Name string - The project name
- Stack
Name string - The stack name
- Agent
Pool stringID - The identifier of the agent pool to use for deployments.
- Cache
Options object - Cache options for the deployment.
- Executor
Context object - The executor context defining the execution environment.
- Git
Hub object - GitHub-specific deployment settings
- Operation
Context object - The operation context defining pre-run and post-run commands and environment variables.
- Source
Context object - The source context defining where the source code is located.
- Tag string
- A tag to identify the deployment settings configuration.
- Vcs object
- VCS provider settings
- Org
Name string - The organization name
- Project
Name string - The project name
- Stack
Name string - The stack name
- Agent
Pool stringID - The identifier of the agent pool to use for deployments.
- Cache
Options interface{} - Cache options for the deployment.
- Executor
Context interface{} - The executor context defining the execution environment.
- Git
Hub interface{} - GitHub-specific deployment settings
- Operation
Context interface{} - The operation context defining pre-run and post-run commands and environment variables.
- Source
Context interface{} - The source context defining where the source code is located.
- Tag string
- A tag to identify the deployment settings configuration.
- Vcs interface{}
- VCS provider settings
- org_
name string - The organization name
- project_
name string - The project name
- stack_
name string - The stack name
- agent_
pool_ stringid - The identifier of the agent pool to use for deployments.
- cache_
options any - Cache options for the deployment.
- executor_
context any - The executor context defining the execution environment.
- git_
hub any - GitHub-specific deployment settings
- operation_
context any - The operation context defining pre-run and post-run commands and environment variables.
- source_
context any - The source context defining where the source code is located.
- tag string
- A tag to identify the deployment settings configuration.
- vcs any
- VCS provider settings
- org
Name String - The organization name
- project
Name String - The project name
- stack
Name String - The stack name
- agent
Pool StringID - The identifier of the agent pool to use for deployments.
- cache
Options Object - Cache options for the deployment.
- executor
Context Object - The executor context defining the execution environment.
- git
Hub Object - GitHub-specific deployment settings
- operation
Context Object - The operation context defining pre-run and post-run commands and environment variables.
- source
Context Object - The source context defining where the source code is located.
- tag String
- A tag to identify the deployment settings configuration.
- vcs Object
- VCS provider settings
- org
Name string - The organization name
- project
Name string - The project name
- stack
Name string - The stack name
- agent
Pool stringID - The identifier of the agent pool to use for deployments.
- cache
Options any - Cache options for the deployment.
- executor
Context any - The executor context defining the execution environment.
- git
Hub any - GitHub-specific deployment settings
- operation
Context any - The operation context defining pre-run and post-run commands and environment variables.
- source
Context any - The source context defining where the source code is located.
- tag string
- A tag to identify the deployment settings configuration.
- vcs any
- VCS provider settings
- org_
name str - The organization name
- project_
name str - The project name
- stack_
name str - The stack name
- agent_
pool_ strid - The identifier of the agent pool to use for deployments.
- cache_
options Any - Cache options for the deployment.
- executor_
context Any - The executor context defining the execution environment.
- git_
hub Any - GitHub-specific deployment settings
- operation_
context Any - The operation context defining pre-run and post-run commands and environment variables.
- source_
context Any - The source context defining where the source code is located.
- tag str
- A tag to identify the deployment settings configuration.
- vcs Any
- VCS provider settings
- org
Name String - The organization name
- project
Name String - The project name
- stack
Name String - The stack name
- agent
Pool StringID - The identifier of the agent pool to use for deployments.
- cache
Options Any - Cache options for the deployment.
- executor
Context Any - The executor context defining the execution environment.
- git
Hub Any - GitHub-specific deployment settings
- operation
Context Any - The operation context defining pre-run and post-run commands and environment variables.
- source
Context Any - The source context defining where the source code is located.
- tag String
- A tag to identify the deployment settings configuration.
- vcs Any
- VCS provider settings
Outputs
All input properties are implicitly available as output properties. Additionally, the Settings resource produces the following output properties:
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
This provider is currently in preview.
published on Thursday, May 21, 2026 by Pulumi