octopusdeploy.BuiltInTrigger
Explore with Pulumi AI
This resource manages automatic release trigger based on new version of referenced package.
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: &.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) -> BuiltInTrigger
func 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
octopusdeploy
Terraform Provider.