1. Packages
  2. Opsgenie
  3. API Docs
  4. NotificationPolicy
Opsgenie v1.3.2 published on Saturday, Oct 28, 2023 by Pulumi

opsgenie.NotificationPolicy

Explore with Pulumi AI

opsgenie logo
Opsgenie v1.3.2 published on Saturday, Oct 28, 2023 by Pulumi

    Manages a Notification Policy within Opsgenie.

    Create NotificationPolicy Resource

    new NotificationPolicy(name: string, args: NotificationPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def NotificationPolicy(resource_name: 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)
    @overload
    def NotificationPolicy(resource_name: str,
                           args: NotificationPolicyArgs,
                           opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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`
    

    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.2 published on Saturday, Oct 28, 2023 by Pulumi