@pulumi/pagerduty 4.29.4 → 4.29.5

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.
@@ -7,6 +7,29 @@ import * as outputs from "./types/output";
7
7
  *
8
8
  * ## Example Usage
9
9
  *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as pagerduty from "@pulumi/pagerduty";
13
+ *
14
+ * const _default = pagerduty.getEscalationPolicy({
15
+ * name: "Default",
16
+ * });
17
+ * const basic = new pagerduty.Service("basic", {
18
+ * name: "Example",
19
+ * escalationPolicy: _default.then(_default => _default.id),
20
+ * });
21
+ * const basicSettings = new pagerduty.AlertGroupingSetting("basic_settings", {
22
+ * name: "Configuration for type-1 devices",
23
+ * type: "content_based",
24
+ * services: [basic.id],
25
+ * config: {
26
+ * timeWindow: 300,
27
+ * aggregate: "all",
28
+ * fields: ["fields"],
29
+ * },
30
+ * });
31
+ * ```
32
+ *
10
33
  * ## Migration from `alertGroupingParameters`
11
34
  *
12
35
  * To migrate from using the field `alertGroupingParameters` of a
@@ -11,6 +11,29 @@ const utilities = require("./utilities");
11
11
  *
12
12
  * ## Example Usage
13
13
  *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as pagerduty from "@pulumi/pagerduty";
17
+ *
18
+ * const _default = pagerduty.getEscalationPolicy({
19
+ * name: "Default",
20
+ * });
21
+ * const basic = new pagerduty.Service("basic", {
22
+ * name: "Example",
23
+ * escalationPolicy: _default.then(_default => _default.id),
24
+ * });
25
+ * const basicSettings = new pagerduty.AlertGroupingSetting("basic_settings", {
26
+ * name: "Configuration for type-1 devices",
27
+ * type: "content_based",
28
+ * services: [basic.id],
29
+ * config: {
30
+ * timeWindow: 300,
31
+ * aggregate: "all",
32
+ * fields: ["fields"],
33
+ * },
34
+ * });
35
+ * ```
36
+ *
14
37
  * ## Migration from `alertGroupingParameters`
15
38
  *
16
39
  * To migrate from using the field `alertG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c,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AAnFL,oDAoFC;AAtEG,gBAAgB;AACO,iCAAY,GAAG,2DAA2D,CAAC"}
package/extension.d.ts CHANGED
@@ -38,13 +38,13 @@ import * as pulumi from "@pulumi/pulumi";
38
38
  * extensionSchema: webhook.then(webhook => webhook.id),
39
39
  * extensionObjects: [exampleService.id],
40
40
  * config: `{
41
- * \x09"restrict": "any",
42
- * \x09"notify_types": {
43
- * \x09\x09\x09"resolve": false,
44
- * \x09\x09\x09"acknowledge": false,
45
- * \x09\x09\x09"assignments": false
46
- * \x09},
47
- * \x09"access_token": "XXX"
41
+ * \\t\\"restrict\\": \\"any\\",
42
+ * \\t\\"notify_types\\": {
43
+ * \\t\\t\\t\\"resolve\\": false,
44
+ * \\t\\t\\t\\"acknowledge\\": false,
45
+ * \\t\\t\\t\\"assignments\\": false
46
+ * \\t},
47
+ * \\t\\"access_token\\": \\"XXX\\"
48
48
  * }
49
49
  * `,
50
50
  * });
package/extension.js CHANGED
@@ -44,13 +44,13 @@ const utilities = require("./utilities");
44
44
  * extensionSchema: webhook.then(webhook => webhook.id),
45
45
  * extensionObjects: [exampleService.id],
46
46
  * config: `{
47
- * \x09"restrict": "any",
48
- * \x09"notify_types": {
49
- * \x09\x09\x09"resolve": false,
50
- * \x09\x09\x09"acknowledge": false,
51
- * \x09\x09\x09"assignments": false
52
- * \x09},
53
- * \x09"access_token": "XXX"
47
+ * \\t\\"restrict\\": \\"any\\",
48
+ * \\t\\"notify_types\\": {
49
+ * \\t\\t\\t\\"resolve\\": false,
50
+ * \\t\\t\\t\\"acknowledge\\": false,
51
+ * \\t\\t\\t\\"assignments\\": false
52
+ * \\t},
53
+ * \\t\\"access_token\\": \\"XXX\\"
54
54
  * }
