octopusdeploy.ExternalFeedCreateReleaseTrigger
Explore with Pulumi AI
This resource manages External feed triggers (release creation type) in Octopus Deploy.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.octopusdeploy.ExternalFeedCreateReleaseTrigger;
import com.pulumi.octopusdeploy.ExternalFeedCreateReleaseTriggerArgs;
import com.pulumi.octopusdeploy.inputs.ExternalFeedCreateReleaseTriggerPackageArgs;
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 myTrigger = new ExternalFeedCreateReleaseTrigger("myTrigger", ExternalFeedCreateReleaseTriggerArgs.builder()
.channelId("Channels-21")
.packages(
ExternalFeedCreateReleaseTriggerPackageArgs.builder()
.deploymentAction("My Helm step")
.packageReference("nginx")
.build(),
ExternalFeedCreateReleaseTriggerPackageArgs.builder()
.deploymentAction("My container step")
.packageReference("busybox")
.build())
.projectId("Projects-2")
.spaceId("Spaces-1")
.build());
}
}
resources:
myTrigger:
type: octopusdeploy:ExternalFeedCreateReleaseTrigger
properties:
channelId: Channels-21
packages:
- deploymentAction: My Helm step
packageReference: nginx
- deploymentAction: My container step
packageReference: busybox
projectId: Projects-2
spaceId: Spaces-1
Create ExternalFeedCreateReleaseTrigger Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ExternalFeedCreateReleaseTrigger(name: string, args: ExternalFeedCreateReleaseTriggerArgs, opts?: CustomResourceOptions);
@overload
def ExternalFeedCreateReleaseTrigger(resource_name: str,
args: ExternalFeedCreateReleaseTriggerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ExternalFeedCreateReleaseTrigger(resource_name: str,
opts: Optional[ResourceOptions] = None,
channel_id: Optional[str] = None,
project_id: Optional[str] = None,
external_feed_create_release_trigger_id: Optional[str] = None,
is_disabled: Optional[bool] = None,
name: Optional[str] = None,
packages: Optional[Sequence[ExternalFeedCreateReleaseTriggerPackageArgs]] = None,
primary_packages: Optional[Sequence[ExternalFeedCreateReleaseTriggerPrimaryPackageArgs]] = None,
space_id: Optional[str] = None)
func NewExternalFeedCreateReleaseTrigger(ctx *Context, name string, args ExternalFeedCreateReleaseTriggerArgs, opts ...ResourceOption) (*ExternalFeedCreateReleaseTrigger, error)
public ExternalFeedCreateReleaseTrigger(string name, ExternalFeedCreateReleaseTriggerArgs args, CustomResourceOptions? opts = null)
public ExternalFeedCreateReleaseTrigger(String name, ExternalFeedCreateReleaseTriggerArgs args)
public ExternalFeedCreateReleaseTrigger(String name, ExternalFeedCreateReleaseTriggerArgs args, CustomResourceOptions options)
type: octopusdeploy:ExternalFeedCreateReleaseTrigger
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 ExternalFeedCreateReleaseTriggerArgs
- 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 ExternalFeedCreateReleaseTriggerArgs
- 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 ExternalFeedCreateReleaseTriggerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ExternalFeedCreateReleaseTriggerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ExternalFeedCreateReleaseTriggerArgs
- 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 externalFeedCreateReleaseTriggerResource = new Octopusdeploy.ExternalFeedCreateReleaseTrigger("externalFeedCreateReleaseTriggerResource", new()
{
ChannelId = "string",
ProjectId = "string",
ExternalFeedCreateReleaseTriggerId = "string",
IsDisabled = false,
Name = "string",
Packages = new[]
{
new Octopusdeploy.Inputs.ExternalFeedCreateReleaseTriggerPackageArgs
{
DeploymentActionSlug = "string",
PackageReference = "string",
},
},
PrimaryPackages = new[]
{
new Octopusdeploy.Inputs.ExternalFeedCreateReleaseTriggerPrimaryPackageArgs
{
DeploymentActionSlug = "string",
},
},
SpaceId = "string",
});
example, err := octopusdeploy.NewExternalFeedCreateReleaseTrigger(ctx, "externalFeedCreateReleaseTriggerResource", &octopusdeploy.ExternalFeedCreateReleaseTriggerArgs{
ChannelId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
ExternalFeedCreateReleaseTriggerId: pulumi.String("string"),
IsDisabled: pulumi.Bool(false),
Name: pulumi.String("string"),
Packages: octopusdeploy.ExternalFeedCreateReleaseTriggerPackageArray{
&octopusdeploy.ExternalFeedCreateReleaseTriggerPackageArgs{
DeploymentActionSlug: pulumi.String("string"),
PackageReference: pulumi.String("string"),
},
},
PrimaryPackages: octopusdeploy.ExternalFeedCreateReleaseTriggerPrimaryPackageArray{
&octopusdeploy.ExternalFeedCreateReleaseTriggerPrimaryPackageArgs{
DeploymentActionSlug: pulumi.String("string"),
},
},
SpaceId: pulumi.String("string"),
})
var externalFeedCreateReleaseTriggerResource = new ExternalFeedCreateReleaseTrigger("externalFeedCreateReleaseTriggerResource", ExternalFeedCreateReleaseTriggerArgs.builder()
.channelId("string")
.projectId("string")
.externalFeedCreateReleaseTriggerId("string")
.isDisabled(false)
.name("string")
.packages(ExternalFeedCreateReleaseTriggerPackageArgs.builder()
.deploymentActionSlug("string")
.packageReference("string")
.build())
.primaryPackages(ExternalFeedCreateReleaseTriggerPrimaryPackageArgs.builder()
.deploymentActionSlug("string")
.build())
.spaceId("string")
.build());
external_feed_create_release_trigger_resource = octopusdeploy.ExternalFeedCreateReleaseTrigger("externalFeedCreateReleaseTriggerResource",
channel_id="string",
project_id="string",
external_feed_create_release_trigger_id="string",
is_disabled=False,
name="string",
packages=[{
"deployment_action_slug": "string",
"package_reference": "string",
}],
primary_packages=[{
"deployment_action_slug": "string",
}],
space_id="string")
const externalFeedCreateReleaseTriggerResource = new octopusdeploy.ExternalFeedCreateReleaseTrigger("externalFeedCreateReleaseTriggerResource", {
channelId: "string",
projectId: "string",
externalFeedCreateReleaseTriggerId: "string",
isDisabled: false,
name: "string",
packages: [{
deploymentActionSlug: "string",
packageReference: "string",
}],
primaryPackages: [{
deploymentActionSlug: "string",
}],
spaceId: "string",
});
type: octopusdeploy:ExternalFeedCreateReleaseTrigger
properties:
channelId: string
externalFeedCreateReleaseTriggerId: string
isDisabled: false
name: string
packages:
- deploymentActionSlug: string
packageReference: string
primaryPackages:
- deploymentActionSlug: string
projectId: string
spaceId: string
ExternalFeedCreateReleaseTrigger 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 ExternalFeedCreateReleaseTrigger resource accepts the following input properties:
- Channel
Id string - The ID of the channel in which the release will be created if the action type is CreateRelease.
- Project
Id string - The ID of the project to attach the trigger.
- External
Feed stringCreate Release Trigger Id - The ID of this resource.
- Is
Disabled bool - Disables the trigger from being run when set.
- Name string
- The name of this resource.
- Packages
List<External
Feed Create Release Trigger Package> - List of referenced packages that will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- Primary
Packages List<ExternalFeed Create Release Trigger Primary Package> - List of deployment actions for which the primary packages will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- Space
Id string - The space ID associated with the project to attach the trigger.
- Channel
Id string - The ID of the channel in which the release will be created if the action type is CreateRelease.
- Project
Id string - The ID of the project to attach the trigger.
- External
Feed stringCreate Release Trigger Id - The ID of this resource.
- Is
Disabled bool - Disables the trigger from being run when set.
- Name string
- The name of this resource.
- Packages
[]External
Feed Create Release Trigger Package Args - List of referenced packages that will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- Primary
Packages []ExternalFeed Create Release Trigger Primary Package Args - List of deployment actions for which the primary packages will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- Space
Id string - The space ID associated with the project to attach the trigger.
- channel
Id String - The ID of the channel in which the release will be created if the action type is CreateRelease.
- project
Id String - The ID of the project to attach the trigger.
- external
Feed StringCreate Release Trigger Id - The ID of this resource.
- is
Disabled Boolean - Disables the trigger from being run when set.
- name String
- The name of this resource.
- packages
List<External
Feed Create Release Trigger Package> - List of referenced packages that will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- primary
Packages List<ExternalFeed Create Release Trigger Primary Package> - List of deployment actions for which the primary packages will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- space
Id String - The space ID associated with the project to attach the trigger.
- channel
Id string - The ID of the channel in which the release will be created if the action type is CreateRelease.
- project
Id string - The ID of the project to attach the trigger.
- external
Feed stringCreate Release Trigger Id - The ID of this resource.
- is
Disabled boolean - Disables the trigger from being run when set.
- name string
- The name of this resource.
- packages
External
Feed Create Release Trigger Package[] - List of referenced packages that will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- primary
Packages ExternalFeed Create Release Trigger Primary Package[] - List of deployment actions for which the primary packages will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- space
Id string - The space ID associated with the project to attach the trigger.
- channel_
id str - The ID of the channel in which the release will be created if the action type is CreateRelease.
- project_
id str - The ID of the project to attach the trigger.
- external_
feed_ strcreate_ release_ trigger_ id - The ID of this resource.
- is_
disabled bool - Disables the trigger from being run when set.
- name str
- The name of this resource.
- packages
Sequence[External
Feed Create Release Trigger Package Args] - List of referenced packages that will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- primary_
packages Sequence[ExternalFeed Create Release Trigger Primary Package Args] - List of deployment actions for which the primary packages will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- space_
id str - The space ID associated with the project to attach the trigger.
- channel
Id String - The ID of the channel in which the release will be created if the action type is CreateRelease.
- project
Id String - The ID of the project to attach the trigger.
- external
Feed StringCreate Release Trigger Id - The ID of this resource.
- is
Disabled Boolean - Disables the trigger from being run when set.
- name String
- The name of this resource.
- packages List<Property Map>
- List of referenced packages that will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- primary
Packages List<Property Map> - List of deployment actions for which the primary packages will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- space
Id String - The space ID associated with the project to attach the trigger.
Outputs
All input properties are implicitly available as output properties. Additionally, the ExternalFeedCreateReleaseTrigger 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 ExternalFeedCreateReleaseTrigger Resource
Get an existing ExternalFeedCreateReleaseTrigger 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?: ExternalFeedCreateReleaseTriggerState, opts?: CustomResourceOptions): ExternalFeedCreateReleaseTrigger
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
channel_id: Optional[str] = None,
external_feed_create_release_trigger_id: Optional[str] = None,
is_disabled: Optional[bool] = None,
name: Optional[str] = None,
packages: Optional[Sequence[ExternalFeedCreateReleaseTriggerPackageArgs]] = None,
primary_packages: Optional[Sequence[ExternalFeedCreateReleaseTriggerPrimaryPackageArgs]] = None,
project_id: Optional[str] = None,
space_id: Optional[str] = None) -> ExternalFeedCreateReleaseTrigger
func GetExternalFeedCreateReleaseTrigger(ctx *Context, name string, id IDInput, state *ExternalFeedCreateReleaseTriggerState, opts ...ResourceOption) (*ExternalFeedCreateReleaseTrigger, error)
public static ExternalFeedCreateReleaseTrigger Get(string name, Input<string> id, ExternalFeedCreateReleaseTriggerState? state, CustomResourceOptions? opts = null)
public static ExternalFeedCreateReleaseTrigger get(String name, Output<String> id, ExternalFeedCreateReleaseTriggerState state, CustomResourceOptions options)
resources: _: type: octopusdeploy:ExternalFeedCreateReleaseTrigger 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 the release will be created if the action type is CreateRelease.
- External
Feed stringCreate Release Trigger Id - The ID of this resource.
- Is
Disabled bool - Disables the trigger from being run when set.
- Name string
- The name of this resource.
- Packages
List<External
Feed Create Release Trigger Package> - List of referenced packages that will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- Primary
Packages List<ExternalFeed Create Release Trigger Primary Package> - List of deployment actions for which the primary packages will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- Project
Id string - The ID of the project to attach the trigger.
- Space
Id string - The space ID associated with the project to attach the trigger.
- Channel
Id string - The ID of the channel in which the release will be created if the action type is CreateRelease.
- External
Feed stringCreate Release Trigger Id - The ID of this resource.
- Is
Disabled bool - Disables the trigger from being run when set.
- Name string
- The name of this resource.
- Packages
[]External
Feed Create Release Trigger Package Args - List of referenced packages that will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- Primary
Packages []ExternalFeed Create Release Trigger Primary Package Args - List of deployment actions for which the primary packages will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- Project
Id string - The ID of the project to attach the trigger.
- Space
Id string - The space ID associated with the project to attach the trigger.
- channel
Id String - The ID of the channel in which the release will be created if the action type is CreateRelease.
- external
Feed StringCreate Release Trigger Id - The ID of this resource.
- is
Disabled Boolean - Disables the trigger from being run when set.
- name String
- The name of this resource.
- packages
List<External
Feed Create Release Trigger Package> - List of referenced packages that will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- primary
Packages List<ExternalFeed Create Release Trigger Primary Package> - List of deployment actions for which the primary packages will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- project
Id String - The ID of the project to attach the trigger.
- space
Id String - The space ID associated with the project to attach the trigger.
- channel
Id string - The ID of the channel in which the release will be created if the action type is CreateRelease.
- external
Feed stringCreate Release Trigger Id - The ID of this resource.
- is
Disabled boolean - Disables the trigger from being run when set.
- name string
- The name of this resource.
- packages
External
Feed Create Release Trigger Package[] - List of referenced packages that will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- primary
Packages ExternalFeed Create Release Trigger Primary Package[] - List of deployment actions for which the primary packages will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- project
Id string - The ID of the project to attach the trigger.
- space
Id string - The space ID associated with the project to attach the trigger.
- channel_
id str - The ID of the channel in which the release will be created if the action type is CreateRelease.
- external_
feed_ strcreate_ release_ trigger_ id - The ID of this resource.
- is_
disabled bool - Disables the trigger from being run when set.
- name str
- The name of this resource.
- packages
Sequence[External
Feed Create Release Trigger Package Args] - List of referenced packages that will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- primary_
packages Sequence[ExternalFeed Create Release Trigger Primary Package Args] - List of deployment actions for which the primary packages will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- project_
id str - The ID of the project to attach the trigger.
- space_
id str - The space ID associated with the project to attach the trigger.
- channel
Id String - The ID of the channel in which the release will be created if the action type is CreateRelease.
- external
Feed StringCreate Release Trigger Id - The ID of this resource.
- is
Disabled Boolean - Disables the trigger from being run when set.
- name String
- The name of this resource.
- packages List<Property Map>
- List of referenced packages that will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- primary
Packages List<Property Map> - List of deployment actions for which the primary packages will cause the trigger to fire. New versions of any of the packages you select will trigger release creation.
- project
Id String - The ID of the project to attach the trigger.
- space
Id String - The space ID associated with the project to attach the trigger.
Supporting Types
ExternalFeedCreateReleaseTriggerPackage, ExternalFeedCreateReleaseTriggerPackageArgs
- Deployment
Action stringSlug - Package
Reference string
- Deployment
Action stringSlug - Package
Reference string
- deployment
Action StringSlug - package
Reference String
- deployment
Action stringSlug - package
Reference string
- deployment
Action StringSlug - package
Reference String
ExternalFeedCreateReleaseTriggerPrimaryPackage, ExternalFeedCreateReleaseTriggerPrimaryPackageArgs
- Deployment
Action stringSlug
- Deployment
Action stringSlug
- deployment
Action StringSlug
- deployment
Action stringSlug
- deployment
Action StringSlug
Import
$ pulumi import octopusdeploy:index/externalFeedCreateReleaseTrigger:ExternalFeedCreateReleaseTrigger [options] octopusdeploy_external_feed_create_release_trigger.<name> <trigger-id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
- License
- Notes
- This Pulumi package is based on the
octopusdeploy
Terraform Provider.