@pulumi/pagerduty 4.23.0 → 4.23.1

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.
@@ -34,7 +34,7 @@ export interface GetEscalationPolicyArgs {
34
34
  */
35
35
  export interface GetEscalationPolicyResult {
36
36
  /**
37
- * The provider-assigned unique ID for this managed resource.
37
+ * The ID of the found escalation policy.
38
38
  */
39
39
  readonly id: string;
40
40
  /**
package/getSchedule.d.ts CHANGED
@@ -39,7 +39,7 @@ export interface GetScheduleArgs {
39
39
  */
40
40
  export interface GetScheduleResult {
41
41
  /**
42
- * The provider-assigned unique ID for this managed resource.
42
+ * The ID of the found schedule.
43
43
  */
44
44
  readonly id: string;
45
45
  /**
package/getUser.d.ts CHANGED
@@ -44,7 +44,7 @@ export interface GetUserResult {
44
44
  readonly description: string;
45
45
  readonly email: string;
46
46
  /**
47
- * The provider-assigned unique ID for this managed resource.
47
+ * The ID of the found user.
48
48
  */
49
49
  readonly id: string;
50
50
  /**
package/getUsers.d.ts CHANGED
@@ -44,7 +44,7 @@ export interface GetUsersArgs {
44
44
  */
45
45
  export interface GetUsersResult {
46
46
  /**
47
- * The provider-assigned unique ID for this managed resource.
47
+ * The ID of the found user.
48
48
  */
49
49
  readonly id: string;
50
50
  readonly teamIds?: string[];
package/getVendor.d.ts CHANGED
@@ -57,7 +57,7 @@ export interface GetVendorArgs {
57
57
  */
58
58
  export interface GetVendorResult {
59
59
  /**
60
- * The provider-assigned unique ID for this managed resource.
60
+ * The ID of the found vendor.
61
61
  */
62
62
  readonly id: string;
63
63
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/pagerduty",
3
- "version": "4.23.0",
3
+ "version": "4.23.1",
4
4
  "description": "A Pulumi package for creating and managing pagerduty cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -23,6 +23,6 @@
23
23
  "pulumi": {
24
24
  "resource": true,
25
25
  "name": "pagerduty",
26
- "version": "4.23.0"
26
+ "version": "4.23.1"
27
27
  }
28
28
  }
@@ -51,7 +51,7 @@ export declare class TeamMembership extends pulumi.CustomResource {
51
51
  * * User role of `user` is a Team role of `manager`
52
52
  * * User role of `limitedUser` is a Team role of `responder`
53
53
  */
54
- readonly role: pulumi.Output<string | undefined>;
54
+ readonly role: pulumi.Output<string>;
55
55
  /**
56
56
  * The ID of the team in which the user will belong.
57
57
  */
package/types/input.d.ts CHANGED
@@ -2234,6 +2234,16 @@ export interface UserHandoffNotificationRuleContactMethod {
2234
2234
  */
2235
2235
  type: pulumi.Input<string>;
2236
2236
  }
2237
+ export interface UserNotificationRuleContactMethod {
2238
+ /**
2239
+ * The id of the referenced contact method.
2240
+ */
2241
+ id: pulumi.Input<string>;
2242
+ /**
2243
+ * The type of contact method. Can be `emailContactMethod`, `phoneContactMethod`, `pushNotificationContactMethod` or `smsContactMethod`.
2244
+ */
2245
+ type: pulumi.Input<string>;
2246
+ }
2237
2247
  export interface WebhookSubscriptionDeliveryMethod {
2238
2248
  /**
2239
2249
  * The customHeader of a webhook subscription define any optional headers that will be passed along with the payload to the destination URL.
package/types/output.d.ts CHANGED
@@ -2579,6 +2579,16 @@ export interface UserHandoffNotificationRuleContactMethod {
2579
2579
  */
2580
2580
  type: string;
2581
2581
  }
2582
+ export interface UserNotificationRuleContactMethod {
2583
+ /**
2584
+ * The id of the referenced contact method.
2585
+ */
2586
+ id: string;
2587
+ /**
2588
+ * The type of contact method. Can be `emailContactMethod`, `phoneContactMethod`, `pushNotificationContactMethod` or `smsContactMethod`.
2589
+ */
2590
+ type: string;
2591
+ }
2582
2592
  export interface WebhookSubscriptionDeliveryMethod {
2583
2593
  /**
2584
2594
  * The customHeader of a webhook subscription define any optional headers that will be passed along with the payload to the destination URL.
@@ -1,4 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
2
4
  /**
3
5
  * A [notification rule](https://developer.pagerduty.com/api-reference/b3A6Mjc0ODI0NQ-create-a-user-notification-rule) configures where and when a PagerDuty user is notified when a triggered incident is assigned to them. Unique notification rules can be created for both high and low-urgency incidents.
4
6
  *
@@ -88,9 +90,7 @@ export declare class UserNotificationRule extends pulumi.CustomResource {
88
90
  /**
89
91
  * A contact method block, configured as a block described below.
90
92
  */
91
- readonly contactMethod: pulumi.Output<{
92
- [key: string]: string;
93
- }>;
93
+ readonly contactMethod: pulumi.Output<outputs.UserNotificationRuleContactMethod | undefined>;
94
94
  /**
95
95
  * The delay before firing the rule, in minutes.
96
96
  */
@@ -119,9 +119,7 @@ export interface UserNotificationRuleState {
119
119
  /**
120
120
  * A contact method block, configured as a block described below.
121
121
  */
122
- contactMethod?: pulumi.Input<{
123
- [key: string]: pulumi.Input<string>;
124
- }>;
122
+ contactMethod?: pulumi.Input<inputs.UserNotificationRuleContactMethod>;
125
123
  /**
126
124
  * The delay before firing the rule, in minutes.
127
125
  */
@@ -142,9 +140,7 @@ export interface UserNotificationRuleArgs {
142
140
  /**
143
141
  * A contact method block, configured as a block described below.
144
142
  */
145
- contactMethod: pulumi.Input<{
146
- [key: string]: pulumi.Input<string>;
147
- }>;
143
+ contactMethod?: pulumi.Input<inputs.UserNotificationRuleContactMethod>;
148
144
  /**
149
145
  * The delay before firing the rule, in minutes.
150
146
  */
@@ -110,9 +110,6 @@ class UserNotificationRule extends pulumi.CustomResource {
110
110
  }
111
111
  else {
112
112
  const args = argsOrState;
113
- if ((!args || args.contactMethod === undefined) && !opts.urn) {
114
- throw new Error("Missing required property 'contactMethod'");
115
- }
116
113
  if ((!args || args.startDelayInMinutes === undefined) && !opts.urn) {
117
114
  throw new Error("Missing required property 'startDelayInMinutes'");
118
115
  }
@@ -1 +1 @@
1
- {"version":3,"file":"userNotificationRule.js","sourceRoot":"","sources":["../userNotificationRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;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