@pulumi/opsgenie 1.1.6 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/alertPolicy.d.ts CHANGED
@@ -17,7 +17,7 @@ import { input as inputs, output as outputs } from "./types";
17
17
  * filters: [{}],
18
18
  * timeRestrictions: [{
19
19
  * type: "weekday-and-time-of-day",
20
- * restrictions: [
20
+ * restrictionList: [
21
21
  * {
22
22
  * endDay: "monday",
23
23
  * endHour: 7,
package/alertPolicy.js CHANGED
@@ -22,7 +22,7 @@ const utilities = require("./utilities");
22
22
  * filters: [{}],
23
23
  * timeRestrictions: [{
24
24
  * type: "weekday-and-time-of-day",
25
- * restrictions: [
25
+ * restrictionList: [
26
26
  * {
27
27
  * endDay: "monday",
28
28
  * endHour: 7,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/opsgenie",
3
- "version": "v1.1.6",
3
+ "version": "v1.1.9",
4
4
  "description": "A Pulumi package for creating and managing opsgenie cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource opsgenie v1.1.6"
14
+ "install": "node scripts/install-pulumi-plugin.js resource opsgenie v1.1.9"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
@@ -22,6 +22,7 @@
22
22
  "typescript": "^4.3.5"
23
23
  },
24
24
  "pulumi": {
25
- "resource": true
25
+ "resource": true,
26
+ "name": "opsgenie"
26
27
  }
27
28
  }
package/package.json.bak CHANGED
@@ -22,6 +22,7 @@
22
22
  "typescript": "^4.3.5"
23
23
  },
24
24
  "pulumi": {
25
- "resource": true
25
+ "resource": true,
26
+ "name": "opsgenie"
26
27
  }
27
28
  }
package/package.json.dev CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/opsgenie",
3
- "version": "v1.1.6",
3
+ "version": "v1.1.9",
4
4
  "description": "A Pulumi package for creating and managing opsgenie cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource opsgenie v1.1.6"
14
+ "install": "node scripts/install-pulumi-plugin.js resource opsgenie v1.1.9"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
@@ -22,6 +22,7 @@
22
22
  "typescript": "^4.3.5"
23
23
  },
24
24
  "pulumi": {
25
- "resource": true
25
+ "resource": true,
26
+ "name": "opsgenie"
26
27
  }
27
28
  }
@@ -34,7 +34,7 @@ import { input as inputs, output as outputs } from "./types";
34
34
  * order: 0,
35
35
  * teamId: testTeam.id,
36
36
  * timeRestrictions: [{
37
- * restrictions: [{
37
+ * restrictionList: [{
38
38
  * endDay: "tuesday",
39
39
  * endHour: 18,
40
40
  * endMin: 30,
@@ -39,7 +39,7 @@ const utilities = require("./utilities");
39
39
  * order: 0,
40
40
  * teamId: testTeam.id,
41
41
  * timeRestrictions: [{
42
- * restrictions: [{
42
+ * restrictionList: [{
43
43
  * endDay: "tuesday",
44
44
  * endHour: 18,
45
45
  * endMin: 30,
package/types/input.d.ts CHANGED
@@ -55,16 +55,38 @@ export interface AlertPolicyResponder {
55
55
  username?: pulumi.Input<string>;
56
56
  }
57
57
  export interface AlertPolicyTimeRestriction {
58
+ /**
59
+ * 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.
60
+ */
61
+ restriction?: pulumi.Input<pulumi.Input<inputs.AlertPolicyTimeRestrictionRestriction>[]>;
58
62
  /**
59
63
  * List of days and hours definitions for field type = `weekday-and-time-of-day`. This is a block, structure is documented below.
60
64
  */
61
- restrictions?: pulumi.Input<pulumi.Input<inputs.AlertPolicyTimeRestrictionRestriction>[]>;
65
+ restrictionList?: pulumi.Input<pulumi.Input<inputs.AlertPolicyTimeRestrictionRestrictionList>[]>;
62
66
  /**
63
67
  * Type of responder. Acceptable values are: `user` or `team`
64
68
  */
65
69
  type: pulumi.Input<string>;
66
70
  }
67
71
  export interface AlertPolicyTimeRestrictionRestriction {
72
+ /**
73
+ * Ending hour of restriction.
74
+ */
75
+ endHour: pulumi.Input<number>;
76
+ /**
77
+ * Ending minute of restriction on defined `endHour`
78
+ */
79
+ endMin: pulumi.Input<number>;
80
+ /**
81
+ * Starting hour of restriction.
82
+ */
83
+ startHour: pulumi.Input<number>;
84
+ /**
85
+ * Staring minute of restriction on defined `startHour`
86
+ */
87
+ startMin: pulumi.Input<number>;
88
+ }
89
+ export interface AlertPolicyTimeRestrictionRestrictionList {
68
90
  /**
69
91
  * Ending day of restriction (eg. `wednesday`)
70
92
  */
@@ -153,24 +175,17 @@ export interface GetEscalationRepeatArgs {
153
175
  resetRecipientStates?: pulumi.Input<boolean>;
154
176
  waitInterval?: pulumi.Input<number>;
155
177
  }
156
- export interface GetEscalationRuleArgs {
157
- condition: pulumi.Input<string>;
158
- delay: pulumi.Input<number>;
159
- notifyType: pulumi.Input<string>;
160
- recipients: pulumi.Input<pulumi.Input<inputs.GetEscalationRuleRecipientArgs>[]>;
161
- }
162
178
  export interface GetEscalationRule {
163
179
  condition: string;
164
180
  delay: number;
165
181
  notifyType: string;
166
182
  recipients: inputs.GetEscalationRuleRecipient[];
167
183
  }
168
- export interface GetEscalationRuleRecipientArgs {
169
- /**
170
- * The ID of the Opsgenie Escalation.
171
- */
172
- id?: pulumi.Input<string>;
173
- type?: pulumi.Input<string>;
184
+ export interface GetEscalationRuleArgs {
185
+ condition: pulumi.Input<string>;
186
+ delay: pulumi.Input<number>;
187
+ notifyType: pulumi.Input<string>;
188
+ recipients: pulumi.Input<pulumi.Input<inputs.GetEscalationRuleRecipientArgs>[]>;
174
189
  }
175
190
  export interface GetEscalationRuleRecipient {
176
191
  /**
@@ -179,6 +194,13 @@ export interface GetEscalationRuleRecipient {
179
194
  id?: string;
180
195
  type?: string;
181
196
  }
197
+ export interface GetEscalationRuleRecipientArgs {
198
+ /**
199
+ * The ID of the Opsgenie Escalation.
200
+ */
201
+ id?: pulumi.Input<string>;
202
+ type?: pulumi.Input<string>;
203
+ }
182
204
  export interface GetTeamMember {
183
205
  /**
184
206
  * The ID of the Opsgenie Team.
@@ -677,13 +699,31 @@ export interface NotificationPolicyTimeRestriction {
677
699
  /**
678
700
  * List of days and hours definitions for field type = `weekday-and-time-of-day`. This is a block, structure is documented below.
679
701
  */
680
- restrictions?: pulumi.Input<pulumi.Input<inputs.NotificationPolicyTimeRestrictionRestriction>[]>;
702
+ restrictionList?: pulumi.Input<pulumi.Input<inputs.NotificationPolicyTimeRestrictionRestrictionList>[]>;
681
703
  /**
682
704
  * 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`
683
705
  */
684
706
  type: pulumi.Input<string>;
685
707
  }
686
708
  export interface NotificationPolicyTimeRestrictionRestriction {
709
+ /**
710
+ * Ending hour of restriction.
711
+ */
712
+ endHour: pulumi.Input<number>;
713
+ /**
714
+ * Ending minute of restriction on defined `endHour`
715
+ */
716
+ endMin: pulumi.Input<number>;
717
+ /**
718
+ * Starting hour of restriction.
719
+ */
720
+ startHour: pulumi.Input<number>;
721
+ /**
722
+ * Staring minute of restriction on defined `startHour`
723
+ */
724
+ startMin: pulumi.Input<number>;
725
+ }
726
+ export interface NotificationPolicyTimeRestrictionRestrictionList {
687
727
  /**
688
728
  * Ending day of restriction (eg. `wednesday`)
689
729
  */
@@ -819,13 +859,31 @@ export interface ScheduleRotationTimeRestriction {
819
859
  /**
820
860
  * It is a restriction object which is described below. This can be used only if time restriction type is `weekday-and-time-of-day`.
821
861
  */
822
- restrictions?: pulumi.Input<pulumi.Input<inputs.ScheduleRotationTimeRestrictionRestriction>[]>;
862
+ restrictionList?: pulumi.Input<pulumi.Input<inputs.ScheduleRotationTimeRestrictionRestrictionList>[]>;
823
863
  /**
824
864
  * This parameter should be set to `time-of-day` or `weekday-and-time-of-day`.
825
865
  */
826
866
  type: pulumi.Input<string>;
827
867
  }
828
868
  export interface ScheduleRotationTimeRestrictionRestriction {
869
+ /**
870
+ * Value of the hour that frame will end.
871
+ */
872
+ endHour: pulumi.Input<number>;
873
+ /**
874
+ * Value of the minute that frame will end. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
875
+ */
876
+ endMin: pulumi.Input<number>;
877
+ /**
878
+ * Value of the hour that frame will start.
879
+ */
880
+ startHour: pulumi.Input<number>;
881
+ /**
882
+ * Value of the minute that frame will start. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
883
+ */
884
+ startMin: pulumi.Input<number>;
885
+ }
886
+ export interface ScheduleRotationTimeRestrictionRestrictionList {
829
887
  /**
830
888
  * Value of the day that frame will end.
831
889
  */
@@ -982,10 +1040,16 @@ export interface TeamRoutingRuleNotify {
982
1040
  }
983
1041
  export interface TeamRoutingRuleTimeRestriction {
984
1042
  restriction?: pulumi.Input<pulumi.Input<inputs.TeamRoutingRuleTimeRestrictionRestriction>[]>;
985
- restrictions?: pulumi.Input<pulumi.Input<inputs.TeamRoutingRuleTimeRestrictionRestriction>[]>;
1043
+ restrictionList?: pulumi.Input<pulumi.Input<inputs.TeamRoutingRuleTimeRestrictionRestrictionList>[]>;
986
1044
  type: pulumi.Input<string>;
987
1045
  }
988
1046
  export interface TeamRoutingRuleTimeRestrictionRestriction {
1047
+ endHour: pulumi.Input<number>;
1048
+ endMin: pulumi.Input<number>;
1049
+ startHour: pulumi.Input<number>;
1050
+ startMin: pulumi.Input<number>;
1051
+ }
1052
+ export interface TeamRoutingRuleTimeRestrictionRestrictionList {
989
1053
  endDay: pulumi.Input<string>;
990
1054
  endHour: pulumi.Input<number>;
991
1055
  endMin: pulumi.Input<number>;
package/types/output.d.ts CHANGED
@@ -54,16 +54,38 @@ export interface AlertPolicyResponder {
54
54
  username?: string;
55
55
  }
56
56
  export interface AlertPolicyTimeRestriction {
57
+ /**
58
+ * 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.
59
+ */
60
+ restriction?: outputs.AlertPolicyTimeRestrictionRestriction[];
57
61
  /**
58
62
  * List of days and hours definitions for field type = `weekday-and-time-of-day`. This is a block, structure is documented below.
59
63
  */
60
- restrictions?: outputs.AlertPolicyTimeRestrictionRestriction[];
64
+ restrictionList?: outputs.AlertPolicyTimeRestrictionRestrictionList[];
61
65
  /**
62
66
  * Type of responder. Acceptable values are: `user` or `team`
63
67
  */
64
68
  type: string;
65
69
  }
66
70
  export interface AlertPolicyTimeRestrictionRestriction {
71
+ /**
72
+ * Ending hour of restriction.
73
+ */
74
+ endHour: number;
75
+ /**
76
+ * Ending minute of restriction on defined `endHour`
77
+ */
78
+ endMin: number;
79
+ /**
80
+ * Starting hour of restriction.
81
+ */
82
+ startHour: number;
83
+ /**
84
+ * Staring minute of restriction on defined `startHour`
85
+ */
86
+ startMin: number;
87
+ }
88
+ export interface AlertPolicyTimeRestrictionRestrictionList {
67
89
  /**
68
90
  * Ending day of restriction (eg. `wednesday`)
69
91
  */
@@ -650,13 +672,31 @@ export interface NotificationPolicyTimeRestriction {
650
672
  /**
651
673
  * List of days and hours definitions for field type = `weekday-and-time-of-day`. This is a block, structure is documented below.
652
674
  */
653
- restrictions?: outputs.NotificationPolicyTimeRestrictionRestriction[];
675
+ restrictionList?: outputs.NotificationPolicyTimeRestrictionRestrictionList[];
654
676
  /**
655
677
  * 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`
656
678
  */
657
679
  type: string;
658
680
  }
659
681
  export interface NotificationPolicyTimeRestrictionRestriction {
682
+ /**
683
+ * Ending hour of restriction.
684
+ */
685
+ endHour: number;
686
+ /**
687
+ * Ending minute of restriction on defined `endHour`
688
+ */
689
+ endMin: number;
690
+ /**
691
+ * Starting hour of restriction.
692
+ */
693
+ startHour: number;
694
+ /**
695
+ * Staring minute of restriction on defined `startHour`
696
+ */
697
+ startMin: number;
698
+ }
699
+ export interface NotificationPolicyTimeRestrictionRestrictionList {
660
700
  /**
661
701
  * Ending day of restriction (eg. `wednesday`)
662
702
  */
@@ -792,13 +832,31 @@ export interface ScheduleRotationTimeRestriction {
792
832
  /**
793
833
  * It is a restriction object which is described below. This can be used only if time restriction type is `weekday-and-time-of-day`.
794
834
  */
795
- restrictions?: outputs.ScheduleRotationTimeRestrictionRestriction[];
835
+ restrictionList?: outputs.ScheduleRotationTimeRestrictionRestrictionList[];
796
836
  /**
797
837
  * This parameter should be set to `time-of-day` or `weekday-and-time-of-day`.
798
838
  */
799
839
  type: string;
800
840
  }
801
841
  export interface ScheduleRotationTimeRestrictionRestriction {
842
+ /**
843
+ * Value of the hour that frame will end.
844
+ */
845
+ endHour: number;
846
+ /**
847
+ * Value of the minute that frame will end. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
848
+ */
849
+ endMin: number;
850
+ /**
851
+ * Value of the hour that frame will start.
852
+ */
853
+ startHour: number;
854
+ /**
855
+ * Value of the minute that frame will start. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
856
+ */
857
+ startMin: number;
858
+ }
859
+ export interface ScheduleRotationTimeRestrictionRestrictionList {
802
860
  /**
803
861
  * Value of the day that frame will end.
804
862
  */
@@ -955,10 +1013,16 @@ export interface TeamRoutingRuleNotify {
955
1013
  }
956
1014
  export interface TeamRoutingRuleTimeRestriction {
957
1015
  restriction?: outputs.TeamRoutingRuleTimeRestrictionRestriction[];
958
- restrictions?: outputs.TeamRoutingRuleTimeRestrictionRestriction[];
1016
+ restrictionList?: outputs.TeamRoutingRuleTimeRestrictionRestrictionList[];
959
1017
  type: string;
960
1018
  }
961
1019
  export interface TeamRoutingRuleTimeRestrictionRestriction {
1020
+ endHour: number;
1021
+ endMin: number;
1022
+ startHour: number;
1023
+ startMin: number;
1024
+ }
1025
+ export interface TeamRoutingRuleTimeRestrictionRestrictionList {
962
1026
  endDay: string;
963
1027
  endHour: number;
964
1028
  endMin: number;