55
55
  * `,
56
56
  * });
@@ -8,6 +8,98 @@ import * as outputs from "./types/output";
8
8
  *
9
9
  * ## Example Usage
10
10
  *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as pagerduty from "@pulumi/pagerduty";
14
+ *
15
+ * const _default = pagerduty.getEscalationPolicy({
16
+ * name: "Default",
17
+ * });
18
+ * const p1 = pagerduty.getPriority({
19
+ * name: "P1",
20
+ * });
21
+ * const p2 = pagerduty.getPriority({
22
+ * name: "P2",
23
+ * });
24
+ * const p3 = pagerduty.getPriority({
25
+ * name: "P3",
26
+ * });
27
+ * const foo = new pagerduty.Service("foo", {
28
+ * name: "My Web App",
29
+ * escalationPolicy: _default.then(_default => _default.id),
30
+ * });
31
+ * const fooUser = new pagerduty.User("foo", {
32
+ * name: "Earline Greenholt",
33
+ * email: "125.greenholt.earline@graham.name",
34
+ * });
35
+ * const fooJiraCloudAccountMappingRule = new pagerduty.JiraCloudAccountMappingRule("foo", {
36
+ * name: "Integration with My Web App",
37
+ * accountMapping: "PLBP09X",
38
+ * config: {
39
+ * service: foo.id,
40
+ * jira: {
41
+ * autocreateJql: "priority = Highest",
42
+ * createIssueOnIncidentTrigger: true,
43
+ * customFields: [
44
+ * {
45
+ * sourceIncidentField: "incident_description",
46
+ * targetIssueField: "description",
47
+ * targetIssueFieldName: "Description",
48
+ * type: "attribute",
49
+ * },
50
+ * {
51
+ * targetIssueField: "security",
52
+ * targetIssueFieldName: "Security Level",
53
+ * type: "jira_value",
54
+ * value: JSON.stringify({
55
+ * displayName: "Sec Level 1",
56
+ * id: "10000",
57
+ * }),
58
+ * },
59
+ * ],
60
+ * issueType: {
61
+ * id: "10001",
62
+ * name: "Incident",
63
+ * },
64
+ * priorities: [
65
+ * {
66
+ * jiraId: "1",
67
+ * pagerdutyId: p1.then(p1 => p1.id),
68
+ * },
69
+ * {
70
+ * jiraId: "2",
71
+ * pagerdutyId: p2.then(p2 => p2.id),
72
+ * },
73
+ * {
74
+ * jiraId: "3",
75
+ * pagerdutyId: p3.then(p3 => p3.id),
76
+ * },
77
+ * ],
78
+ * project: {
79
+ * id: "10100",
80
+ * key: "ITS",
81
+ * name: "IT Support",
82
+ * },
83
+ * statusMapping: {
84
+ * acknowledged: {
85
+ * id: "2",
86
+ * name: "In Progress",
87
+ * },
88
+ * resolved: {
89
+ * id: "3",
90
+ * name: "Resolved",
91
+ * },
92
+ * triggered: {
93
+ * id: "1",
94
+ * name: "Open",
95
+ * },
96
+ * },
97
+ * syncNotesUser: fooUser.id,
98
+ * },
99
+ * },
100
+ * });
101
+ * ```
102
+ *
11
103
  * ## Import
12
104
  *
13
105
  * Jira Cloud account mapping rules can be imported using the `account_mapping_id` and `rule_id`, e.g.
@@ -12,6 +12,98 @@ const utilities = require("./utilities");
12
12
  *
13
13
  * ## Example Usage
14
14
  *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as pagerduty from "@pulumi/pagerduty";
