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 string
- The unique name of the resource.
- args OutgoingRulesArgs
- 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 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 string
- The unique name of the resource.
- args OutgoingRulesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OutgoingRulesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
var outgoingRulesResource = new OutgoingRules("outgoingRulesResource", OutgoingRulesArgs.builder()
    .integrationId("string")
    .ruleJson("string")
    .serviceId("string")
    .teamId("string")
    .enabled(false)
    .outgoingRulesId("string")
    .build());
outgoing_rules_resource = zenduty.OutgoingRules("outgoingRulesResource",
    integration_id="string",
    rule_json="string",
    service_id="string",
    team_id="string",
    enabled=False,
    outgoing_rules_id="string")
const outgoingRulesResource = new zenduty.OutgoingRules("outgoingRulesResource", {
    integrationId: "string",
    ruleJson: "string",
    serviceId: "string",
    teamId: "string",
    enabled: false,
    outgoingRulesId: "string",
});
type: zenduty:OutgoingRules
properties:
    enabled: false
    integrationId: string
    outgoingRulesId: string
    ruleJson: string
    serviceId: string
    teamId: string
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 string
- The unique_id of the integration to create the alert rule in.
- 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
- OutgoingRules stringId 
- The ID of the Outgoing Rule.
- IntegrationId string
- The unique_id of the integration to create the alert rule in.
- 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
- OutgoingRules stringId 
- The ID of the Outgoing Rule.
- integrationId String
- The unique_id of the integration to create the alert rule in.
- 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
- outgoingRules StringId 
- The ID of the Outgoing Rule.
- integrationId string
- The unique_id of the integration to create the alert rule in.
- 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
- outgoingRules stringId 
- The ID of the Outgoing Rule.
- integration_id str
- The unique_id of the integration to create the alert rule in.
- 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 bool
- boolean value to enable or disabled
- outgoing_rules_ strid 
- The ID of the Outgoing Rule.
- integrationId String
- The unique_id of the integration to create the alert rule in.
- 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
- outgoingRules StringId 
- 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) -> OutgoingRulesfunc 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
- 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.
- Enabled bool
- boolean value to enable or disabled
- IntegrationId string
- The unique_id of the integration to create the alert rule in.
- OutgoingRules stringId 
- 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.
- OutgoingRules stringId 
- 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.
- outgoingRules StringId 
- 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.
- outgoingRules stringId 
- 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_ strid 
- 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.
- outgoingRules StringId 
- 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`
$ 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 zendutyTerraform Provider.