1. Packages
  2. Zenduty Provider
  3. API Docs
  4. OutgoingRules
zenduty 1.0.4 published on Wednesday, Apr 2, 2025 by zenduty

zenduty.OutgoingRules

Explore with Pulumi AI

zenduty.OutgoingRules is a resource to manage outgoing rules in a integration

Create OutgoingRules Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new OutgoingRules(name: string, args: OutgoingRulesArgs, opts?: CustomResourceOptions);
@overload
def OutgoingRules(resource_name: str,
                  args: OutgoingRulesArgs,
                  opts: Optional[ResourceOptions] = None)

@overload
def OutgoingRules(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  integration_id: Optional[str] = None,
                  rule_json: Optional[str] = None,
                  service_id: Optional[str] = None,
                  team_id: Optional[str] = None,
                  enabled: Optional[bool] = None,
                  outgoing_rules_id: Optional[str] = None)
func NewOutgoingRules(ctx *Context, name string, args OutgoingRulesArgs, opts ...ResourceOption) (*OutgoingRules, error)
public OutgoingRules(string name, OutgoingRulesArgs args, CustomResourceOptions? opts = null)
public OutgoingRules(String name, OutgoingRulesArgs args)
public OutgoingRules(String name, OutgoingRulesArgs args, CustomResourceOptions options)
type: zenduty:OutgoingRules
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. OutgoingRulesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. OutgoingRulesArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. OutgoingRulesArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. OutgoingRulesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. OutgoingRulesArgs
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 outgoingRulesResource = new Zenduty.OutgoingRules("outgoingRulesResource", new()
{
    IntegrationId = "string",
    RuleJson = "string",
    ServiceId = "string",
    TeamId = "string",
    Enabled = false,
    OutgoingRulesId = "string",
});
Copy
example, err := zenduty.NewOutgoingRules(ctx, "outgoingRulesResource", &zenduty.OutgoingRulesArgs{
IntegrationId: pulumi.String("string"),
RuleJson: pulumi.String("string"),
ServiceId: pulumi.String("string"),
TeamId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
OutgoingRulesId: pulumi.String("string"),
})
Copy
var outgoingRulesResource = new OutgoingRules("outgoingRulesResource", OutgoingRulesArgs.builder()
    .integrationId("string")
    .ruleJson("string")
    .serviceId("string")
    .teamId("string")
    .enabled(false)
    .outgoingRulesId("string")
    .build());
Copy
outgoing_rules_resource = zenduty.OutgoingRules("outgoingRulesResource",
    integration_id="string",
    rule_json="string",
    service_id="string",
    team_id="string",
    enabled=False,
    outgoing_rules_id="string")
Copy
const outgoingRulesResource = new zenduty.OutgoingRules("outgoingRulesResource", {
    integrationId: "string",
    ruleJson: "string",
    serviceId: "string",
    teamId: "string",
    enabled: false,
    outgoingRulesId: "string",
});
Copy
type: zenduty:OutgoingRules
properties:
    enabled: false
    integrationId: string
    outgoingRulesId: string
    ruleJson: string
    serviceId: string
    teamId: string
Copy

OutgoingRules 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 OutgoingRules resource accepts the following input properties:

IntegrationId This property is required. string
The unique_id of the integration to create the alert rule in.
RuleJson This property is required. string
ServiceId This property is required. string
The unique_id of the service to create the alert rule in.
TeamId This property is required. string
The unique_id of the team to create the alert rule in.
Enabled bool
boolean value to enable or disabled
OutgoingRulesId string
The ID of the Outgoing Rule.
IntegrationId This property is required. string
The unique_id of the integration to create the alert rule in.
RuleJson This property is required. string
ServiceId This property is required. string
The unique_id of the service to create the alert rule in.
TeamId This property is required. string
The unique_id of the team to create the alert rule in.
Enabled bool
boolean value to enable or disabled
OutgoingRulesId string
The ID of the Outgoing Rule.
integrationId This property is required. String
The unique_id of the integration to create the alert rule in.
ruleJson This property is required. String
serviceId This property is required. String
The unique_id of the service to create the alert rule in.
teamId This property is required. String
The unique_id of the team to create the alert rule in.
enabled Boolean
boolean value to enable or disabled
outgoingRulesId String
The ID of the Outgoing Rule.
integrationId This property is required. string
The unique_id of the integration to create the alert rule in.
ruleJson This property is required. string
serviceId This property is required. string
The unique_id of the service to create the alert rule in.
teamId This property is required. string
The unique_id of the team to create the alert rule in.
enabled boolean
boolean value to enable or disabled
outgoingRulesId string
The ID of the Outgoing Rule.
integration_id This property is required. str
The unique_id of the integration to create the alert rule in.
rule_json This property is required. str
service_id This property is required. str
The unique_id of the service to create the alert rule in.
team_id This property is required. str
The unique_id of the team to create the alert rule in.
enabled bool
boolean value to enable or disabled
outgoing_rules_id str
The ID of the Outgoing Rule.
integrationId This property is required. String
The unique_id of the integration to create the alert rule in.
ruleJson This property is required. String
serviceId This property is required. String
The unique_id of the service to create the alert rule in.
teamId This property is required. String
The unique_id of the team to create the alert rule in.
enabled Boolean
boolean value to enable or disabled
outgoingRulesId String
The ID of the Outgoing Rule.