18
+ *
19
+ * const _default = pagerduty.getEscalationPolicy({
20
+ * name: "Default",
21
+ * });
22
+ * const p1 = pagerduty.getPriority({
23
+ * name: "P1",
24
+ * });
25
+ * const p2 = pagerduty.getPriority({
26
+ * name: "P2",
27
+ * });
28
+ * const p3 = pagerduty.getPriority({
29
+ * name: "P3",
30
+ * });
31
+ * const foo = new pagerduty.Service("foo", {
32
+ * name: "My Web App",
33
+ * escalationPolicy: _default.then(_default => _default.id),
34
+ * });
35
+ * const fooUser = new pagerduty.User("foo", {
36
+ * name: "Earline Greenholt",
37
+ * email: "125.greenholt.earline@graham.name",
38
+ * });
39
+ * const fooJiraCloudAccountMappingRule = new pagerduty.JiraCloudAccountMappingRule("foo", {
40
+ * name: "Integration with My Web App",
41
+ * accountMapping: "PLBP09X",
42
+ * config: {
43
+ * service: foo.id,
44
+ * jira: {
45
+ * autocreateJql: "priority = Highest",
46
+ * createIssueOnIncidentTrigger: true,
47
+ * customFields: [
48
+ * {
49
+ * sourceIncidentField: "incident_description",
50
+ * targetIssueField: "description",
51
+ * targetIssueFieldName: "Description",
52
+ * type: "attribute",
53
+ * },
54
+ * {
55
+ * targetIssueField: "security",
56
+ * targetIssueFieldName: "Security Level",
57
+ * type: "jira_value",
58
+ * value: JSON.stringify({
59
+ * displayName: "Sec Level 1",
60
+ * id: "10000",
61
+ * }),
62
+ * },
63
+ * ],
64
+ * issueType: {
65
+ * id: "10001",
66
+ * name: "Incident",
67
+ * },
68
+ * priorities: [
69
+ * {
70
+ * jiraId: "1",
71
+ * pagerdutyId: p1.then(p1 => p1.id),
72
+ * },
73
+ * {
74
+ * jiraId: "2",
75
+ * pagerdutyId: p2.then(p2 => p2.id),
76
+ * },
77
+ * {
78
+ * jiraId: "3",
79
+ * pagerdutyId: p3.then(p3 => p3.id),
80
+ * },
81
+ * ],
82
+ * project: {
83
+ * id: "10100",
84
+ * key: "ITS",
85
+ * name: "IT Support",
86
+ * },
87
+ * statusMapping: {
88
+ * acknowledged: {
89
+ * id: "2",
90
+ * name: "In Progress",
91
+ * },
92
+ * resolved: {
93
+ * id: "3",
94
+ * name: "Resolved",
95
+ * },
96
+ * triggered: {
97
+ * id: "1",
98
+ * name: "Open",
99
+ * },
100
+ * },
101
+ * syncNotesUser: fooUser.id,
102
+ * },
103
+ * },
104
+ * });
105
+ * ```
106
+ *
15
107
  * ## Import
16
108
  *
17
109
  * Jira Cloud account mapping rules can be imported using the `account_mapping_id` and `rule_id`, e.g.
@@ -1 +1 @@
1
- {"version":3,"file":"j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AAE,MAAM,CAAC;YACxC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,6BAA6B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClE,cAAc,CAAC,4BAA4B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,2BAA2B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;;AAtFL,kEAuFC;AAzEG,gBAAgB;AACO,wCAAY,GAAG,yEAAyE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/pagerduty",
3
- "version": "4.29.4",
3
+ "version": "4.29.5",
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.29.4"
26
+ "version": "4.29.5"
27
27
  }
28
28
  }
@@ -6,6 +6,63 @@ import * as outputs from "./types/output";
6
6
  *
7
7
  * ## Example Usage
8
8
  *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as pagerduty from "@pulumi/pagerduty";
12
+ *
13
+ * const example = new pagerduty.User("example", {
14
+ * name: "Earline Greenholt",
15
+ * email: "125.greenholt.earline@graham.name",
16
+ * });
17
+ * const email = new pagerduty.UserContactMethod("email", {
18
+ * userId: example.id,
19
+ * type: "email_contact_method",
20
+ * address: "foo@bar.com",
21
+ * label: "Work",
22
+ * });
23
+ * const phone = new pagerduty.UserContactMethod("phone", {
24
+ * userId: example.id,
25
+ * type: "phone_contact_method",
26
+ * countryCode: 1,
27
+ * address: "2025550199",
28
+ * label: "Work",
29
+ * });
30
+ * const sms = new pagerduty.UserContactMethod("sms", {
31
+ * userId: example.id,
32
+ * type: "sms_contact_method",
33
+ * countryCode: 1,
34
+ * address: "2025550199",
35
+ * label: "Work",
36
+ * });
37
+ * const highUrgencyPhone = new pagerduty.UserNotificationRule("high_urgency_phone", {
38
+ * userId: example.id,
39
+ * startDelayInMinutes: 1,
40
+ * urgency: "high",
41
+ * contactMethod: {
42
+ * type: "phone_contact_method",
43
+ * id: phone.id,
44
+ * },
45
+ * });
46
+ * const lowUrgencyEmail = new pagerduty.UserNotificationRule("low_urgency_email", {
47
+ * userId: example.id,
48
+ * startDelayInMinutes: 1,
49
+ * urgency: "low",
50
+ * contactMethod: {
51
+ * type: "email_contact_method",
52
+ * id: email.id,
53
+ * },
54
+ * });
55
+ * const lowUrgencySms = new pagerduty.UserNotificationRule("low_urgency_sms", {
56
+ * userId: example.id,
57
+ * startDelayInMinutes: 10,
58
+ * urgency: "low",
59
+ * contactMethod: {
60
+ * type: "sms_contact_method",
61
+ * id: sms.id,
62
+ * },
63
+ * });
64
+ * ```
65
+ *
9
66
  * ## Import
