Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Opsgenie

v1.1.0 published on Thursday, Nov 11, 2021 by Pulumi

NotificationPolicy

Manages a Notification Policy within Opsgenie.

Create a 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)
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.

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<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 List<NotificationPolicyAutoCloseActionArgs>
Auto Restart Action of the policy. This is a block, structure is documented below.
AutoRestartActions List<NotificationPolicyAutoRestartActionArgs>
Auto Restart Action of the policy. This is a block, structure is documented below.
DeDuplicationActions List<NotificationPolicyDeDuplicationActionArgs>
Deduplication Action of the policy. This is a block, structure is documented below.
DelayActions List<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 List<NotificationPolicyTimeRestrictionArgs>
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 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 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 NotificationPolicyTimeRestrictionArgs[]
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.

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 str
The provider-assigned unique ID for this managed resource.

Look up an 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)
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.

The following state arguments are supported:

AutoCloseActions List<NotificationPolicyAutoCloseActionArgs>
Auto Restart Action of the policy. This is a block, structure is documented below.
AutoRestartActions List<NotificationPolicyAutoRestartActionArgs>
Auto Restart Action of the policy. This is a block, structure is documented below.
DeDuplicationActions List<NotificationPolicyDeDuplicationActionArgs>
Deduplication Action of the policy. This is a block, structure is documented below.
DelayActions List<NotificationPolicyDelayActionArgs>
Delay notifications. This is a block, structure is documented below.
Enabled bool
If policy should be enabled. Default: true
Filters List<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 List<NotificationPolicyTimeRestrictionArgs>
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 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 boolean
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 boolean
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.
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.

Supporting Types

NotificationPolicyAutoCloseAction

Durations List<NotificationPolicyAutoCloseActionDuration>
Duration of this action. If delay_option = for-duration this has to be set. This is a block, structure is documented below.
Durations []NotificationPolicyAutoCloseActionDuration
Duration of this action. If delay_option = for-duration this has to be set. This is a block, structure is documented below.
durations NotificationPolicyAutoCloseActionDuration[]
Duration of this action. If delay_option = for-duration this has to be set. This is a block, structure is documented below.
durations Sequence[NotificationPolicyAutoCloseActionDuration]
Duration of this action. If delay_option = for-duration this has to be set. This is a block, structure is documented below.

NotificationPolicyAutoCloseActionDuration

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 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

NotificationPolicyAutoRestartAction

Durations List<NotificationPolicyAutoRestartActionDuration>
Duration of this action. If delay_option = for-duration this has to be set. 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. If delay_option = for-duration this has to be set. 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. If delay_option = for-duration this has to be set. 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. If delay_option = for-duration this has to be set. This is a block, structure is documented below.
max_repeat_count int
How many times to repeat. This is a integer attribute.

NotificationPolicyAutoRestartActionDuration

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 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

NotificationPolicyDeDuplicationAction

Count int
  • Count
DeDuplicationActionType string
Deduplication type. Possible values are: “value-based”, “frequency-based”
Durations List<NotificationPolicyDeDuplicationActionDuration>
Duration of this action. If delay_option = for-duration this has to be set. 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. If delay_option = for-duration this has to be set. 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. If delay_option = for-duration this has to be set. 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. If delay_option = for-duration this has to be set. This is a block, structure is documented below.

NotificationPolicyDeDuplicationActionDuration

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 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

NotificationPolicyDelayAction

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 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.

NotificationPolicyDelayActionDuration

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 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

NotificationPolicyFilter

Conditions List<NotificationPolicyFilterCondition>
Conditions applied to filter. 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
Conditions []NotificationPolicyFilterCondition
Conditions applied to filter. 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
conditions NotificationPolicyFilterCondition[]
Conditions applied to filter. 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
conditions Sequence[NotificationPolicyFilterCondition]
Conditions applied to filter. 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

NotificationPolicyFilterCondition

Field string
Specifies which alert field will be used in condition. Possible values are message, alias, description, source, entity, tags, actions, details, extra-properties, recipients, 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, recipients, 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, recipients, 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, recipients, 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

NotificationPolicyTimeRestriction

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
Restrictions List<NotificationPolicyTimeRestrictionRestriction>
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
Restrictions []NotificationPolicyTimeRestrictionRestriction
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
restrictions NotificationPolicyTimeRestrictionRestriction[]
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
restrictions Sequence[NotificationPolicyTimeRestrictionRestriction]
List of days and hours definitions for field type = weekday-and-time-of-day. This is a block, structure is documented below.

NotificationPolicyTimeRestrictionRestriction

EndDay string
Ending day of restriction (eg. wednesday)
EndHour int
Ending hour of restriction.
EndMin int
Ending minute of restriction on defined end_hour
StartDay string
Starting day of restriction (eg. monday)
StartHour int
Starting hour of restriction.
StartMin int
Staring minute of restriction on defined start_hour
EndDay string
Ending day of restriction (eg. wednesday)
EndHour int
Ending hour of restriction.
EndMin int
Ending minute of restriction on defined end_hour
StartDay string
Starting day of restriction (eg. monday)
StartHour int
Starting hour of restriction.
StartMin int
Staring minute of restriction on defined start_hour
endDay string
Ending day of restriction (eg. wednesday)
endHour number
Ending hour of restriction.
endMin number
Ending minute of restriction on defined end_hour
startDay string
Starting day of restriction (eg. monday)
startHour number
Starting hour of restriction.
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.
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.
start_min int
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
https://github.com/pulumi/pulumi-opsgenie
License
Apache-2.0
Notes
This Pulumi package is based on the opsgenie Terraform Provider.