Outputs

All input properties are implicitly available as output properties. Additionally, the OutgoingRules 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 OutgoingRules Resource

Get an existing OutgoingRules 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?: OutgoingRulesState, opts?: CustomResourceOptions): OutgoingRules
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        enabled: Optional[bool] = None,
        integration_id: Optional[str] = None,
        outgoing_rules_id: Optional[str] = None,
        rule_json: Optional[str] = None,
        service_id: Optional[str] = None,
        team_id: Optional[str] = None) -> OutgoingRules
func GetOutgoingRules(ctx *Context, name string, id IDInput, state *OutgoingRulesState, opts ...ResourceOption) (*OutgoingRules, error)
public static OutgoingRules Get(string name, Input<string> id, OutgoingRulesState? state, CustomResourceOptions? opts = null)
public static OutgoingRules get(String name, Output<String> id, OutgoingRulesState state, CustomResourceOptions options)
resources:  _:    type: zenduty:OutgoingRules    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Enabled bool
boolean value to enable or disabled
IntegrationId string
The unique_id of the integration to create the alert rule in.
OutgoingRulesId string
The ID of the Outgoing Rule.
RuleJson string
ServiceId string
The unique_id of the service to create the alert rule in.
TeamId string
The unique_id of the team to create the alert rule in.
Enabled bool
boolean value to enable or disabled
IntegrationId string
The unique_id of the integration to create the alert rule in.
OutgoingRulesId string
The ID of the Outgoing Rule.
RuleJson string
ServiceId string
The unique_id of the service to create the alert rule in.
TeamId string
The unique_id of the team to create the alert rule in.
enabled Boolean
boolean value to enable or disabled
integrationId String
The unique_id of the integration to create the alert rule in.
outgoingRulesId String
The ID of the Outgoing Rule.
ruleJson String
serviceId String
The unique_id of the service to create the alert rule in.
teamId String
The unique_id of the team to create the alert rule in.
enabled boolean
boolean value to enable or disabled
integrationId string
The unique_id of the integration to create the alert rule in.
outgoingRulesId string
The ID of the Outgoing Rule.
ruleJson string
serviceId string
The unique_id of the service to create the alert rule in.
teamId string
The unique_id of the team to create the alert rule in.
enabled bool
boolean value to enable or disabled
integration_id str
The unique_id of the integration to create the alert rule in.
outgoing_rules_id str
The ID of the Outgoing Rule.
rule_json str
service_id str
The unique_id of the service to create the alert rule in.
team_id str
The unique_id of the team to create the alert rule in.
enabled Boolean
boolean value to enable or disabled
integrationId String
The unique_id of the integration to create the alert rule in.
outgoingRulesId String
The ID of the Outgoing Rule.
ruleJson String
serviceId String
The unique_id of the service to create the alert rule in.
teamId String
The unique_id of the team to create the alert rule in.

Import

Integrations can be imported using the team_id(ie. unique_id of the team), service_id(ie. unique_id of the service),integration_id(ie. unique_id of the integration) and outgoing_rule_id(ie. unique_id of the alert rule).

hcl

resource “zenduty_outgoing_rules” “demorule” {

}

$ pulumi import zenduty:index/outgoingRules:OutgoingRules demorule team_id/service_id/integration_id/outgoing_rule_id`
Copy

$ terraform state show zenduty_outgoing_rules.demorule

* copy the output data and paste inside zenduty_outgoing_rules.demorule resource block and remove the id attribute

$ pulumi preview to verify the import

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
zenduty zenduty/terraform-provider-zenduty
License
Notes
This Pulumi package is based on the zenduty Terraform Provider.