This resource manages automatic release trigger based on new version of referenced package.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as octopusdeploy from "@pulumi/octopusdeploy";
const example = new octopusdeploy.ProjectGroup("example", {
name: "Example",
description: "Example Group",
});
const exampleProject = new octopusdeploy.Project("example", {
name: "Example",
lifecycleId: "Lifecycles-101",
projectGroupId: example.id,
defaultGuidedFailureMode: "EnvironmentDefault",
defaultToSkipIfAlreadyInstalled: false,
description: "Project with Built-In Trigger",
discreteChannelRelease: false,
isDisabled: false,
isDiscreteChannelRelease: false,
isVersionControlled: false,
tenantedDeploymentParticipation: "Untenanted",
includedLibraryVariableSets: [],
connectivityPolicies: [{
allowDeploymentsToNoTargets: false,
excludeUnhealthyTargets: false,
skipMachineBehavior: "SkipUnavailableMachines",
}],
});
const exampleChannel = new octopusdeploy.Channel("example", {
name: "Example Channel",
projectId: exampleProject.id,
lifecycleId: "Lifecycles-101",
});
const builtIn = octopusdeploy.getFeeds({
feedType: "BuiltIn",
ids: null,
partialName: "",
skip: 0,
take: 1,
});
const exampleDeploymentProcess = new octopusdeploy.DeploymentProcess("example", {
projectId: exampleProject.id,
steps: [{
condition: "Success",
name: "Step One",
packageRequirement: "LetOctopusDecide",
startTrigger: "StartAfterPrevious",
runScriptActions: [{
condition: "Success",
isDisabled: false,
isRequired: true,
name: "Action One",
scriptBody: `ExtractedPath = OctopusParameters[\\"Octopus.Action.Package[my.package].ExtractedPath\\"]
Write-Host ExtractedPath
`,
runOnServer: true,
packages: [{
name: "my.package",
packageId: "my.package",
feedId: builtIn.then(builtIn => builtIn.feeds?.[0]?.id),
acquisitionLocation: "Server",
extractDuringDeployment: true,
}],
}],
}],
});
const exampleBuiltInTrigger = new octopusdeploy.BuiltInTrigger("example", {
projectId: exampleProject.id,
channelId: exampleChannel.channelId,
releaseCreationPackage: {
deploymentAction: "Action One",
packageReference: "my.package",
},
}, {
dependsOn: [
exampleProject,
exampleChannel,
exampleDeploymentProcess,
],
});
import pulumi
import pulumi_octopusdeploy as octopusdeploy
example = octopusdeploy.ProjectGroup("example",
name="Example",
description="Example Group")
example_project = octopusdeploy.Project("example",
name="Example",
lifecycle_id="Lifecycles-101",
project_group_id=example.id,
default_guided_failure_mode="EnvironmentDefault",
default_to_skip_if_already_installed=False,
description="Project with Built-In Trigger",
discrete_channel_release=False,
is_disabled=False,
is_discrete_channel_release=False,
is_version_controlled=False,
tenanted_deployment_participation="Untenanted",
included_library_variable_sets=[],
connectivity_policies=[{
"allow_deployments_to_no_targets": False,
"exclude_unhealthy_targets": False,
"skip_machine_behavior": "SkipUnavailableMachines",
}])
example_channel = octopusdeploy.Channel("example",
name="Example Channel",
project_id=example_project.id,
lifecycle_id="Lifecycles-101")
built_in = octopusdeploy.get_feeds(feed_type="BuiltIn",
ids=None,
partial_name="",
skip=0,
take=1)
example_deployment_process = octopusdeploy.DeploymentProcess("example",
project_id=example_project.id,
steps=[{
"condition": "Success",
"name": "Step One",
"package_requirement": "LetOctopusDecide",
"start_trigger": "StartAfterPrevious",
"run_script_actions": [{
"condition": "Success",
"is_disabled": False,
"is_required": True,
"name": "Action One",
"script_body": """$ExtractedPath = $OctopusParameters[\"Octopus.Action.Package[my.package].ExtractedPath\"]
Write-Host $ExtractedPath
""",
"run_on_server": True,
"packages": [{
"name": "my.package",
"package_id": "my.package",
"feed_id": built_in.feeds[0].id,
"acquisition_location": "Server",
"extract_during_deployment": True,
}],
}],
}])
example_built_in_trigger = octopusdeploy.BuiltInTrigger("example",
project_id=example_project.id,
channel_id=example_channel.channel_id,
release_creation_package={
"deployment_action": "Action One",
"package_reference": "my.package",
},
opts = pulumi.ResourceOptions(depends_on=[
example_project,
example_channel,
example_deployment_process,
]))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/octopusdeploy/octopusdeploy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := octopusdeploy.NewProjectGroup(ctx, "example", &octopusdeploy.ProjectGroupArgs{
Name: pulumi.String("Example"),
Description: pulumi.String("Example Group"),
})
if err != nil {
return err
}
exampleProject, err := octopusdeploy.NewProject(ctx, "example", &octopusdeploy.ProjectArgs{
Name: pulumi.String("Example"),
LifecycleId: pulumi.String("Lifecycles-101"),
ProjectGroupId: example.ID(),
DefaultGuidedFailureMode: pulumi.String("EnvironmentDefault"),
DefaultToSkipIfAlreadyInstalled: pulumi.Bool(false),
Description: pulumi.String("Project with Built-In Trigger"),
DiscreteChannelRelease: pulumi.Bool(false),
IsDisabled: pulumi.Bool(false),
IsDiscreteChannelRelease: pulumi.Bool(false),
IsVersionControlled: pulumi.Bool(false),
TenantedDeploymentParticipation: pulumi.String("Untenanted"),
IncludedLibraryVariableSets: pulumi.StringArray{},
ConnectivityPolicies: octopusdeploy.ProjectConnectivityPolicyArray{
&octopusdeploy.ProjectConnectivityPolicyArgs{
AllowDeploymentsToNoTargets: pulumi.Bool(false),
ExcludeUnhealthyTargets: pulumi.Bool(false),
SkipMachineBehavior: pulumi.String("SkipUnavailableMachines"),
},
},
})
if err != nil {
return err
}
exampleChannel, err := octopusdeploy.NewChannel(ctx, "example", &octopusdeploy.ChannelArgs{
Name: pulumi.String("Example Channel"),
ProjectId: exampleProject.ID(),
LifecycleId: pulumi.String("Lifecycles-101"),
})
if err != nil {
return err
}
builtIn, err := octopusdeploy.GetFeeds(ctx, &octopusdeploy.GetFeedsArgs{
FeedType: pulumi.StringRef("BuiltIn"),
Ids: nil,
PartialName: pulumi.StringRef(""),
Skip: pulumi.Float64Ref(0),
Take: pulumi.Float64Ref(1),
}, nil)
if err != nil {
return err
}
exampleDeploymentProcess, err := octopusdeploy.NewDeploymentProcess(ctx, "example", &octopusdeploy.DeploymentProcessArgs{
ProjectId: exampleProject.ID(),
Steps: octopusdeploy.DeploymentProcessStepArray{
&octopusdeploy.DeploymentProcessStepArgs{
Condition: pulumi.String("Success"),
Name: pulumi.String("Step One"),
PackageRequirement: pulumi.String("LetOctopusDecide"),
StartTrigger: pulumi.String("StartAfterPrevious"),
RunScriptActions: octopusdeploy.DeploymentProcessStepRunScriptActionArray{
&octopusdeploy.DeploymentProcessStepRunScriptActionArgs{
Condition: pulumi.String("Success"),
IsDisabled: pulumi.Bool(false),
IsRequired: pulumi.Bool(true),
Name: pulumi.String("Action One"),
ScriptBody: pulumi.String("$ExtractedPath = $OctopusParameters[\\\"Octopus.Action.Package[my.package].ExtractedPath\\\"]\nWrite-Host $ExtractedPath\n"),
RunOnServer: pulumi.Bool(true),
Packages: octopusdeploy.DeploymentProcessStepRunScriptActionPackageArray{
&octopusdeploy.DeploymentProcessStepRunScriptActionPackageArgs{
Name: pulumi.String("my.package"),
PackageId: pulumi.String("my.package"),
FeedId: pulumi.String(builtIn.Feeds[0].Id),
AcquisitionLocation: pulumi.String("Server"),
ExtractDuringDeployment: pulumi.Bool(true),
},
},
},
},
},
},
})
if err != nil {
return err
}
_, err = octopusdeploy.NewBuiltInTrigger(ctx, "example", &octopusdeploy.BuiltInTriggerArgs{
ProjectId: exampleProject.ID(),
ChannelId: exampleChannel.ChannelId,
ReleaseCreationPackage: &octopusdeploy.BuiltInTriggerReleaseCreationPackageArgs{
DeploymentAction: pulumi.String("Action One"),
PackageReference: pulumi.String("my.package"),
},
}, pulumi.DependsOn([]pulumi.Resource{
exampleProject,
exampleChannel,
exampleDeploymentProcess,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Octopusdeploy = Pulumi.Octopusdeploy;
return await Deployment.RunAsync(() =>
{
var example = new Octopusdeploy.ProjectGroup("example", new()
{
Name = "Example",
Description = "Example Group",
});
var exampleProject = new Octopusdeploy.Project("example", new()
{
Name = "Example",
LifecycleId = "Lifecycles-101",
ProjectGroupId = example.Id,
DefaultGuidedFailureMode = "EnvironmentDefault",
DefaultToSkipIfAlreadyInstalled = false,
Description = "Project with Built-In Trigger",
DiscreteChannelRelease = false,
IsDisabled = false,
IsDiscreteChannelRelease = false,
IsVersionControlled = false,
TenantedDeploymentParticipation = "Untenanted",
IncludedLibraryVariableSets = new[] {},
ConnectivityPolicies = new[]
{
new Octopusdeploy.Inputs.ProjectConnectivityPolicyArgs
{
AllowDeploymentsToNoTargets = false,
ExcludeUnhealthyTargets = false,
SkipMachineBehavior = "SkipUnavailableMachines",
},
},
});
var exampleChannel = new Octopusdeploy.Channel("example", new()
{
Name = "Example Channel",
ProjectId = exampleProject.Id,
LifecycleId = "Lifecycles-101",
});
var builtIn = Octopusdeploy.GetFeeds.Invoke(new()
{
FeedType = "BuiltIn",
Ids = null,
PartialName = "",
Skip = 0,
Take = 1,
});
var exampleDeploymentProcess = new Octopusdeploy.DeploymentProcess("example", new()
{
ProjectId = exampleProject.Id,
Steps = new[]
{
new Octopusdeploy.Inputs.DeploymentProcessStepArgs
{
Condition = "Success",
Name = "Step One",
PackageRequirement = "LetOctopusDecide",
StartTrigger = "StartAfterPrevious",
RunScriptActions = new[]
{
new Octopusdeploy.Inputs.DeploymentProcessStepRunScriptActionArgs
{
Condition = "Success",
IsDisabled = false,
IsRequired = true,
Name = "Action One",
ScriptBody = @"$ExtractedPath = $OctopusParameters[\""Octopus.Action.Package[my.package].ExtractedPath\""]
Write-Host $ExtractedPath
",
RunOnServer = true,
Packages = new[]
{
new Octopusdeploy.Inputs.DeploymentProcessStepRunScriptActionPackageArgs
{
Name = "my.package",
PackageId = "my.package",
FeedId = builtIn.Apply(getFeedsResult => getFeedsResult.Feeds[0]?.Id),
AcquisitionLocation = "Server",
ExtractDuringDeployment = true,
},
},
},
},
},
},
});
var exampleBuiltInTrigger = new Octopusdeploy.BuiltInTrigger("example", new()
{
ProjectId = exampleProject.Id,
ChannelId = exampleChannel.ChannelId,
ReleaseCreationPackage = new Octopusdeploy.Inputs.BuiltInTriggerReleaseCreationPackageArgs
{
DeploymentAction = "Action One",
PackageReference = "my.package",
},
}, new CustomResourceOptions
{
DependsOn =
{
exampleProject,
exampleChannel,
exampleDeploymentProcess,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.octopusdeploy.ProjectGroup;
import com.pulumi.octopusdeploy.ProjectGroupArgs;
import com.pulumi.octopusdeploy.Project;
import com.pulumi.octopusdeploy.ProjectArgs;
import com.pulumi.octopusdeploy.inputs.ProjectConnectivityPolicyArgs;
import com.pulumi.octopusdeploy.Channel;
import com.pulumi.octopusdeploy.ChannelArgs;
import com.pulumi.octopusdeploy.OctopusdeployFunctions;
import com.pulumi.octopusdeploy.inputs.GetFeedsArgs;
import com.pulumi.octopusdeploy.DeploymentProcess;
import com.pulumi.octopusdeploy.DeploymentProcessArgs;
import com.pulumi.octopusdeploy.inputs.DeploymentProcessStepArgs;
import com.pulumi.octopusdeploy.BuiltInTrigger;
import com.pulumi.octopusdeploy.BuiltInTriggerArgs;
import com.pulumi.octopusdeploy.inputs.BuiltInTriggerReleaseCreationPackageArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ProjectGroup("example", ProjectGroupArgs.builder()
.name("Example")
.description("Example Group")
.build());
var exampleProject = new Project("exampleProject", ProjectArgs.builder()
.name("Example")
.lifecycleId("Lifecycles-101")
.projectGroupId(example.id())
.defaultGuidedFailureMode("EnvironmentDefault")
.defaultToSkipIfAlreadyInstalled(false)
.description("Project with Built-In Trigger")
.discreteChannelRelease(false)
.isDisabled(false)
.isDiscreteChannelRelease(false)
.isVersionControlled(false)
.tenantedDeploymentParticipation("Untenanted")
.includedLibraryVariableSets()
.connectivityPolicies(ProjectConnectivityPolicyArgs.builder()
.allowDeploymentsToNoTargets(false)
.excludeUnhealthyTargets(false)
.skipMachineBehavior("SkipUnavailableMachines")
.build())
.build());
var exampleChannel = new Channel("exampleChannel", ChannelArgs.builder()
.name("Example Channel")
.projectId(exampleProject.id())
.lifecycleId("Lifecycles-101")
.build());
final var builtIn = OctopusdeployFunctions.getFeeds(GetFeedsArgs.builder()
.feedType("BuiltIn")
.ids(null)
.partialName("")
.skip(0)
.take(1)
.build());
var exampleDeploymentProcess = new DeploymentProcess("exampleDeploymentProcess", DeploymentProcessArgs.builder()
.projectId(exampleProject.id())
.steps(DeploymentProcessStepArgs.builder()
.condition("Success")
.name("Step One")
.packageRequirement("LetOctopusDecide")
.startTrigger("StartAfterPrevious")
.runScriptActions(DeploymentProcessStepRunScriptActionArgs.builder()
.condition("Success")
.isDisabled(false)
.isRequired(true)
.name("Action One")
.scriptBody("""
$ExtractedPath = $OctopusParameters[\"Octopus.Action.Package[my.package].ExtractedPath\"]
Write-Host $ExtractedPath
""")
.runOnServer(true)
.packages(DeploymentProcessStepRunScriptActionPackageArgs.builder()
.name("my.package")
.packageId("my.package")
.feedId(builtIn.feeds()[0].id())
.acquisitionLocation("Server")
.extractDuringDeployment(true)
.build())
.build())
.build())
.build());
var exampleBuiltInTrigger = new BuiltInTrigger("exampleBuiltInTrigger", BuiltInTriggerArgs.builder()
.projectId(exampleProject.id())
.channelId(exampleChannel.channelId())
.releaseCreationPackage(BuiltInTriggerReleaseCreationPackageArgs.builder()
.deploymentAction("Action One")
.packageReference("my.package")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(
exampleProject,
exampleChannel,
exampleDeploymentProcess)
.build());
}
}
resources:
example:
type: octopusdeploy:ProjectGroup
properties:
name: Example
description: Example Group
exampleProject:
type: octopusdeploy:Project
name: example
properties:
name: Example
lifecycleId: Lifecycles-101
projectGroupId: ${example.id}
defaultGuidedFailureMode: EnvironmentDefault
defaultToSkipIfAlreadyInstalled: false
description: Project with Built-In Trigger
discreteChannelRelease: false
isDisabled: false
isDiscreteChannelRelease: false
isVersionControlled: false
tenantedDeploymentParticipation: Untenanted
includedLibraryVariableSets: []
connectivityPolicies:
- allowDeploymentsToNoTargets: false
excludeUnhealthyTargets: false
skipMachineBehavior: SkipUnavailableMachines
exampleChannel:
type: octopusdeploy:Channel
name: example
properties:
name: Example Channel
projectId: ${exampleProject.id}
lifecycleId: Lifecycles-101
exampleDeploymentProcess:
type: octopusdeploy:DeploymentProcess
name: example
properties:
projectId: ${exampleProject.id}
steps:
- condition: Success
name: Step One
packageRequirement: LetOctopusDecide
startTrigger: StartAfterPrevious
runScriptActions:
- condition: Success
isDisabled: false
isRequired: true
name: Action One
scriptBody: |
$ExtractedPath = $OctopusParameters[\"Octopus.Action.Package[my.package].ExtractedPath\"]
Write-Host $ExtractedPath
runOnServer: true
packages:
- name: my.package
packageId: my.package
feedId: ${builtIn.feeds[0].id}
acquisitionLocation: Server
extractDuringDeployment: true
exampleBuiltInTrigger:
type: octopusdeploy:BuiltInTrigger
name: example
properties:
projectId: ${exampleProject.id}
channelId: ${exampleChannel.channelId}
releaseCreationPackage:
deploymentAction: Action One
packageReference: my.package
options:
dependsOn:
- ${exampleProject}
- ${exampleChannel}
- ${exampleDeploymentProcess}
variables:
builtIn:
fn::invoke:
function: octopusdeploy:getFeeds
arguments:
feedType: BuiltIn
ids: null
partialName: ""
skip: 0
take: 1
Create BuiltInTrigger Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BuiltInTrigger(name: string, args: BuiltInTriggerArgs, opts?: CustomResourceOptions);@overload
def BuiltInTrigger(resource_name: str,
args: BuiltInTriggerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BuiltInTrigger(resource_name: str,
opts: Optional[ResourceOptions] = None,
channel_id: Optional[str] = None,
project_id: Optional[str] = None,
release_creation_package: Optional[BuiltInTriggerReleaseCreationPackageArgs] = None,
release_creation_package_step_id: Optional[str] = None,
space_id: Optional[str] = None)func NewBuiltInTrigger(ctx *Context, name string, args BuiltInTriggerArgs, opts ...ResourceOption) (*BuiltInTrigger, error)public BuiltInTrigger(string name, BuiltInTriggerArgs args, CustomResourceOptions? opts = null)
public BuiltInTrigger(String name, BuiltInTriggerArgs args)
public BuiltInTrigger(String name, BuiltInTriggerArgs args, CustomResourceOptions options)
type: octopusdeploy:BuiltInTrigger
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args BuiltInTriggerArgs
- 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 BuiltInTriggerArgs
- 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 BuiltInTriggerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BuiltInTriggerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BuiltInTriggerArgs
- 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 builtInTriggerResource = new Octopusdeploy.BuiltInTrigger("builtInTriggerResource", new()
{
ChannelId = "string",
ProjectId = "string",
ReleaseCreationPackage = new Octopusdeploy.Inputs.BuiltInTriggerReleaseCreationPackageArgs
{
DeploymentAction = "string",
PackageReference = "string",
},
ReleaseCreationPackageStepId = "string",
SpaceId = "string",
});
example, err := octopusdeploy.NewBuiltInTrigger(ctx, "builtInTriggerResource", &octopusdeploy.BuiltInTriggerArgs{
ChannelId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
ReleaseCreationPackage: &octopusdeploy.BuiltInTriggerReleaseCreationPackageArgs{
DeploymentAction: pulumi.String("string"),
PackageReference: pulumi.String("string"),
},
ReleaseCreationPackageStepId: pulumi.String("string"),
SpaceId: pulumi.String("string"),
})
var builtInTriggerResource = new BuiltInTrigger("builtInTriggerResource", BuiltInTriggerArgs.builder()
.channelId("string")
.projectId("string")
.releaseCreationPackage(BuiltInTriggerReleaseCreationPackageArgs.builder()
.deploymentAction("string")
.packageReference("string")
.build())
.releaseCreationPackageStepId("string")
.spaceId("string")
.build());
built_in_trigger_resource = octopusdeploy.BuiltInTrigger("builtInTriggerResource",
channel_id="string",
project_id="string",
release_creation_package={
"deployment_action": "string",
"package_reference": "string",
},
release_creation_package_step_id="string",
space_id="string")
const builtInTriggerResource = new octopusdeploy.BuiltInTrigger("builtInTriggerResource", {
channelId: "string",
projectId: "string",
releaseCreationPackage: {
deploymentAction: "string",
packageReference: "string",
},
releaseCreationPackageStepId: "string",
spaceId: "string",
});
type: octopusdeploy:BuiltInTrigger
properties:
channelId: string
projectId: string
releaseCreationPackage:
deploymentAction: string
packageReference: string
releaseCreationPackageStepId: string
spaceId: string
BuiltInTrigger 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 BuiltInTrigger resource accepts the following input properties:
- Channel
Id string - The ID of the channel in which triggered release will be created.
- Project
Id string - The ID of the project the trigger will be attached to.
- Release
Creation BuiltPackage In Trigger Release Creation Package - Combination of deployment action and package references.
- Release
Creation stringPackage Step Id - The package step ID trigger will be listening.
- Space
Id string - Space ID of the associated project.
- Channel
Id string - The ID of the channel in which triggered release will be created.
- Project
Id string - The ID of the project the trigger will be attached to.
- Release
Creation BuiltPackage In Trigger Release Creation Package Args - Combination of deployment action and package references.
- Release
Creation stringPackage Step Id - The package step ID trigger will be listening.
- Space
Id string - Space ID of the associated project.
- channel
Id String - The ID of the channel in which triggered release will be created.
- project
Id String - The ID of the project the trigger will be attached to.
- release
Creation BuiltPackage In Trigger Release Creation Package - Combination of deployment action and package references.
- release
Creation StringPackage Step Id - The package step ID trigger will be listening.
- space
Id String - Space ID of the associated project.
- channel
Id string - The ID of the channel in which triggered release will be created.
- project
Id string - The ID of the project the trigger will be attached to.
- release
Creation BuiltPackage In Trigger Release Creation Package - Combination of deployment action and package references.
- release
Creation stringPackage Step Id - The package step ID trigger will be listening.
- space
Id string - Space ID of the associated project.
- channel_
id str - The ID of the channel in which triggered release will be created.
- project_
id str - The ID of the project the trigger will be attached to.
- release_
creation_ Builtpackage In Trigger Release Creation Package Args - Combination of deployment action and package references.
- release_
creation_ strpackage_ step_ id - The package step ID trigger will be listening.
- space_
id str - Space ID of the associated project.
- channel
Id String - The ID of the channel in which triggered release will be created.
- project
Id String - The ID of the project the trigger will be attached to.
- release
Creation Property MapPackage - Combination of deployment action and package references.
- release
Creation StringPackage Step Id - The package step ID trigger will be listening.
- space
Id String - Space ID of the associated project.
Outputs
All input properties are implicitly available as output properties. Additionally, the BuiltInTrigger resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing BuiltInTrigger Resource
Get an existing BuiltInTrigger resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BuiltInTriggerState, opts?: CustomResourceOptions): BuiltInTrigger@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
channel_id: Optional[str] = None,
project_id: Optional[str] = None,
release_creation_package: Optional[BuiltInTriggerReleaseCreationPackageArgs] = None,
release_creation_package_step_id: Optional[str] = None,
space_id: Optional[str] = None) -> BuiltInTriggerfunc GetBuiltInTrigger(ctx *Context, name string, id IDInput, state *BuiltInTriggerState, opts ...ResourceOption) (*BuiltInTrigger, error)public static BuiltInTrigger Get(string name, Input<string> id, BuiltInTriggerState? state, CustomResourceOptions? opts = null)public static BuiltInTrigger get(String name, Output<String> id, BuiltInTriggerState state, CustomResourceOptions options)resources: _: type: octopusdeploy:BuiltInTrigger get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Channel
Id string - The ID of the channel in which triggered release will be created.
- Project
Id string - The ID of the project the trigger will be attached to.
- Release
Creation BuiltPackage In Trigger Release Creation Package - Combination of deployment action and package references.
- Release
Creation stringPackage Step Id - The package step ID trigger will be listening.
- Space
Id string - Space ID of the associated project.
- Channel
Id string - The ID of the channel in which triggered release will be created.
- Project
Id string - The ID of the project the trigger will be attached to.
- Release
Creation BuiltPackage In Trigger Release Creation Package Args - Combination of deployment action and package references.
- Release
Creation stringPackage Step Id - The package step ID trigger will be listening.
- Space
Id string - Space ID of the associated project.
- channel
Id String - The ID of the channel in which triggered release will be created.
- project
Id String - The ID of the project the trigger will be attached to.
- release
Creation BuiltPackage In Trigger Release Creation Package - Combination of deployment action and package references.
- release
Creation StringPackage Step Id - The package step ID trigger will be listening.
- space
Id String - Space ID of the associated project.
- channel
Id string - The ID of the channel in which triggered release will be created.
- project
Id string - The ID of the project the trigger will be attached to.
- release
Creation BuiltPackage In Trigger Release Creation Package - Combination of deployment action and package references.
- release
Creation stringPackage Step Id - The package step ID trigger will be listening.
- space
Id string - Space ID of the associated project.
- channel_
id str - The ID of the channel in which triggered release will be created.
- project_
id str - The ID of the project the trigger will be attached to.
- release_
creation_ Builtpackage In Trigger Release Creation Package Args - Combination of deployment action and package references.
- release_
creation_ strpackage_ step_ id - The package step ID trigger will be listening.
- space_
id str - Space ID of the associated project.
- channel
Id String - The ID of the channel in which triggered release will be created.
- project
Id String - The ID of the project the trigger will be attached to.
- release
Creation Property MapPackage - Combination of deployment action and package references.
- release
Creation StringPackage Step Id - The package step ID trigger will be listening.
- space
Id String - Space ID of the associated project.
Supporting Types
BuiltInTriggerReleaseCreationPackage, BuiltInTriggerReleaseCreationPackageArgs
- Deployment
Action string - Deployment action.
- Package
Reference string - Package reference.
- Deployment
Action string - Deployment action.
- Package
Reference string - Package reference.
- deployment
Action String - Deployment action.
- package
Reference String - Package reference.
- deployment
Action string - Deployment action.
- package
Reference string - Package reference.
- deployment_
action str - Deployment action.
- package_
reference str - Package reference.
- deployment
Action String - Deployment action.
- package
Reference String - Package reference.
Package Details
- Repository
- octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
- License
- Notes
- This Pulumi package is based on the
octopusdeployTerraform Provider.