10
67
  *
11
68
  * User notification rules can be imported using the `user_id` and the `id`, e.g.
@@ -10,6 +10,63 @@ const utilities = require("./utilities");
10
10
  *
11
11
  * ## Example Usage
12
12
  *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as pagerduty from "@pulumi/pagerduty";
16
+ *
17
+ * const example = new pagerduty.User("example", {
18
+ * name: "Earline Greenholt",
19
+ * email: "125.greenholt.earline@graham.name",
20
+ * });
21
+ * const email = new pagerduty.UserContactMethod("email", {
22
+ * userId: example.id,
23
+ * type: "email_contact_method",
24
+ * address: "foo@bar.com",
25
+ * label: "Work",
26
+ * });
27
+ * const phone = new pagerduty.UserContactMethod("phone", {
28
+ * userId: example.id,
29
+ * type: "phone_contact_method",
30
+ * countryCode: 1,
31
+ * address: "2025550199",
32
+ * label: "Work",
33
+ * });
34
+ * const sms = new pagerduty.UserContactMethod("sms", {
35
+ * userId: example.id,
36
+ * type: "sms_contact_method",
37
+ * countryCode: 1,
38
+ * address: "2025550199",
39
+ * label: "Work",
40
+ * });
41
+ * const highUrgencyPhone = new pagerduty.UserNotificationRule("high_urgency_phone", {
42
+ * userId: example.id,
43
+ * startDelayInMinutes: 1,
44
+ * urgency: "high",
45
+ * contactMethod: {
46
+ * type: "phone_contact_method",
47
+ * id: phone.id,
48
+ * },
49
+ * });
50
+ * const lowUrgencyEmail = new pagerduty.UserNotificationRule("low_urgency_email", {
51
+ * userId: example.id,
52
+ * startDelayInMinutes: 1,
53
+ * urgency: "low",
54
+ * contactMethod: {
55
+ * type: "email_contact_method",
56
+ * id: email.id,
57
+ * },
58
+ * });
59
+ * const lowUrgencySms = new pagerduty.UserNotificationRule("low_urgency_sms", {
60
+ * userId: example.id,
61
+ * startDelayInMinutes: 10,
62
+ * urgency: "low",
63
+ * contactMethod: {
64
+ * type: "sms_contact_method",
65
+ * id: sms.id,
66
+ * },
67
+ * });
68
+ * ```
69
+ *
13
70
  * ## Import
14
71
  *
15
72
  * User notification rules can be imported using the `user_id` and the `id`, e.g.
@@ -1 +1 @@
1
- {"version":3,"file":"userNotificationRule.js","sourceRoot":"","sources":["../userNotificationRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAKD;;;OAGG;IACI,MAA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