1. Packages
  2. Opsgenie
  3. API Docs
  4. NotificationPolicy
Opsgenie v1.3.9 published on Tuesday, Jul 16, 2024 by Pulumi

opsgenie.NotificationPolicy

Explore with Pulumi AI

opsgenie logo
Opsgenie v1.3.9 published on Tuesday, Jul 16, 2024 by Pulumi

    Manages a Notification Policy within Opsgenie.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opsgenie from "@pulumi/opsgenie";
    
    const test = new opsgenie.Team("test", {
        name: "example team",
        description: "This team deals with all the things",
    });
    const testNotificationPolicy = new opsgenie.NotificationPolicy("test", {
        filters: [{}],
        name: "example policy",
        teamId: test.id,
        policyDescription: "This policy has a delay action",
        delayActions: [{
            delayOption: "next-time",
            untilMinute: 1,
            untilHour: 9,
        }],
    });
    
    import pulumi
    import pulumi_opsgenie as opsgenie
    
    test = opsgenie.Team("test",
        name="example team",
        description="This team deals with all the things")
    test_notification_policy = opsgenie.NotificationPolicy("test",
        filters=[opsgenie.NotificationPolicyFilterArgs()],
        name="example policy",
        team_id=test.id,
        policy_description="This policy has a delay action",
        delay_actions=[opsgenie.NotificationPolicyDelayActionArgs(
            delay_option="next-time",
            until_minute=1,
            until_hour=9,
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-opsgenie/sdk/go/opsgenie"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		test, err := opsgenie.NewTeam(ctx, "test", &opsgenie.TeamArgs{
    			Name:        pulumi.String("example team"),
    			Description: pulumi.String("This team deals with all the things"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opsgenie.NewNotificationPolicy(ctx, "test", &opsgenie.NotificationPolicyArgs{
    			Filters: opsgenie.NotificationPolicyFilterArray{
    				nil,
    			},
    			Name:              pulumi.String("example policy"),
    			TeamId:            test.ID(),
    			PolicyDescription: pulumi.String("This policy has a delay action"),
    			DelayActions: opsgenie.NotificationPolicyDelayActionArray{
    				&opsgenie.NotificationPolicyDelayActionArgs{
    					DelayOption: pulumi.String("next-time"),
    					UntilMinute: pulumi.Int(1),
    					UntilHour:   pulumi.Int(9),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opsgenie = Pulumi.Opsgenie;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Opsgenie.Team("test", new()
        {
            Name = "example team",
            Description = "This team deals with all the things",
        });
    
        var testNotificationPolicy = new Opsgenie.NotificationPolicy("test", new()
        {
            Filters = new[]
            {
                null,
            },
            Name = "example policy",
            TeamId = test.Id,
            PolicyDescription = "This policy has a delay action",
            DelayActions = new[]
            {
                new Opsgenie.Inputs.NotificationPolicyDelayActionArgs
                {
                    DelayOption = "next-time",
                    UntilMinute = 1,
                    UntilHour = 9,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opsgenie.Team;
    import com.pulumi.opsgenie.TeamArgs;
    import com.pulumi.opsgenie.NotificationPolicy;
    import com.pulumi.opsgenie.NotificationPolicyArgs;
    import com.pulumi.opsgenie.inputs.NotificationPolicyFilterArgs;
    import com.pulumi.opsgenie.inputs.NotificationPolicyDelayActionArgs;
    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 test = new Team("test", TeamArgs.builder()
                .name("example team")
                .description("This team deals with all the things")
                .build());
    
            var testNotificationPolicy = new NotificationPolicy("testNotificationPolicy", NotificationPolicyArgs.builder()
                .filters()
                .name("example policy")
                .teamId(test.id())
                .policyDescription("This policy has a delay action")
                .delayActions(NotificationPolicyDelayActionArgs.builder()
                    .delayOption("next-time")
                    .untilMinute(1)
                    .untilHour(9)
                    .build())
                .build());
    
        }
    }
    
    resources:
      test:
        type: opsgenie:Team
        properties:
          name: example team
          description: This team deals with all the things
      testNotificationPolicy:
        type: opsgenie:NotificationPolicy
        name: test
        properties:
          filters:
            - {}
          name: example policy
          teamId: ${test.id}
          policyDescription: This policy has a delay action
          delayActions:
            - delayOption: next-time
              untilMinute: 1
              untilHour: 9
    

    Create NotificationPolicy Resource

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

    Constructor syntax

    new NotificationPolicy(name: string, args: NotificationPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def NotificationPolicy(resource_name: str,
                           args: NotificationPolicyArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def NotificationPolicy(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           filters: Optional[Sequence[NotificationPolicyFilterArgs]] = None,
                           team_id: Optional[str] = None,
                           auto_close_actions: Optional[Sequence[NotificationPolicyAutoCloseActionArgs]] = None,
                           auto_restart_actions: Optional[Sequence[NotificationPolicyAutoRestartActionArgs]] = None,
                           de_duplication_actions: Optional[Sequence[NotificationPolicyDeDuplicationActionArgs]] = None,
                           delay_actions: Optional[Sequence[NotificationPolicyDelayActionArgs]] = None,
                           enabled: Optional[bool] = None,
                           name: Optional[str] = None,
                           policy_description: Optional[str] = None,
                           suppress: Optional[bool] = None,
                           time_restrictions: Optional[Sequence[NotificationPolicyTimeRestrictionArgs]] = None)
    func NewNotificationPolicy(ctx *Context, name string, args NotificationPolicyArgs, opts ...ResourceOption) (*NotificationPolicy, error)
    public NotificationPolicy(string name, NotificationPolicyArgs args, CustomResourceOptions? opts = null)
    public NotificationPolicy(String name, NotificationPolicyArgs args)
    public NotificationPolicy(String name, NotificationPolicyArgs args, CustomResourceOptions options)
    
    type: opsgenie:NotificationPolicy
    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 NotificationPolicyArgs
    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 NotificationPolicyArgs
    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 NotificationPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NotificationPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NotificationPolicyArgs
    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 notificationPolicyResource = new Opsgenie.NotificationPolicy("notificationPolicyResource", new()
    {
        Filters = new[]
        {
            new Opsgenie.Inputs.NotificationPolicyFilterArgs
            {
                Conditions = new[]
                {
                    new Opsgenie.Inputs.NotificationPolicyFilterConditionArgs
                    {
                        Field = "string",
                        Operation = "string",
                        ExpectedValue = "string",
                        Key = "string",
                        Not = false,
                        Order = 0,
                    },
                },
                Type = "string",
            },
        },
        TeamId = "string",
        AutoCloseActions = new[]
        {
            new Opsgenie.Inputs.NotificationPolicyAutoCloseActionArgs
            {
                Durations = new[]
                {
                    new Opsgenie.Inputs.NotificationPolicyAutoCloseActionDurationArgs
                    {
                        TimeAmount = 0,
                        TimeUnit = "string",
                    },
                },
            },
        },
        AutoRestartActions = new[]
        {
            new Opsgenie.Inputs.NotificationPolicyAutoRestartActionArgs
            {
                Durations = new[]
                {
                    new Opsgenie.Inputs.NotificationPolicyAutoRestartActionDurationArgs
                    {
                        TimeAmount = 0,
                        TimeUnit = "string",
                    },
                },
                MaxRepeatCount = 0,
            },
        },
        DeDuplicationActions = new[]
        {
            new Opsgenie.Inputs.NotificationPolicyDeDuplicationActionArgs
            {
                Count = 0,
                DeDuplicationActionType = "string",
                Durations = new[]
                {
                    new Opsgenie.Inputs.NotificationPolicyDeDuplicationActionDurationArgs
                    {
                        TimeAmount = 0,
                        TimeUnit = "string",
                    },
                },
            },
        },
        DelayActions = new[]
        {
            new Opsgenie.Inputs.NotificationPolicyDelayActionArgs
            {
                DelayOption = "string",
                Durations = new[]
                {
                    new Opsgenie.Inputs.NotificationPolicyDelayActionDurationArgs
                    {
                        TimeAmount = 0,
                        TimeUnit = "string",
                    },
                },
                UntilHour = 0,
                UntilMinute = 0,
            },
        },
        Enabled = false,
        Name = "string",
        PolicyDescription = "string",
        Suppress = false,
        TimeRestrictions = new[]
        {
            new Opsgenie.Inputs.NotificationPolicyTimeRestrictionArgs
            {
                Type = "string",
                Restriction = new[]
                {
                    new Opsgenie.Inputs.NotificationPolicyTimeRestrictionRestrictionArgs
                    {
                        EndHour = 0,
                        EndMin = 0,
                        StartHour = 0,
                        StartMin = 0,
                    },
                },
                RestrictionList = new[]
                {
                    new Opsgenie.Inputs.NotificationPolicyTimeRestrictionRestrictionListArgs
                    {
                        EndDay = "string",
                        EndHour = 0,
                        EndMin = 0,
                        StartDay = "string",
                        StartHour = 0,
                        StartMin = 0,
                    },
                },
            },
        },
    });
    
    example, err := opsgenie.NewNotificationPolicy(ctx, "notificationPolicyResource", &opsgenie.NotificationPolicyArgs{
    	Filters: opsgenie.NotificationPolicyFilterArray{
    		&opsgenie.NotificationPolicyFilterArgs{
    			Conditions: opsgenie.NotificationPolicyFilterConditionArray{
    				&opsgenie.NotificationPolicyFilterConditionArgs{
    					Field:         pulumi.String("string"),
    					Operation:     pulumi.String("string"),
    					ExpectedValue: pulumi.String("string"),
    					Key:           pulumi.String("string"),
    					Not:           pulumi.Bool(false),
    					Order:         pulumi.Int(0),
    				},
    			},
    			Type: pulumi.String("string"),
    		},
    	},
    	TeamId: pulumi.String("string"),
    	AutoCloseActions: opsgenie.NotificationPolicyAutoCloseActionArray{
    		&opsgenie.NotificationPolicyAutoCloseActionArgs{
    			Durations: opsgenie.NotificationPolicyAutoCloseActionDurationArray{
    				&opsgenie.NotificationPolicyAutoCloseActionDurationArgs{
    					TimeAmount: pulumi.Int(0),
    					TimeUnit:   pulumi.String("string"),
    				},
    			},
    		},
    	},
    	AutoRestartActions: opsgenie.NotificationPolicyAutoRestartActionArray{
    		&opsgenie.NotificationPolicyAutoRestartActionArgs{
    			Durations: opsgenie.NotificationPolicyAutoRestartActionDurationArray{
    				&opsgenie.NotificationPolicyAutoRestartActionDurationArgs{
    					TimeAmount: pulumi.Int(0),
    					TimeUnit:   pulumi.String("string"),
    				},
    			},
    			MaxRepeatCount: pulumi.Int(0),
    		},
    	},
    	DeDuplicationActions: opsgenie.NotificationPolicyDeDuplicationActionArray{
    		&opsgenie.NotificationPolicyDeDuplicationActionArgs{
    			Count:                   pulumi.Int(0),
    			DeDuplicationActionType: pulumi.String("string"),
    			Durations: opsgenie.NotificationPolicyDeDuplicationActionDurationArray{
    				&opsgenie.NotificationPolicyDeDuplicationActionDurationArgs{
    					TimeAmount: pulumi.Int(0),
    					TimeUnit:   pulumi.String("string"),
    				},
    			},
    		},
    	},
    	DelayActions: opsgenie.NotificationPolicyDelayActionArray{
    		&opsgenie.NotificationPolicyDelayActionArgs{
    			DelayOption: pulumi.String("string"),
    			Durations: opsgenie.NotificationPolicyDelayActionDurationArray{
    				&opsgenie.NotificationPolicyDelayActionDurationArgs{
    					TimeAmount: pulumi.Int(0),
    					TimeUnit:   pulumi.String("string"),
    				},
    			},
    			UntilHour:   pulumi.Int(0),
    			UntilMinute: pulumi.Int(0),
    		},
    	},
    	Enabled:           pulumi.Bool(false),
    	Name:              pulumi.String("string"),
    	PolicyDescription: pulumi.String("string"),
    	Suppress:          pulumi.Bool(false),
    	TimeRestrictions: opsgenie.NotificationPolicyTimeRestrictionArray{
    		&opsgenie.NotificationPolicyTimeRestrictionArgs{
    			Type: pulumi.String("string"),
    			Restriction: opsgenie.NotificationPolicyTimeRestrictionRestrictionArray{
    				&opsgenie.NotificationPolicyTimeRestrictionRestrictionArgs{
    					EndHour:   pulumi.Int(0),
    					EndMin:    pulumi.Int(0),
    					StartHour: pulumi.Int(0),
    					StartMin:  pulumi.Int(0),
    				},
    			},
    			RestrictionList: opsgenie.NotificationPolicyTimeRestrictionRestrictionListArray{
    				&opsgenie.NotificationPolicyTimeRestrictionRestrictionListArgs{
    					EndDay:    pulumi.String("string"),
    					EndHour:   pulumi.Int(0),
    					EndMin:    pulumi.Int(0),
    					StartDay:  pulumi.String("string"),
    					StartHour: pulumi.Int(0),
    					StartMin:  pulumi.Int(0),
    				},
    			},
    		},
    	},
    })
    
    var notificationPolicyResource = new NotificationPolicy("notificationPolicyResource", NotificationPolicyArgs.builder()
        .filters(NotificationPolicyFilterArgs.builder()
            .conditions(NotificationPolicyFilterConditionArgs.builder()
                .field("string")
                .operation("string")
                .expectedValue("string")
                .key("string")
                .not(false)
                .order(0)
                .build())
            .type("string")
            .build())
        .teamId("string")
        .autoCloseActions(NotificationPolicyAutoCloseActionArgs.builder()
            .durations(NotificationPolicyAutoCloseActionDurationArgs.builder()
                .timeAmount(0)
                .timeUnit("string")
                .build())
            .build())
        .autoRestartActions(NotificationPolicyAutoRestartActionArgs.builder()
            .durations(NotificationPolicyAutoRestartActionDurationArgs.builder()
                .timeAmount(0)
                .timeUnit("string")
                .build())
            .maxRepeatCount(0)
            .build())
        .deDuplicationActions(NotificationPolicyDeDuplicationActionArgs.builder()
            .count(0)
            .deDuplicationActionType("string")
            .durations(NotificationPolicyDeDuplicationActionDurationArgs.builder()
                .timeAmount(0)
                .timeUnit("string")
                .build())
            .build())
        .delayActions(NotificationPolicyDelayActionArgs.builder()
            .delayOption("string")
            .durations(NotificationPolicyDelayActionDurationArgs.builder()
                .timeAmount(0)
                .timeUnit("string")
                .build())
            .untilHour(0)
            .untilMinute(0)
            .build())
        .enabled(false)
        .name("string")
        .policyDescription("string")
        .suppress(false)
        .timeRestrictions(NotificationPolicyTimeRestrictionArgs.builder()
            .type("string")
            .restriction(NotificationPolicyTimeRestrictionRestrictionArgs.builder()
                .endHour(0)
                .endMin(0)
                .startHour(0)
                .startMin(0)
                .build())
            .restrictionList(NotificationPolicyTimeRestrictionRestrictionListArgs.builder()
                .endDay("string")
                .endHour(0)
                .endMin(0)
                .startDay("string")
                .startHour(0)
                .startMin(0)
                .build())
            .build())
        .build());
    
    notification_policy_resource = opsgenie.NotificationPolicy("notificationPolicyResource",
        filters=[opsgenie.NotificationPolicyFilterArgs(
            conditions=[opsgenie.NotificationPolicyFilterConditionArgs(
                field="string",
                operation="string",
                expected_value="string",
                key="string",
                not_=False,
                order=0,
            )],
            type="string",
        )],
        team_id="string",
        auto_close_actions=[opsgenie.NotificationPolicyAutoCloseActionArgs(
            durations=[opsgenie.NotificationPolicyAutoCloseActionDurationArgs(
                time_amount=0,
                time_unit="string",
            )],
        )],
        auto_restart_actions=[opsgenie.NotificationPolicyAutoRestartActionArgs(
            durations=[opsgenie.NotificationPolicyAutoRestartActionDurationArgs(
                time_amount=0,
                time_unit="string",
            )],
            max_repeat_count=0,
        )],
        de_duplication_actions=[opsgenie.NotificationPolicyDeDuplicationActionArgs(
            count=0,
            de_duplication_action_type="string",
            durations=[opsgenie.NotificationPolicyDeDuplicationActionDurationArgs(
                time_amount=0,
                time_unit="string",
            )],
        )],
        delay_actions=[opsgenie.NotificationPolicyDelayActionArgs(
            delay_option="string",
            durations=[opsgenie.NotificationPolicyDelayActionDurationArgs(
                time_amount=0,
                time_unit="string",
            )],
            until_hour=0,
            until_minute=0,
        )],
        enabled=False,
        name="string",
        policy_description="string",
        suppress=False,
        time_restrictions=[opsgenie.NotificationPolicyTimeRestrictionArgs(
            type="string",
            restriction=[opsgenie.NotificationPolicyTimeRestrictionRestrictionArgs(
                end_hour=0,
                end_min=0,
                start_hour=0,
                start_min=0,
            )],
            restriction_list=[opsgenie.NotificationPolicyTimeRestrictionRestrictionListArgs(
                end_day="string",
                end_hour=0,
                end_min=0,
                start_day="string",
                start_hour=0,
                start_min=0,
            )],
        )])
    
    const notificationPolicyResource = new opsgenie.NotificationPolicy("notificationPolicyResource", {
        filters: [{
            conditions: [{
                field: "string",
                operation: "string",
                expectedValue: "string",
                key: "string",
                not: false,
                order: 0,
            }],
            type: "string",
        }],
        teamId: "string",
        autoCloseActions: [{
            durations: [{
                timeAmount: 0,
                timeUnit: "string",
            }],
        }],
        autoRestartActions: [{
            durations: [{
                timeAmount: 0,
                timeUnit: "string",
            }],
            maxRepeatCount: 0,
        }],
        deDuplicationActions: [{
            count: 0,
            deDuplicationActionType: "string",
            durations: [{
                timeAmount: 0,
                timeUnit: "string",
            }],
        }],
        delayActions: [{
            delayOption: "string",
            durations: [{
                timeAmount: 0,
                timeUnit: "string",
            }],
            untilHour: 0,
            untilMinute: 0,
        }],
        enabled: false,
        name: "string",
        policyDescription: "string",
        suppress: false,
        timeRestrictions: [{
            type: "string",
            restriction: [{
                endHour: 0,
                endMin: 0,
                startHour: 0,
                startMin: 0,
            }],
            restrictionList: [{
                endDay: "string",
                endHour: 0,
                endMin: 0,
                startDay: "string",
                startHour: 0,
                startMin: 0,
            }],
        }],
    });
    
    type: opsgenie:NotificationPolicy
    properties:
        autoCloseActions:
            - durations:
                - timeAmount: 0
                  timeUnit: string
        autoRestartActions:
            - durations:
                - timeAmount: 0
                  timeUnit: string
              maxRepeatCount: 0
        deDuplicationActions:
            - count: 0
              deDuplicationActionType: string
              durations:
                - timeAmount: 0
                  timeUnit: string
        delayActions:
            - delayOption: string
              durations:
                - timeAmount: 0
                  timeUnit: string
              untilHour: 0
              untilMinute: 0
        enabled: false
        filters:
            - conditions:
                - expectedValue: string
                  field: string
                  key: string
                  not: false
                  operation: string
                  order: 0
              type: string
        name: string
        policyDescription: string
        suppress: false
        teamId: string
        timeRestrictions:
            - restriction:
                - endHour: 0
                  endMin: 0
                  startHour: 0
                  startMin: 0
              restrictionList:
                - endDay: string
                  endHour: 0
                  endMin: 0
                  startDay: string
                  startHour: 0
                  startMin: 0
              type: string
    

    NotificationPolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The NotificationPolicy resource accepts the following input properties:

    Filters List<NotificationPolicyFilter>
    A notification filter which will be applied. This filter can be empty: filter {} - this means match-all. This is a block, structure is documented below.
    TeamId string
    Id of team that this policy belons to.
    AutoCloseActions List<NotificationPolicyAutoCloseAction>
    Auto Restart Action of the policy. This is a block, structure is documented below.
    AutoRestartActions List<NotificationPolicyAutoRestartAction>
    Auto Restart Action of the policy. This is a block, structure is documented below.
    DeDuplicationActions List<NotificationPolicyDeDuplicationAction>
    Deduplication Action of the policy. This is a block, structure is documented below.
    DelayActions List<NotificationPolicyDelayAction>
    Delay notifications. This is a block, structure is documented below.
    Enabled bool
    If policy should be enabled. Default: true
    Name string
    Name of the notification policy
    PolicyDescription string
    Description of the policy. This can be max 512 characters.
    Suppress bool
    Suppress value of the policy. Values are: true, false. Default: false
    TimeRestrictions List<NotificationPolicyTimeRestriction>
    Time restrictions specified in this field must be met for this policy to work. This is a block, structure is documented below.
    Filters []NotificationPolicyFilterArgs
    A notification filter which will be applied. This filter can be empty: filter {} - this means match-all. This is a block, structure is documented below.
    TeamId string
    Id of team that this policy belons to.
    AutoCloseActions []NotificationPolicyAutoCloseActionArgs
    Auto Restart Action of the policy. This is a block, structure is documented below.
    AutoRestartActions []NotificationPolicyAutoRestartActionArgs
    Auto Restart Action of the policy. This is a block, structure is documented below.
    DeDuplicationActions []NotificationPolicyDeDuplicationActionArgs
    Deduplication Action of the policy. This is a block, structure is documented below.
    DelayActions []NotificationPolicyDelayActionArgs
    Delay notifications. This is a block, structure is documented below.
    Enabled bool
    If policy should be enabled. Default: true
    Name string
    Name of the notification policy
    PolicyDescription string
    Description of the policy. This can be max 512 characters.
    Suppress bool
    Suppress value of the policy. Values are: true, false. Default: false
    TimeRestrictions []NotificationPolicyTimeRestrictionArgs
    Time restrictions specified in this field must be met for this policy to work. This is a block, structure is documented below.
    filters List<NotificationPolicyFilter>
    A notification filter which will be applied. This filter can be empty: filter {} - this means match-all. This is a block, structure is documented below.
    teamId String
    Id of team that this policy belons to.
    autoCloseActions List<NotificationPolicyAutoCloseAction>
    Auto Restart Action of the policy. This is a block, structure is documented below.
    autoRestartActions List<NotificationPolicyAutoRestartAction>
    Auto Restart Action of the policy. This is a block, structure is documented below.
    deDuplicationActions List<NotificationPolicyDeDuplicationAction>
    Deduplication Action of the policy. This is a block, structure is documented below.
    delayActions List<NotificationPolicyDelayAction>
    Delay notifications. This is a block, structure is documented below.
    enabled Boolean
    If policy should be enabled. Default: true
    name String
    Name of the notification policy
    policyDescription String
    Description of the policy. This can be max 512 characters.
    suppress Boolean
    Suppress value of the policy. Values are: true, false. Default: false
    timeRestrictions List<NotificationPolicyTimeRestriction>
    Time restrictions specified in this field must be met for this policy to work. This is a block, structure is documented below.
    filters NotificationPolicyFilter[]
    A notification filter which will be applied. This filter can be empty: filter {} - this means match-all. This is a block, structure is documented below.
    teamId string
    Id of team that this policy belons to.
    autoCloseActions NotificationPolicyAutoCloseAction[]
    Auto Restart Action of the policy. This is a block, structure is documented below.
    autoRestartActions NotificationPolicyAutoRestartAction[]
    Auto Restart Action of the policy. This is a block, structure is documented below.
    deDuplicationActions NotificationPolicyDeDuplicationAction[]
    Deduplication Action of the policy. This is a block, structure is documented below.
    delayActions NotificationPolicyDelayAction[]
    Delay notifications. This is a block, structure is documented below.
    enabled boolean
    If policy should be enabled. Default: true
    name string
    Name of the notification policy
    policyDescription string
    Description of the policy. This can be max 512 characters.
    suppress boolean
    Suppress value of the policy. Values are: true, false. Default: false
    timeRestrictions NotificationPolicyTimeRestriction[]
    Time restrictions specified in this field must be met for this policy to work. This is a block, structure is documented below.
    filters Sequence[NotificationPolicyFilterArgs]
    A notification filter which will be applied. This filter can be empty: filter {} - this means match-all. This is a block, structure is documented below.
    team_id str
    Id of team that this policy belons to.
    auto_close_actions Sequence[NotificationPolicyAutoCloseActionArgs]
    Auto Restart Action of the policy. This is a block, structure is documented below.
    auto_restart_actions Sequence[NotificationPolicyAutoRestartActionArgs]
    Auto Restart Action of the policy. This is a block, structure is documented below.
    de_duplication_actions Sequence[NotificationPolicyDeDuplicationActionArgs]
    Deduplication Action of the policy. This is a block, structure is documented below.
    delay_actions Sequence[NotificationPolicyDelayActionArgs]
    Delay notifications. This is a block, structure is documented below.
    enabled bool
    If policy should be enabled. Default: true
    name str
    Name of the notification policy
    policy_description str
    Description of the policy. This can be max 512 characters.
    suppress bool
    Suppress value of the policy. Values are: true, false. Default: false
    time_restrictions Sequence[NotificationPolicyTimeRestrictionArgs]
    Time restrictions specified in this field must be met for this policy to work. This is a block, structure is documented below.
    filters List<Property Map>
    A notification filter which will be applied. This filter can be empty: filter {} - this means match-all. This is a block, structure is documented below.
    teamId String
    Id of team that this policy belons to.
    autoCloseActions List<Property Map>
    Auto Restart Action of the policy. This is a block, structure is documented below.
    autoRestartActions List<Property Map>
    Auto Restart Action of the policy. This is a block, structure is documented below.
    deDuplicationActions List<Property Map>
    Deduplication Action of the policy. This is a block, structure is documented below.
    delayActions List<Property Map>
    Delay notifications. This is a block, structure is documented below.
    enabled Boolean
    If policy should be enabled. Default: true
    name String
    Name of the notification policy
    policyDescription String
    Description of the policy. This can be max 512 characters.
    suppress Boolean
    Suppress value of the policy. Values are: true, false. Default: false
    timeRestrictions List<Property Map>
    Time restrictions specified in this field must be met for this policy to work. This is a block, structure is documented below.

    Outputs

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

    Get an existing NotificationPolicy 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?: NotificationPolicyState, opts?: CustomResourceOptions): NotificationPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_close_actions: Optional[Sequence[NotificationPolicyAutoCloseActionArgs]] = None,
            auto_restart_actions: Optional[Sequence[NotificationPolicyAutoRestartActionArgs]] = None,
            de_duplication_actions: Optional[Sequence[NotificationPolicyDeDuplicationActionArgs]] = None,
            delay_actions: Optional[Sequence[NotificationPolicyDelayActionArgs]] = None,
            enabled: Optional[bool] = None,
            filters: Optional[Sequence[NotificationPolicyFilterArgs]] = None,
            name: Optional[str] = None,
            policy_description: Optional[str] = None,
            suppress: Optional[bool] = None,
            team_id: Optional[str] = None,
            time_restrictions: Optional[Sequence[NotificationPolicyTimeRestrictionArgs]] = None) -> NotificationPolicy
    func GetNotificationPolicy(ctx *Context, name string, id IDInput, state *NotificationPolicyState, opts ...ResourceOption) (*NotificationPolicy, error)
    public static NotificationPolicy Get(string name, Input<string> id, NotificationPolicyState? state, CustomResourceOptions? opts = null)
    public static NotificationPolicy get(String name, Output<String> id, NotificationPolicyState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    AutoCloseActions List<NotificationPolicyAutoCloseAction>
    Auto Restart Action of the policy. This is a block, structure is documented below.
    AutoRestartActions List<NotificationPolicyAutoRestartAction>
    Auto Restart Action of the policy. This is a block, structure is documented below.
    DeDuplicationActions List<NotificationPolicyDeDuplicationAction>
    Deduplication Action of the policy. This is a block, structure is documented below.
    DelayActions List<NotificationPolicyDelayAction>
    Delay notifications. This is a block, structure is documented below.
    Enabled bool
    If policy should be enabled. Default: true
    Filters List<NotificationPolicyFilter>
    A notification filter which will be applied. This filter can be empty: filter {} - this means match-all. This is a block, structure is documented below.
    Name string
    Name of the notification policy
    PolicyDescription string
    Description of the policy. This can be max 512 characters.
    Suppress bool
    Suppress value of the policy. Values are: true, false. Default: false
    TeamId string
    Id of team that this policy belons to.
    TimeRestrictions List<NotificationPolicyTimeRestriction>
    Time restrictions specified in this field must be met for this policy to work. This is a block, structure is documented below.
    AutoCloseActions []NotificationPolicyAutoCloseActionArgs
    Auto Restart Action of the policy. This is a block, structure is documented below.
    AutoRestartActions []NotificationPolicyAutoRestartActionArgs
    Auto Restart Action of the policy. This is a block, structure is documented below.
    DeDuplicationActions []NotificationPolicyDeDuplicationActionArgs
    Deduplication Action of the policy. This is a block, structure is documented below.
    DelayActions []NotificationPolicyDelayActionArgs
    Delay notifications. This is a block, structure is documented below.
    Enabled bool
    If policy should be enabled. Default: true
    Filters []NotificationPolicyFilterArgs
    A notification filter which will be applied. This filter can be empty: filter {} - this means match-all. This is a block, structure is documented below.
    Name string
    Name of the notification policy
    PolicyDescription string
    Description of the policy. This can be max 512 characters.
    Suppress bool
    Suppress value of the policy. Values are: true, false. Default: false
    TeamId string
    Id of team that this policy belons to.
    TimeRestrictions []NotificationPolicyTimeRestrictionArgs
    Time restrictions specified in this field must be met for this policy to work. This is a block, structure is documented below.
    autoCloseActions List<NotificationPolicyAutoCloseAction>
    Auto Restart Action of the policy. This is a block, structure is documented below.
    autoRestartActions List<NotificationPolicyAutoRestartAction>
    Auto Restart Action of the policy. This is a block, structure is documented below.
    deDuplicationActions List<NotificationPolicyDeDuplicationAction>
    Deduplication Action of the policy. This is a block, structure is documented below.
    delayActions List<NotificationPolicyDelayAction>
    Delay notifications. This is a block, structure is documented below.
    enabled Boolean
    If policy should be enabled. Default: true
    filters List<NotificationPolicyFilter>
    A notification filter which will be applied. This filter can be empty: filter {} - this means match-all. This is a block, structure is documented below.
    name String
    Name of the notification policy
    policyDescription String
    Description of the policy. This can be max 512 characters.
    suppress Boolean
    Suppress value of the policy. Values are: true, false. Default: false
    teamId String
    Id of team that this policy belons to.
    timeRestrictions List<NotificationPolicyTimeRestriction>
    Time restrictions specified in this field must be met for this policy to work. This is a block, structure is documented below.
    autoCloseActions NotificationPolicyAutoCloseAction[]
    Auto Restart Action of the policy. This is a block, structure is documented below.
    autoRestartActions NotificationPolicyAutoRestartAction[]
    Auto Restart Action of the policy. This is a block, structure is documented below.
    deDuplicationActions NotificationPolicyDeDuplicationAction[]
    Deduplication Action of the policy. This is a block, structure is documented below.
    delayActions NotificationPolicyDelayAction[]
    Delay notifications. This is a block, structure is documented below.
    enabled boolean
    If policy should be enabled. Default: true
    filters NotificationPolicyFilter[]
    A notification filter which will be applied. This filter can be empty: filter {} - this means match-all. This is a block, structure is documented below.
    name string
    Name of the notification policy
    policyDescription string
    Description of the policy. This can be max 512 characters.
    suppress boolean
    Suppress value of the policy. Values are: true, false. Default: false
    teamId string
    Id of team that this policy belons to.
    timeRestrictions NotificationPolicyTimeRestriction[]
    Time restrictions specified in this field must be met for this policy to work. This is a block, structure is documented below.
    auto_close_actions Sequence[NotificationPolicyAutoCloseActionArgs]
    Auto Restart Action of the policy. This is a block, structure is documented below.
    auto_restart_actions Sequence[NotificationPolicyAutoRestartActionArgs]
    Auto Restart Action of the policy. This is a block, structure is documented below.
    de_duplication_actions Sequence[NotificationPolicyDeDuplicationActionArgs]
    Deduplication Action of the policy. This is a block, structure is documented below.
    delay_actions Sequence[NotificationPolicyDelayActionArgs]
    Delay notifications. This is a block, structure is documented below.
    enabled bool
    If policy should be enabled. Default: true
    filters Sequence[NotificationPolicyFilterArgs]
    A notification filter which will be applied. This filter can be empty: filter {} - this means match-all. This is a block, structure is documented below.
    name str
    Name of the notification policy
    policy_description str
    Description of the policy. This can be max 512 characters.
    suppress bool
    Suppress value of the policy. Values are: true, false. Default: false
    team_id str
    Id of team that this policy belons to.
    time_restrictions Sequence[NotificationPolicyTimeRestrictionArgs]
    Time restrictions specified in this field must be met for this policy to work. This is a block, structure is documented below.
    autoCloseActions List<Property Map>
    Auto Restart Action of the policy. This is a block, structure is documented below.
    autoRestartActions List<Property Map>
    Auto Restart Action of the policy. This is a block, structure is documented below.
    deDuplicationActions List<Property Map>
    Deduplication Action of the policy. This is a block, structure is documented below.
    delayActions List<Property Map>
    Delay notifications. This is a block, structure is documented below.
    enabled Boolean
    If policy should be enabled. Default: true
    filters List<Property Map>
    A notification filter which will be applied. This filter can be empty: filter {} - this means match-all. This is a block, structure is documented below.
    name String
    Name of the notification policy
    policyDescription String
    Description of the policy. This can be max 512 characters.
    suppress Boolean
    Suppress value of the policy. Values are: true, false. Default: false
    teamId String
    Id of team that this policy belons to.
    timeRestrictions List<Property Map>
    Time restrictions specified in this field must be met for this policy to work. This is a block, structure is documented below.

    Supporting Types

    NotificationPolicyAutoCloseAction, NotificationPolicyAutoCloseActionArgs

    Durations List<NotificationPolicyAutoCloseActionDuration>
    Duration of this action. This is a block, structure is documented below.
    Durations []NotificationPolicyAutoCloseActionDuration
    Duration of this action. This is a block, structure is documented below.
    durations List<NotificationPolicyAutoCloseActionDuration>
    Duration of this action. This is a block, structure is documented below.
    durations NotificationPolicyAutoCloseActionDuration[]
    Duration of this action. This is a block, structure is documented below.
    durations Sequence[NotificationPolicyAutoCloseActionDuration]
    Duration of this action. This is a block, structure is documented below.
    durations List<Property Map>
    Duration of this action. This is a block, structure is documented below.

    NotificationPolicyAutoCloseActionDuration, NotificationPolicyAutoCloseActionDurationArgs

    TimeAmount int
    A amount of time in time_units. This is a integer attribute.
    TimeUnit string
    Valid time units are: minutes, hours, days. Default: minutes
    TimeAmount int
    A amount of time in time_units. This is a integer attribute.
    TimeUnit string
    Valid time units are: minutes, hours, days. Default: minutes
    timeAmount Integer
    A amount of time in time_units. This is a integer attribute.
    timeUnit String
    Valid time units are: minutes, hours, days. Default: minutes
    timeAmount number
    A amount of time in time_units. This is a integer attribute.
    timeUnit string
    Valid time units are: minutes, hours, days. Default: minutes
    time_amount int
    A amount of time in time_units. This is a integer attribute.
    time_unit str
    Valid time units are: minutes, hours, days. Default: minutes
    timeAmount Number
    A amount of time in time_units. This is a integer attribute.
    timeUnit String
    Valid time units are: minutes, hours, days. Default: minutes

    NotificationPolicyAutoRestartAction, NotificationPolicyAutoRestartActionArgs

    Durations List<NotificationPolicyAutoRestartActionDuration>
    Duration of this action. This is a block, structure is documented below.
    MaxRepeatCount int
    How many times to repeat. This is a integer attribute.
    Durations []NotificationPolicyAutoRestartActionDuration
    Duration of this action. This is a block, structure is documented below.
    MaxRepeatCount int
    How many times to repeat. This is a integer attribute.
    durations List<NotificationPolicyAutoRestartActionDuration>
    Duration of this action. This is a block, structure is documented below.
    maxRepeatCount Integer
    How many times to repeat. This is a integer attribute.
    durations NotificationPolicyAutoRestartActionDuration[]
    Duration of this action. This is a block, structure is documented below.
    maxRepeatCount number
    How many times to repeat. This is a integer attribute.
    durations Sequence[NotificationPolicyAutoRestartActionDuration]
    Duration of this action. This is a block, structure is documented below.
    max_repeat_count int
    How many times to repeat. This is a integer attribute.
    durations List<Property Map>
    Duration of this action. This is a block, structure is documented below.
    maxRepeatCount Number
    How many times to repeat. This is a integer attribute.

    NotificationPolicyAutoRestartActionDuration, NotificationPolicyAutoRestartActionDurationArgs

    TimeAmount int
    A amount of time in time_units. This is a integer attribute.
    TimeUnit string
    Valid time units are: minutes, hours, days. Default: minutes
    TimeAmount int
    A amount of time in time_units. This is a integer attribute.
    TimeUnit string
    Valid time units are: minutes, hours, days. Default: minutes
    timeAmount Integer
    A amount of time in time_units. This is a integer attribute.
    timeUnit String
    Valid time units are: minutes, hours, days. Default: minutes
    timeAmount number
    A amount of time in time_units. This is a integer attribute.
    timeUnit string
    Valid time units are: minutes, hours, days. Default: minutes
    time_amount int
    A amount of time in time_units. This is a integer attribute.
    time_unit str
    Valid time units are: minutes, hours, days. Default: minutes
    timeAmount Number
    A amount of time in time_units. This is a integer attribute.
    timeUnit String
    Valid time units are: minutes, hours, days. Default: minutes

    NotificationPolicyDeDuplicationAction, NotificationPolicyDeDuplicationActionArgs

    Count int
    Count
    DeDuplicationActionType string
    Deduplication type. Possible values are: "value-based", "frequency-based"
    Durations List<NotificationPolicyDeDuplicationActionDuration>
    Duration of this action (only required for "frequency-based" de-duplication action). This is a block, structure is documented below.
    Count int
    Count
    DeDuplicationActionType string
    Deduplication type. Possible values are: "value-based", "frequency-based"
    Durations []NotificationPolicyDeDuplicationActionDuration
    Duration of this action (only required for "frequency-based" de-duplication action). This is a block, structure is documented below.
    count Integer
    Count
    deDuplicationActionType String
    Deduplication type. Possible values are: "value-based", "frequency-based"
    durations List<NotificationPolicyDeDuplicationActionDuration>
    Duration of this action (only required for "frequency-based" de-duplication action). This is a block, structure is documented below.
    count number
    Count
    deDuplicationActionType string
    Deduplication type. Possible values are: "value-based", "frequency-based"
    durations NotificationPolicyDeDuplicationActionDuration[]
    Duration of this action (only required for "frequency-based" de-duplication action). This is a block, structure is documented below.
    count int
    Count
    de_duplication_action_type str
    Deduplication type. Possible values are: "value-based", "frequency-based"
    durations Sequence[NotificationPolicyDeDuplicationActionDuration]
    Duration of this action (only required for "frequency-based" de-duplication action). This is a block, structure is documented below.
    count Number
    Count
    deDuplicationActionType String
    Deduplication type. Possible values are: "value-based", "frequency-based"
    durations List<Property Map>
    Duration of this action (only required for "frequency-based" de-duplication action). This is a block, structure is documented below.

    NotificationPolicyDeDuplicationActionDuration, NotificationPolicyDeDuplicationActionDurationArgs

    TimeAmount int
    A amount of time in time_units. This is a integer attribute.
    TimeUnit string
    Valid time units are: minutes, hours, days. Default: minutes
    TimeAmount int
    A amount of time in time_units. This is a integer attribute.
    TimeUnit string
    Valid time units are: minutes, hours, days. Default: minutes
    timeAmount Integer
    A amount of time in time_units. This is a integer attribute.
    timeUnit String
    Valid time units are: minutes, hours, days. Default: minutes
    timeAmount number
    A amount of time in time_units. This is a integer attribute.
    timeUnit string
    Valid time units are: minutes, hours, days. Default: minutes
    time_amount int
    A amount of time in time_units. This is a integer attribute.
    time_unit str
    Valid time units are: minutes, hours, days. Default: minutes
    timeAmount Number
    A amount of time in time_units. This is a integer attribute.
    timeUnit String
    Valid time units are: minutes, hours, days. Default: minutes

    NotificationPolicyDelayAction, NotificationPolicyDelayActionArgs

    DelayOption string
    Defines until what day to delay or for what duration. Possible values are: for-duration, next-time, next-weekday, next-monday, next-tuesday, next-wednesday, next-thursday, next-friday, next-saturday, next-sunday
    Durations List<NotificationPolicyDelayActionDuration>
    Duration of this action. If delay_option = for-duration this has to be set. This is a block, structure is documented below.
    UntilHour int
    Until what hour notifications will be delayed. If delay_option is set to antyhing else then for-duration this has to be set.
    UntilMinute int
    Until what minute on until_hour notifications will be delayed. If delay_option is set to antyhing else then for-duration this has to be set.
    DelayOption string
    Defines until what day to delay or for what duration. Possible values are: for-duration, next-time, next-weekday, next-monday, next-tuesday, next-wednesday, next-thursday, next-friday, next-saturday, next-sunday
    Durations []NotificationPolicyDelayActionDuration
    Duration of this action. If delay_option = for-duration this has to be set. This is a block, structure is documented below.
    UntilHour int
    Until what hour notifications will be delayed. If delay_option is set to antyhing else then for-duration this has to be set.
    UntilMinute int
    Until what minute on until_hour notifications will be delayed. If delay_option is set to antyhing else then for-duration this has to be set.
    delayOption String
    Defines until what day to delay or for what duration. Possible values are: for-duration, next-time, next-weekday, next-monday, next-tuesday, next-wednesday, next-thursday, next-friday, next-saturday, next-sunday
    durations List<NotificationPolicyDelayActionDuration>
    Duration of this action. If delay_option = for-duration this has to be set. This is a block, structure is documented below.
    untilHour Integer
    Until what hour notifications will be delayed. If delay_option is set to antyhing else then for-duration this has to be set.
    untilMinute Integer
    Until what minute on until_hour notifications will be delayed. If delay_option is set to antyhing else then for-duration this has to be set.
    delayOption string
    Defines until what day to delay or for what duration. Possible values are: for-duration, next-time, next-weekday, next-monday, next-tuesday, next-wednesday, next-thursday, next-friday, next-saturday, next-sunday
    durations NotificationPolicyDelayActionDuration[]
    Duration of this action. If delay_option = for-duration this has to be set. This is a block, structure is documented below.
    untilHour number
    Until what hour notifications will be delayed. If delay_option is set to antyhing else then for-duration this has to be set.
    untilMinute number
    Until what minute on until_hour notifications will be delayed. If delay_option is set to antyhing else then for-duration this has to be set.
    delay_option str
    Defines until what day to delay or for what duration. Possible values are: for-duration, next-time, next-weekday, next-monday, next-tuesday, next-wednesday, next-thursday, next-friday, next-saturday, next-sunday
    durations Sequence[NotificationPolicyDelayActionDuration]
    Duration of this action. If delay_option = for-duration this has to be set. This is a block, structure is documented below.
    until_hour int
    Until what hour notifications will be delayed. If delay_option is set to antyhing else then for-duration this has to be set.
    until_minute int
    Until what minute on until_hour notifications will be delayed. If delay_option is set to antyhing else then for-duration this has to be set.
    delayOption String
    Defines until what day to delay or for what duration. Possible values are: for-duration, next-time, next-weekday, next-monday, next-tuesday, next-wednesday, next-thursday, next-friday, next-saturday, next-sunday
    durations List<Property Map>
    Duration of this action. If delay_option = for-duration this has to be set. This is a block, structure is documented below.
    untilHour Number
    Until what hour notifications will be delayed. If delay_option is set to antyhing else then for-duration this has to be set.
    untilMinute Number
    Until what minute on until_hour notifications will be delayed. If delay_option is set to antyhing else then for-duration this has to be set.

    NotificationPolicyDelayActionDuration, NotificationPolicyDelayActionDurationArgs

    TimeAmount int
    A amount of time in time_units. This is a integer attribute.
    TimeUnit string
    Valid time units are: minutes, hours, days. Default: minutes
    TimeAmount int
    A amount of time in time_units. This is a integer attribute.
    TimeUnit string
    Valid time units are: minutes, hours, days. Default: minutes
    timeAmount Integer
    A amount of time in time_units. This is a integer attribute.
    timeUnit String
    Valid time units are: minutes, hours, days. Default: minutes
    timeAmount number
    A amount of time in time_units. This is a integer attribute.
    timeUnit string
    Valid time units are: minutes, hours, days. Default: minutes
    time_amount int
    A amount of time in time_units. This is a integer attribute.
    time_unit str
    Valid time units are: minutes, hours, days. Default: minutes
    timeAmount Number
    A amount of time in time_units. This is a integer attribute.
    timeUnit String
    Valid time units are: minutes, hours, days. Default: minutes

    NotificationPolicyFilter, NotificationPolicyFilterArgs

    Conditions List<NotificationPolicyFilterCondition>
    Conditions applied to filter. This is a block, structure is documented below.
    Type string
    A filter type, supported types are: match-all, match-any-condition, match-all-conditions. Default: match-all
    Conditions []NotificationPolicyFilterCondition
    Conditions applied to filter. This is a block, structure is documented below.
    Type string
    A filter type, supported types are: match-all, match-any-condition, match-all-conditions. Default: match-all
    conditions List<NotificationPolicyFilterCondition>
    Conditions applied to filter. This is a block, structure is documented below.
    type String
    A filter type, supported types are: match-all, match-any-condition, match-all-conditions. Default: match-all
    conditions NotificationPolicyFilterCondition[]
    Conditions applied to filter. This is a block, structure is documented below.
    type string
    A filter type, supported types are: match-all, match-any-condition, match-all-conditions. Default: match-all
    conditions Sequence[NotificationPolicyFilterCondition]
    Conditions applied to filter. This is a block, structure is documented below.
    type str
    A filter type, supported types are: match-all, match-any-condition, match-all-conditions. Default: match-all
    conditions List<Property Map>
    Conditions applied to filter. This is a block, structure is documented below.
    type String
    A filter type, supported types are: match-all, match-any-condition, match-all-conditions. Default: match-all

    NotificationPolicyFilterCondition, NotificationPolicyFilterConditionArgs

    Field string
    Specifies which alert field will be used in condition. Possible values are message, alias, description, source, entity, tags, actions, details, extra-properties, responders, teams, priority
    Operation string
    It is the operation that will be executed for the given field and key. Possible operations are matches, contains, starts-with, ends-with, equals, contains-key, contains-value, greater-than, less-than, is-empty, equals-ignore-whitespace.
    ExpectedValue string
    User defined value that will be compared with alert field according to the operation. Default: empty string
    Key string
    If field is set as extra-properties, key could be used for key-value pair
    Not bool
    Indicates behaviour of the given operation. Default: false
    Order int
    Order of the condition in conditions list
    Field string
    Specifies which alert field will be used in condition. Possible values are message, alias, description, source, entity, tags, actions, details, extra-properties, responders, teams, priority
    Operation string
    It is the operation that will be executed for the given field and key. Possible operations are matches, contains, starts-with, ends-with, equals, contains-key, contains-value, greater-than, less-than, is-empty, equals-ignore-whitespace.
    ExpectedValue string
    User defined value that will be compared with alert field according to the operation. Default: empty string
    Key string
    If field is set as extra-properties, key could be used for key-value pair
    Not bool
    Indicates behaviour of the given operation. Default: false
    Order int
    Order of the condition in conditions list
    field String
    Specifies which alert field will be used in condition. Possible values are message, alias, description, source, entity, tags, actions, details, extra-properties, responders, teams, priority
    operation String
    It is the operation that will be executed for the given field and key. Possible operations are matches, contains, starts-with, ends-with, equals, contains-key, contains-value, greater-than, less-than, is-empty, equals-ignore-whitespace.
    expectedValue String
    User defined value that will be compared with alert field according to the operation. Default: empty string
    key String
    If field is set as extra-properties, key could be used for key-value pair
    not Boolean
    Indicates behaviour of the given operation. Default: false
    order Integer
    Order of the condition in conditions list
    field string
    Specifies which alert field will be used in condition. Possible values are message, alias, description, source, entity, tags, actions, details, extra-properties, responders, teams, priority
    operation string
    It is the operation that will be executed for the given field and key. Possible operations are matches, contains, starts-with, ends-with, equals, contains-key, contains-value, greater-than, less-than, is-empty, equals-ignore-whitespace.
    expectedValue string
    User defined value that will be compared with alert field according to the operation. Default: empty string
    key string
    If field is set as extra-properties, key could be used for key-value pair
    not boolean
    Indicates behaviour of the given operation. Default: false
    order number
    Order of the condition in conditions list
    field str
    Specifies which alert field will be used in condition. Possible values are message, alias, description, source, entity, tags, actions, details, extra-properties, responders, teams, priority
    operation str
    It is the operation that will be executed for the given field and key. Possible operations are matches, contains, starts-with, ends-with, equals, contains-key, contains-value, greater-than, less-than, is-empty, equals-ignore-whitespace.
    expected_value str
    User defined value that will be compared with alert field according to the operation. Default: empty string
    key str
    If field is set as extra-properties, key could be used for key-value pair
    not_ bool
    Indicates behaviour of the given operation. Default: false
    order int
    Order of the condition in conditions list
    field String
    Specifies which alert field will be used in condition. Possible values are message, alias, description, source, entity, tags, actions, details, extra-properties, responders, teams, priority
    operation String
    It is the operation that will be executed for the given field and key. Possible operations are matches, contains, starts-with, ends-with, equals, contains-key, contains-value, greater-than, less-than, is-empty, equals-ignore-whitespace.
    expectedValue String
    User defined value that will be compared with alert field according to the operation. Default: empty string
    key String
    If field is set as extra-properties, key could be used for key-value pair
    not Boolean
    Indicates behaviour of the given operation. Default: false
    order Number
    Order of the condition in conditions list

    NotificationPolicyTimeRestriction, NotificationPolicyTimeRestrictionArgs

    Type string
    Defines if restriction should apply daily on given hours or on certain days and hours. Possible values are: time-of-day, weekday-and-time-of-day
    Restriction List<NotificationPolicyTimeRestrictionRestriction>
    A definition of hourly definition applied daily, this has to be used with combination: type = time-of-day. This is a block, structure is documented below.
    RestrictionList List<NotificationPolicyTimeRestrictionRestrictionList>
    List of days and hours definitions for field type = weekday-and-time-of-day. This is a block, structure is documented below.
    Type string
    Defines if restriction should apply daily on given hours or on certain days and hours. Possible values are: time-of-day, weekday-and-time-of-day
    Restriction []NotificationPolicyTimeRestrictionRestriction
    A definition of hourly definition applied daily, this has to be used with combination: type = time-of-day. This is a block, structure is documented below.
    RestrictionList []NotificationPolicyTimeRestrictionRestrictionList
    List of days and hours definitions for field type = weekday-and-time-of-day. This is a block, structure is documented below.
    type String
    Defines if restriction should apply daily on given hours or on certain days and hours. Possible values are: time-of-day, weekday-and-time-of-day
    restriction List<NotificationPolicyTimeRestrictionRestriction>
    A definition of hourly definition applied daily, this has to be used with combination: type = time-of-day. This is a block, structure is documented below.
    restrictionList List<NotificationPolicyTimeRestrictionRestrictionList>
    List of days and hours definitions for field type = weekday-and-time-of-day. This is a block, structure is documented below.
    type string
    Defines if restriction should apply daily on given hours or on certain days and hours. Possible values are: time-of-day, weekday-and-time-of-day
    restriction NotificationPolicyTimeRestrictionRestriction[]
    A definition of hourly definition applied daily, this has to be used with combination: type = time-of-day. This is a block, structure is documented below.
    restrictionList NotificationPolicyTimeRestrictionRestrictionList[]
    List of days and hours definitions for field type = weekday-and-time-of-day. This is a block, structure is documented below.
    type str
    Defines if restriction should apply daily on given hours or on certain days and hours. Possible values are: time-of-day, weekday-and-time-of-day
    restriction Sequence[NotificationPolicyTimeRestrictionRestriction]
    A definition of hourly definition applied daily, this has to be used with combination: type = time-of-day. This is a block, structure is documented below.
    restriction_list Sequence[NotificationPolicyTimeRestrictionRestrictionList]
    List of days and hours definitions for field type = weekday-and-time-of-day. This is a block, structure is documented below.
    type String
    Defines if restriction should apply daily on given hours or on certain days and hours. Possible values are: time-of-day, weekday-and-time-of-day
    restriction List<Property Map>
    A definition of hourly definition applied daily, this has to be used with combination: type = time-of-day. This is a block, structure is documented below.
    restrictionList List<Property Map>
    List of days and hours definitions for field type = weekday-and-time-of-day. This is a block, structure is documented below.

    NotificationPolicyTimeRestrictionRestriction, NotificationPolicyTimeRestrictionRestrictionArgs

    EndHour int
    Ending hour of restriction.
    EndMin int
    Ending minute of restriction on defined end_hour
    StartHour int
    Starting hour of restriction.
    StartMin int
    Staring minute of restriction on defined start_hour
    EndHour int
    Ending hour of restriction.
    EndMin int
    Ending minute of restriction on defined end_hour
    StartHour int
    Starting hour of restriction.
    StartMin int
    Staring minute of restriction on defined start_hour
    endHour Integer
    Ending hour of restriction.
    endMin Integer
    Ending minute of restriction on defined end_hour
    startHour Integer
    Starting hour of restriction.
    startMin Integer
    Staring minute of restriction on defined start_hour
    endHour number
    Ending hour of restriction.
    endMin number
    Ending minute of restriction on defined end_hour
    startHour number
    Starting hour of restriction.
    startMin number
    Staring minute of restriction on defined start_hour
    end_hour int
    Ending hour of restriction.
    end_min int
    Ending minute of restriction on defined end_hour
    start_hour int
    Starting hour of restriction.
    start_min int
    Staring minute of restriction on defined start_hour
    endHour Number
    Ending hour of restriction.
    endMin Number
    Ending minute of restriction on defined end_hour
    startHour Number
    Starting hour of restriction.
    startMin Number
    Staring minute of restriction on defined start_hour

    NotificationPolicyTimeRestrictionRestrictionList, NotificationPolicyTimeRestrictionRestrictionListArgs

    EndDay string
    Ending day of restriction (eg. wednesday)
    EndHour int
    Ending hour of restriction on defined end_day
    EndMin int
    Ending minute of restriction on defined end_hour
    StartDay string
    Starting day of restriction (eg. monday)
    StartHour int
    Starting hour of restriction on defined start_day
    StartMin int
    Staring minute of restriction on defined start_hour
    EndDay string
    Ending day of restriction (eg. wednesday)
    EndHour int
    Ending hour of restriction on defined end_day
    EndMin int
    Ending minute of restriction on defined end_hour
    StartDay string
    Starting day of restriction (eg. monday)
    StartHour int
    Starting hour of restriction on defined start_day
    StartMin int
    Staring minute of restriction on defined start_hour
    endDay String
    Ending day of restriction (eg. wednesday)
    endHour Integer
    Ending hour of restriction on defined end_day
    endMin Integer
    Ending minute of restriction on defined end_hour
    startDay String
    Starting day of restriction (eg. monday)
    startHour Integer
    Starting hour of restriction on defined start_day
    startMin Integer
    Staring minute of restriction on defined start_hour
    endDay string
    Ending day of restriction (eg. wednesday)
    endHour number
    Ending hour of restriction on defined end_day
    endMin number
    Ending minute of restriction on defined end_hour
    startDay string
    Starting day of restriction (eg. monday)
    startHour number
    Starting hour of restriction on defined start_day
    startMin number
    Staring minute of restriction on defined start_hour
    end_day str
    Ending day of restriction (eg. wednesday)
    end_hour int
    Ending hour of restriction on defined end_day
    end_min int
    Ending minute of restriction on defined end_hour
    start_day str
    Starting day of restriction (eg. monday)
    start_hour int
    Starting hour of restriction on defined start_day
    start_min int
    Staring minute of restriction on defined start_hour
    endDay String
    Ending day of restriction (eg. wednesday)
    endHour Number
    Ending hour of restriction on defined end_day
    endMin Number
    Ending minute of restriction on defined end_hour
    startDay String
    Starting day of restriction (eg. monday)
    startHour Number
    Starting hour of restriction on defined start_day
    startMin Number
    Staring minute of restriction on defined start_hour

    Import

    Notification policies can be imported using the team_id and notification_policy_id, e.g.

    $ pulumi import opsgenie:index/notificationPolicy:NotificationPolicy test team_id/notification_policy_id`
    

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

    Package Details

    Repository
    Opsgenie pulumi/pulumi-opsgenie
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the opsgenie Terraform Provider.
    opsgenie logo
    Opsgenie v1.3.9 published on Tuesday, Jul 16, 2024 by Pulumi