From 3c605efb92cd905f98a7b3ac7d21acb2bd2afeb8 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Fri, 7 Feb 2025 08:23:27 -0700 Subject: [PATCH] Upgrade terraform-provider-pagerduty to v3.20.0 (#742) This PR was generated via `$ upgrade-provider pulumi/pulumi-pagerduty --kind=all --target-bridge-version=latest`. --- - Upgrading terraform-provider-pagerduty from 3.19.4 to 3.20.0. Fixes #740 --- .../cmd/pulumi-resource-pagerduty/schema.json | 16 ++++++- provider/go.mod | 2 +- sdk/dotnet/IncidentWorkflow.cs | 18 +++++++ sdk/go/pagerduty/incidentWorkflow.go | 15 ++++++ sdk/go/pagerduty/pulumiTypes.go | 8 ++++ .../pulumi/pagerduty/IncidentWorkflow.java | 14 ++++++ .../pagerduty/IncidentWorkflowArgs.java | 37 +++++++++++++++ ...chestrationServiceCatchAllActionsArgs.java | 16 +++++++ .../inputs/IncidentWorkflowState.java | 37 +++++++++++++++ ...ntOrchestrationServiceCatchAllActions.java | 8 ++++ sdk/nodejs/incidentWorkflow.ts | 14 ++++++ sdk/nodejs/types/input.ts | 2 + sdk/nodejs/types/output.ts | 2 + sdk/python/pulumi_pagerduty/_inputs.py | 4 ++ .../pulumi_pagerduty/incident_workflow.py | 47 +++++++++++++++++++ sdk/python/pulumi_pagerduty/outputs.py | 1 + upstream | 2 +- 17 files changed, 240 insertions(+), 3 deletions(-) diff --git a/provider/cmd/pulumi-resource-pagerduty/schema.json b/provider/cmd/pulumi-resource-pagerduty/schema.json index 9787cc72..ed97d172 100644 --- a/provider/cmd/pulumi-resource-pagerduty/schema.json +++ b/provider/cmd/pulumi-resource-pagerduty/schema.json @@ -1005,7 +1005,8 @@ }, "routeTo": { "type": "string", - "description": "The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule.\n" + "description": "The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule.\n", + "deprecationMessage": "The 'route_to' attribute is no longer supported for catch-all rules." }, "severity": { "type": "string", @@ -6587,6 +6588,10 @@ "type": "string", "description": "The description of the workflow.\n" }, + "isEnabled": { + "type": "string", + "description": "Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit.\n" + }, "name": { "type": "string", "description": "The name of the workflow.\n" @@ -6604,6 +6609,7 @@ } }, "required": [ + "isEnabled", "name", "steps" ], @@ -6612,6 +6618,10 @@ "type": "string", "description": "The description of the workflow.\n" }, + "isEnabled": { + "type": "string", + "description": "Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit.\n" + }, "name": { "type": "string", "description": "The name of the workflow.\n" @@ -6635,6 +6645,10 @@ "type": "string", "description": "The description of the workflow.\n" }, + "isEnabled": { + "type": "string", + "description": "Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit.\n" + }, "name": { "type": "string", "description": "The name of the workflow.\n" diff --git a/provider/go.mod b/provider/go.mod index 1954dfe0..8fa75c0b 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -145,7 +145,7 @@ require ( github.com/hashicorp/terraform-svchost v0.1.1 // indirect github.com/hashicorp/vault/api v1.12.0 // indirect github.com/hashicorp/yamux v0.1.1 // indirect - github.com/heimweh/go-pagerduty v0.0.0-20250113182705-ce1f94dc30af // indirect + github.com/heimweh/go-pagerduty v0.0.0-20250206202923-12b6de611ec0 // indirect github.com/huandu/xstrings v1.4.0 // indirect github.com/iancoleman/strcase v0.3.0 // indirect github.com/imdario/mergo v0.3.15 // indirect diff --git a/sdk/dotnet/IncidentWorkflow.cs b/sdk/dotnet/IncidentWorkflow.cs index ce3197ea..e77f80f2 100644 --- a/sdk/dotnet/IncidentWorkflow.cs +++ b/sdk/dotnet/IncidentWorkflow.cs @@ -64,6 +64,12 @@ public partial class IncidentWorkflow : global::Pulumi.CustomResource [Output("description")] public Output Description { get; private set; } = null!; + /// + /// Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + /// + [Output("isEnabled")] + public Output IsEnabled { get; private set; } = null!; + /// /// The name of the workflow. /// @@ -134,6 +140,12 @@ public sealed class IncidentWorkflowArgs : global::Pulumi.ResourceArgs [Input("description")] public Input? Description { get; set; } + /// + /// Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + /// + [Input("isEnabled")] + public Input? IsEnabled { get; set; } + /// /// The name of the workflow. /// @@ -172,6 +184,12 @@ public sealed class IncidentWorkflowState : global::Pulumi.ResourceArgs [Input("description")] public Input? Description { get; set; } + /// + /// Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + /// + [Input("isEnabled")] + public Input? IsEnabled { get; set; } + /// /// The name of the workflow. /// diff --git a/sdk/go/pagerduty/incidentWorkflow.go b/sdk/go/pagerduty/incidentWorkflow.go index 8d907e15..bb37c128 100644 --- a/sdk/go/pagerduty/incidentWorkflow.go +++ b/sdk/go/pagerduty/incidentWorkflow.go @@ -64,6 +64,8 @@ type IncidentWorkflow struct { // The description of the workflow. Description pulumi.StringPtrOutput `pulumi:"description"` + // Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + IsEnabled pulumi.StringOutput `pulumi:"isEnabled"` // The name of the workflow. Name pulumi.StringOutput `pulumi:"name"` // The steps in the workflow. @@ -104,6 +106,8 @@ func GetIncidentWorkflow(ctx *pulumi.Context, type incidentWorkflowState struct { // The description of the workflow. Description *string `pulumi:"description"` + // Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + IsEnabled *string `pulumi:"isEnabled"` // The name of the workflow. Name *string `pulumi:"name"` // The steps in the workflow. @@ -115,6 +119,8 @@ type incidentWorkflowState struct { type IncidentWorkflowState struct { // The description of the workflow. Description pulumi.StringPtrInput + // Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + IsEnabled pulumi.StringPtrInput // The name of the workflow. Name pulumi.StringPtrInput // The steps in the workflow. @@ -130,6 +136,8 @@ func (IncidentWorkflowState) ElementType() reflect.Type { type incidentWorkflowArgs struct { // The description of the workflow. Description *string `pulumi:"description"` + // Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + IsEnabled *string `pulumi:"isEnabled"` // The name of the workflow. Name *string `pulumi:"name"` // The steps in the workflow. @@ -142,6 +150,8 @@ type incidentWorkflowArgs struct { type IncidentWorkflowArgs struct { // The description of the workflow. Description pulumi.StringPtrInput + // Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + IsEnabled pulumi.StringPtrInput // The name of the workflow. Name pulumi.StringPtrInput // The steps in the workflow. @@ -242,6 +252,11 @@ func (o IncidentWorkflowOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *IncidentWorkflow) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } +// Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. +func (o IncidentWorkflowOutput) IsEnabled() pulumi.StringOutput { + return o.ApplyT(func(v *IncidentWorkflow) pulumi.StringOutput { return v.IsEnabled }).(pulumi.StringOutput) +} + // The name of the workflow. func (o IncidentWorkflowOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *IncidentWorkflow) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) diff --git a/sdk/go/pagerduty/pulumiTypes.go b/sdk/go/pagerduty/pulumiTypes.go index c6356e0f..7ea68fbb 100644 --- a/sdk/go/pagerduty/pulumiTypes.go +++ b/sdk/go/pagerduty/pulumiTypes.go @@ -5173,6 +5173,8 @@ type EventOrchestrationServiceCatchAllActions struct { // The ID of the priority you want to set on resulting incident. Consider using the `getPriority` data source. Priority *string `pulumi:"priority"` // The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule. + // + // Deprecated: The 'route_to' attribute is no longer supported for catch-all rules. RouteTo *string `pulumi:"routeTo"` // sets Severity of the resulting alert. Allowed values are: `info`, `error`, `warning`, `critical` Severity *string `pulumi:"severity"` @@ -5213,6 +5215,8 @@ type EventOrchestrationServiceCatchAllActionsArgs struct { // The ID of the priority you want to set on resulting incident. Consider using the `getPriority` data source. Priority pulumi.StringPtrInput `pulumi:"priority"` // The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule. + // + // Deprecated: The 'route_to' attribute is no longer supported for catch-all rules. RouteTo pulumi.StringPtrInput `pulumi:"routeTo"` // sets Severity of the resulting alert. Allowed values are: `info`, `error`, `warning`, `critical` Severity pulumi.StringPtrInput `pulumi:"severity"` @@ -5350,6 +5354,8 @@ func (o EventOrchestrationServiceCatchAllActionsOutput) Priority() pulumi.String } // The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule. +// +// Deprecated: The 'route_to' attribute is no longer supported for catch-all rules. func (o EventOrchestrationServiceCatchAllActionsOutput) RouteTo() pulumi.StringPtrOutput { return o.ApplyT(func(v EventOrchestrationServiceCatchAllActions) *string { return v.RouteTo }).(pulumi.StringPtrOutput) } @@ -5481,6 +5487,8 @@ func (o EventOrchestrationServiceCatchAllActionsPtrOutput) Priority() pulumi.Str } // The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule. +// +// Deprecated: The 'route_to' attribute is no longer supported for catch-all rules. func (o EventOrchestrationServiceCatchAllActionsPtrOutput) RouteTo() pulumi.StringPtrOutput { return o.ApplyT(func(v *EventOrchestrationServiceCatchAllActions) *string { if v == nil { diff --git a/sdk/java/src/main/java/com/pulumi/pagerduty/IncidentWorkflow.java b/sdk/java/src/main/java/com/pulumi/pagerduty/IncidentWorkflow.java index a7e7b1df..e1009443 100644 --- a/sdk/java/src/main/java/com/pulumi/pagerduty/IncidentWorkflow.java +++ b/sdk/java/src/main/java/com/pulumi/pagerduty/IncidentWorkflow.java @@ -89,6 +89,20 @@ public class IncidentWorkflow extends com.pulumi.resources.CustomResource { public Output> description() { return Codegen.optional(this.description); } + /** + * Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + * + */ + @Export(name="isEnabled", refs={String.class}, tree="[0]") + private Output isEnabled; + + /** + * @return Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + * + */ + public Output isEnabled() { + return this.isEnabled; + } /** * The name of the workflow. * diff --git a/sdk/java/src/main/java/com/pulumi/pagerduty/IncidentWorkflowArgs.java b/sdk/java/src/main/java/com/pulumi/pagerduty/IncidentWorkflowArgs.java index 539aef3c..4a25061d 100644 --- a/sdk/java/src/main/java/com/pulumi/pagerduty/IncidentWorkflowArgs.java +++ b/sdk/java/src/main/java/com/pulumi/pagerduty/IncidentWorkflowArgs.java @@ -32,6 +32,21 @@ public Optional> description() { return Optional.ofNullable(this.description); } + /** + * Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + * + */ + @Import(name="isEnabled") + private @Nullable Output isEnabled; + + /** + * @return Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + * + */ + public Optional> isEnabled() { + return Optional.ofNullable(this.isEnabled); + } + /** * The name of the workflow. * @@ -81,6 +96,7 @@ private IncidentWorkflowArgs() {} private IncidentWorkflowArgs(IncidentWorkflowArgs $) { this.description = $.description; + this.isEnabled = $.isEnabled; this.name = $.name; this.steps = $.steps; this.team = $.team; @@ -125,6 +141,27 @@ public Builder description(String description) { return description(Output.of(description)); } + /** + * @param isEnabled Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + * + * @return builder + * + */ + public Builder isEnabled(@Nullable Output isEnabled) { + $.isEnabled = isEnabled; + return this; + } + + /** + * @param isEnabled Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + * + * @return builder + * + */ + public Builder isEnabled(String isEnabled) { + return isEnabled(Output.of(isEnabled)); + } + /** * @param name The name of the workflow. * diff --git a/sdk/java/src/main/java/com/pulumi/pagerduty/inputs/EventOrchestrationServiceCatchAllActionsArgs.java b/sdk/java/src/main/java/com/pulumi/pagerduty/inputs/EventOrchestrationServiceCatchAllActionsArgs.java index ff3471cc..276adb67 100644 --- a/sdk/java/src/main/java/com/pulumi/pagerduty/inputs/EventOrchestrationServiceCatchAllActionsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/pagerduty/inputs/EventOrchestrationServiceCatchAllActionsArgs.java @@ -146,14 +146,22 @@ public Optional> priority() { /** * The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule. * + * @deprecated + * The 'route_to' attribute is no longer supported for catch-all rules. + * */ + @Deprecated /* The 'route_to' attribute is no longer supported for catch-all rules. */ @Import(name="routeTo") private @Nullable Output routeTo; /** * @return The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule. * + * @deprecated + * The 'route_to' attribute is no longer supported for catch-all rules. + * */ + @Deprecated /* The 'route_to' attribute is no longer supported for catch-all rules. */ public Optional> routeTo() { return Optional.ofNullable(this.routeTo); } @@ -447,7 +455,11 @@ public Builder priority(String priority) { * * @return builder * + * @deprecated + * The 'route_to' attribute is no longer supported for catch-all rules. + * */ + @Deprecated /* The 'route_to' attribute is no longer supported for catch-all rules. */ public Builder routeTo(@Nullable Output routeTo) { $.routeTo = routeTo; return this; @@ -458,7 +470,11 @@ public Builder routeTo(@Nullable Output routeTo) { * * @return builder * + * @deprecated + * The 'route_to' attribute is no longer supported for catch-all rules. + * */ + @Deprecated /* The 'route_to' attribute is no longer supported for catch-all rules. */ public Builder routeTo(String routeTo) { return routeTo(Output.of(routeTo)); } diff --git a/sdk/java/src/main/java/com/pulumi/pagerduty/inputs/IncidentWorkflowState.java b/sdk/java/src/main/java/com/pulumi/pagerduty/inputs/IncidentWorkflowState.java index 4f5c0554..0173ab7f 100644 --- a/sdk/java/src/main/java/com/pulumi/pagerduty/inputs/IncidentWorkflowState.java +++ b/sdk/java/src/main/java/com/pulumi/pagerduty/inputs/IncidentWorkflowState.java @@ -32,6 +32,21 @@ public Optional> description() { return Optional.ofNullable(this.description); } + /** + * Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + * + */ + @Import(name="isEnabled") + private @Nullable Output isEnabled; + + /** + * @return Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + * + */ + public Optional> isEnabled() { + return Optional.ofNullable(this.isEnabled); + } + /** * The name of the workflow. * @@ -81,6 +96,7 @@ private IncidentWorkflowState() {} private IncidentWorkflowState(IncidentWorkflowState $) { this.description = $.description; + this.isEnabled = $.isEnabled; this.name = $.name; this.steps = $.steps; this.team = $.team; @@ -125,6 +141,27 @@ public Builder description(String description) { return description(Output.of(description)); } + /** + * @param isEnabled Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + * + * @return builder + * + */ + public Builder isEnabled(@Nullable Output isEnabled) { + $.isEnabled = isEnabled; + return this; + } + + /** + * @param isEnabled Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + * + * @return builder + * + */ + public Builder isEnabled(String isEnabled) { + return isEnabled(Output.of(isEnabled)); + } + /** * @param name The name of the workflow. * diff --git a/sdk/java/src/main/java/com/pulumi/pagerduty/outputs/EventOrchestrationServiceCatchAllActions.java b/sdk/java/src/main/java/com/pulumi/pagerduty/outputs/EventOrchestrationServiceCatchAllActions.java index 5a2ea36c..63cd000a 100644 --- a/sdk/java/src/main/java/com/pulumi/pagerduty/outputs/EventOrchestrationServiceCatchAllActions.java +++ b/sdk/java/src/main/java/com/pulumi/pagerduty/outputs/EventOrchestrationServiceCatchAllActions.java @@ -62,7 +62,11 @@ public final class EventOrchestrationServiceCatchAllActions { /** * @return The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule. * + * @deprecated + * The 'route_to' attribute is no longer supported for catch-all rules. + * */ + @Deprecated /* The 'route_to' attribute is no longer supported for catch-all rules. */ private @Nullable String routeTo; /** * @return sets Severity of the resulting alert. Allowed values are: `info`, `error`, `warning`, `critical` @@ -145,7 +149,11 @@ public Optional priority() { /** * @return The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule. * + * @deprecated + * The 'route_to' attribute is no longer supported for catch-all rules. + * */ + @Deprecated /* The 'route_to' attribute is no longer supported for catch-all rules. */ public Optional routeTo() { return Optional.ofNullable(this.routeTo); } diff --git a/sdk/nodejs/incidentWorkflow.ts b/sdk/nodejs/incidentWorkflow.ts index c3369d7a..3ff10189 100644 --- a/sdk/nodejs/incidentWorkflow.ts +++ b/sdk/nodejs/incidentWorkflow.ts @@ -69,6 +69,10 @@ export class IncidentWorkflow extends pulumi.CustomResource { * The description of the workflow. */ public readonly description!: pulumi.Output; + /** + * Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + */ + public readonly isEnabled!: pulumi.Output; /** * The name of the workflow. */ @@ -96,12 +100,14 @@ export class IncidentWorkflow extends pulumi.CustomResource { if (opts.id) { const state = argsOrState as IncidentWorkflowState | undefined; resourceInputs["description"] = state ? state.description : undefined; + resourceInputs["isEnabled"] = state ? state.isEnabled : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["steps"] = state ? state.steps : undefined; resourceInputs["team"] = state ? state.team : undefined; } else { const args = argsOrState as IncidentWorkflowArgs | undefined; resourceInputs["description"] = args ? args.description : undefined; + resourceInputs["isEnabled"] = args ? args.isEnabled : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["steps"] = args ? args.steps : undefined; resourceInputs["team"] = args ? args.team : undefined; @@ -119,6 +125,10 @@ export interface IncidentWorkflowState { * The description of the workflow. */ description?: pulumi.Input; + /** + * Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + */ + isEnabled?: pulumi.Input; /** * The name of the workflow. */ @@ -141,6 +151,10 @@ export interface IncidentWorkflowArgs { * The description of the workflow. */ description?: pulumi.Input; + /** + * Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + */ + isEnabled?: pulumi.Input; /** * The name of the workflow. */ diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index fd07b1ad..8ead0a6e 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -622,6 +622,8 @@ export interface EventOrchestrationServiceCatchAllActions { priority?: pulumi.Input; /** * The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule. + * + * @deprecated The 'route_to' attribute is no longer supported for catch-all rules. */ routeTo?: pulumi.Input; /** diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 3f730ae2..5b55f526 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -622,6 +622,8 @@ export interface EventOrchestrationServiceCatchAllActions { priority?: string; /** * The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule. + * + * @deprecated The 'route_to' attribute is no longer supported for catch-all rules. */ routeTo?: string; /** diff --git a/sdk/python/pulumi_pagerduty/_inputs.py b/sdk/python/pulumi_pagerduty/_inputs.py index 9011a19c..39bbca2c 100644 --- a/sdk/python/pulumi_pagerduty/_inputs.py +++ b/sdk/python/pulumi_pagerduty/_inputs.py @@ -3208,6 +3208,9 @@ def __init__(__self__, *, pulumi.set(__self__, "pagerduty_automation_action", pagerduty_automation_action) if priority is not None: pulumi.set(__self__, "priority", priority) + if route_to is not None: + warnings.warn("""The 'route_to' attribute is no longer supported for catch-all rules.""", DeprecationWarning) + pulumi.log.warn("""route_to is deprecated: The 'route_to' attribute is no longer supported for catch-all rules.""") if route_to is not None: pulumi.set(__self__, "route_to", route_to) if severity is not None: @@ -3317,6 +3320,7 @@ def priority(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="routeTo") + @_utilities.deprecated("""The 'route_to' attribute is no longer supported for catch-all rules.""") def route_to(self) -> Optional[pulumi.Input[str]]: """ The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule. diff --git a/sdk/python/pulumi_pagerduty/incident_workflow.py b/sdk/python/pulumi_pagerduty/incident_workflow.py index 75c49e7a..2c1a3ba3 100644 --- a/sdk/python/pulumi_pagerduty/incident_workflow.py +++ b/sdk/python/pulumi_pagerduty/incident_workflow.py @@ -22,18 +22,22 @@ class IncidentWorkflowArgs: def __init__(__self__, *, description: Optional[pulumi.Input[str]] = None, + is_enabled: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, steps: Optional[pulumi.Input[Sequence[pulumi.Input['IncidentWorkflowStepArgs']]]] = None, team: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a IncidentWorkflow resource. :param pulumi.Input[str] description: The description of the workflow. + :param pulumi.Input[str] is_enabled: Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. :param pulumi.Input[str] name: The name of the workflow. :param pulumi.Input[Sequence[pulumi.Input['IncidentWorkflowStepArgs']]] steps: The steps in the workflow. :param pulumi.Input[str] team: A team ID. If specified then workflow edit permissions will be scoped to members of this team. """ if description is not None: pulumi.set(__self__, "description", description) + if is_enabled is not None: + pulumi.set(__self__, "is_enabled", is_enabled) if name is not None: pulumi.set(__self__, "name", name) if steps is not None: @@ -53,6 +57,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter(name="isEnabled") + def is_enabled(self) -> Optional[pulumi.Input[str]]: + """ + Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + """ + return pulumi.get(self, "is_enabled") + + @is_enabled.setter + def is_enabled(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "is_enabled", value) + @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: @@ -94,18 +110,22 @@ def team(self, value: Optional[pulumi.Input[str]]): class _IncidentWorkflowState: def __init__(__self__, *, description: Optional[pulumi.Input[str]] = None, + is_enabled: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, steps: Optional[pulumi.Input[Sequence[pulumi.Input['IncidentWorkflowStepArgs']]]] = None, team: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering IncidentWorkflow resources. :param pulumi.Input[str] description: The description of the workflow. + :param pulumi.Input[str] is_enabled: Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. :param pulumi.Input[str] name: The name of the workflow. :param pulumi.Input[Sequence[pulumi.Input['IncidentWorkflowStepArgs']]] steps: The steps in the workflow. :param pulumi.Input[str] team: A team ID. If specified then workflow edit permissions will be scoped to members of this team. """ if description is not None: pulumi.set(__self__, "description", description) + if is_enabled is not None: + pulumi.set(__self__, "is_enabled", is_enabled) if name is not None: pulumi.set(__self__, "name", name) if steps is not None: @@ -125,6 +145,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter(name="isEnabled") + def is_enabled(self) -> Optional[pulumi.Input[str]]: + """ + Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + """ + return pulumi.get(self, "is_enabled") + + @is_enabled.setter + def is_enabled(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "is_enabled", value) + @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: @@ -168,6 +200,7 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, + is_enabled: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, steps: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IncidentWorkflowStepArgs', 'IncidentWorkflowStepArgsDict']]]]] = None, team: Optional[pulumi.Input[str]] = None, @@ -205,6 +238,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] description: The description of the workflow. + :param pulumi.Input[str] is_enabled: Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. :param pulumi.Input[str] name: The name of the workflow. :param pulumi.Input[Sequence[pulumi.Input[Union['IncidentWorkflowStepArgs', 'IncidentWorkflowStepArgsDict']]]] steps: The steps in the workflow. :param pulumi.Input[str] team: A team ID. If specified then workflow edit permissions will be scoped to members of this team. @@ -261,6 +295,7 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, + is_enabled: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, steps: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IncidentWorkflowStepArgs', 'IncidentWorkflowStepArgsDict']]]]] = None, team: Optional[pulumi.Input[str]] = None, @@ -274,6 +309,7 @@ def _internal_init(__self__, __props__ = IncidentWorkflowArgs.__new__(IncidentWorkflowArgs) __props__.__dict__["description"] = description + __props__.__dict__["is_enabled"] = is_enabled __props__.__dict__["name"] = name __props__.__dict__["steps"] = steps __props__.__dict__["team"] = team @@ -288,6 +324,7 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, + is_enabled: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, steps: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IncidentWorkflowStepArgs', 'IncidentWorkflowStepArgsDict']]]]] = None, team: Optional[pulumi.Input[str]] = None) -> 'IncidentWorkflow': @@ -299,6 +336,7 @@ def get(resource_name: str, :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] description: The description of the workflow. + :param pulumi.Input[str] is_enabled: Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. :param pulumi.Input[str] name: The name of the workflow. :param pulumi.Input[Sequence[pulumi.Input[Union['IncidentWorkflowStepArgs', 'IncidentWorkflowStepArgsDict']]]] steps: The steps in the workflow. :param pulumi.Input[str] team: A team ID. If specified then workflow edit permissions will be scoped to members of this team. @@ -308,6 +346,7 @@ def get(resource_name: str, __props__ = _IncidentWorkflowState.__new__(_IncidentWorkflowState) __props__.__dict__["description"] = description + __props__.__dict__["is_enabled"] = is_enabled __props__.__dict__["name"] = name __props__.__dict__["steps"] = steps __props__.__dict__["team"] = team @@ -321,6 +360,14 @@ def description(self) -> pulumi.Output[Optional[str]]: """ return pulumi.get(self, "description") + @property + @pulumi.getter(name="isEnabled") + def is_enabled(self) -> pulumi.Output[str]: + """ + Indicates whether the Incident Workflow is enabled or not. Disabled workflows will not be triggered, and will not count toward the account's enabled workflow limit. + """ + return pulumi.get(self, "is_enabled") + @property @pulumi.getter def name(self) -> pulumi.Output[str]: diff --git a/sdk/python/pulumi_pagerduty/outputs.py b/sdk/python/pulumi_pagerduty/outputs.py index 5994d1da..3ef0018a 100644 --- a/sdk/python/pulumi_pagerduty/outputs.py +++ b/sdk/python/pulumi_pagerduty/outputs.py @@ -2239,6 +2239,7 @@ def priority(self) -> Optional[str]: @property @pulumi.getter(name="routeTo") + @_utilities.deprecated("""The 'route_to' attribute is no longer supported for catch-all rules.""") def route_to(self) -> Optional[str]: """ The ID of a Set from this Service Orchestration whose rules you also want to use with events that match this rule. diff --git a/upstream b/upstream index 0f2368fe..399941a8 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 0f2368fe003120d1e9826414061a2a9768cb4bc4 +Subproject commit 399941a81d5a387b9c02c0a5dee957ac69a54ac6