@pulumi/pagerduty 4.27.1 → 4.27.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/pagerduty",
3
- "version": "4.27.1",
3
+ "version": "4.27.2",
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.27.1"
26
+ "version": "4.27.2"
27
27
  }
28
28
  }
@@ -2,18 +2,13 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
4
  /**
5
- * A [service custom field value](https://developer.pagerduty.com/api-reference/6075929031f7d-update-custom-field-values)
6
- * allows you to set values for custom fields on a PagerDuty service. These values
7
- * provide additional context for services and can be used for filtering, search,
8
- * and analytics.
9
- *
10
5
  * ## Example Usage
11
6
  *
12
7
  * ```typescript
13
8
  * import * as pulumi from "@pulumi/pulumi";
14
9
  * import * as pagerduty from "@pulumi/pagerduty";
15
10
  *
16
- * // First, create a service custom field
11
+ * // First, create service custom fields
17
12
  * const environment = new pagerduty.ServiceCustomField("environment", {
18
13
  * name: "environment",
19
14
  * displayName: "Environment",
@@ -21,22 +16,6 @@ import * as outputs from "./types/output";
21
16
  * fieldType: "single_value",
22
17
  * description: "The environment this service runs in",
23
18
  * });
24
- * // Create a service
25
- * const example = new pagerduty.Service("example", {
26
- * name: "Example Service",
27
- * autoResolveTimeout: "14400",
28
- * acknowledgementTimeout: "600",
29
- * escalationPolicy: examplePagerdutyEscalationPolicy.id,
30
- * });
31
- * // Set a custom field value on the service
32
- * const exampleServiceCustomFieldValue = new pagerduty.ServiceCustomFieldValue("example", {
33
- * serviceId: example.id,
34
- * customFields: [{
35
- * name: environment.name,
36
- * value: JSON.stringify("production"),
37
- * }],
38
- * });
39
- * // Set multiple custom field values on a service
40
19
  * const region = new pagerduty.ServiceCustomField("region", {
41
20
  * name: "region",
42
21
  * displayName: "Region",
@@ -44,20 +23,6 @@ import * as outputs from "./types/output";
44
23
  * fieldType: "single_value",
45
24
  * description: "The region this service is deployed in",
46
25
  * });
47
- * const multipleExample = new pagerduty.ServiceCustomFieldValue("multiple_example", {
48
- * serviceId: example.id,
49
- * customFields: [
50
- * {
51
- * name: environment.name,
52
- * value: JSON.stringify("production"),
53
- * },
54
- * {
55
- * name: region.name,
56
- * value: JSON.stringify("us-east-1"),
57
- * },
58
- * ],
59
- * });
60
- * // Example with a boolean field
61
26
  * const isCritical = new pagerduty.ServiceCustomField("is_critical", {
62
27
  * name: "is_critical",
63
28
  * displayName: "Is Critical",
@@ -65,14 +30,6 @@ import * as outputs from "./types/output";
65
30
  * fieldType: "single_value",
66
31
  * description: "Whether this service is critical",
67
32
  * });
68
- * const booleanExample = new pagerduty.ServiceCustomFieldValue("boolean_example", {
69
- * serviceId: example.id,
70
- * customFields: [{
71
- * name: isCritical.name,
72
- * value: JSON.stringify(true),
73
- * }],
74
- * });
75
- * // Example with a multi-value field
76
33
  * const regions = new pagerduty.ServiceCustomField("regions", {
77
34
  * name: "regions",
78
35
  * displayName: "AWS Regions",
@@ -90,15 +47,37 @@ import * as outputs from "./types/output";
90
47
  * },
91
48
  * ],
92
49
  * });
93
- * const multiValueExample = new pagerduty.ServiceCustomFieldValue("multi_value_example", {
50
+ * // Create a service
51
+ * const example = new pagerduty.Service("example", {
52
+ * name: "Example Service",
53
+ * autoResolveTimeout: "14400",
54
+ * acknowledgementTimeout: "600",
55
+ * escalationPolicy: examplePagerdutyEscalationPolicy.id,
56
+ * });
57
+ * // Set custom field values on the service
58
+ * const exampleServiceCustomFieldValue = new pagerduty.ServiceCustomFieldValue("example", {
94
59
  * serviceId: example.id,
95
- * customFields: [{
96
- * name: regions.name,
97
- * value: JSON.stringify([
98
- * "us-east-1",
99
- * "us-west-1",
100
- * ]),
101
- * }],
60
+ * customFields: [
61
+ * {
62
+ * name: environment.name,
63
+ * value: JSON.stringify("production"),
64
+ * },
65
+ * {
66
+ * name: region.name,
67
+ * value: JSON.stringify("us-east-1"),
68
+ * },
69
+ * {
70
+ * name: isCritical.name,
71
+ * value: JSON.stringify(true),
72
+ * },
73
+ * {
74
+ * name: regions.name,
75
+ * value: JSON.stringify([
76
+ * "us-east-1",
77
+ * "us-west-1",
78
+ * ]),
79
+ * },
80
+ * ],
102
81
  * });
103
82
  * ```
104
83
  *
@@ -6,18 +6,13 @@ exports.ServiceCustomFieldValue = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * A [service custom field value](https://developer.pagerduty.com/api-reference/6075929031f7d-update-custom-field-values)
10
- * allows you to set values for custom fields on a PagerDuty service. These values
11
- * provide additional context for services and can be used for filtering, search,
12
- * and analytics.
13
- *
14
9
  * ## Example Usage
15
10
  *
16
11
  * ```typescript
17
12
  * import * as pulumi from "@pulumi/pulumi";
18
13
  * import * as pagerduty from "@pulumi/pagerduty";
19
14
  *
20
- * // First, create a service custom field
15
+ * // First, create service custom fields
21
16
  * const environment = new pagerduty.ServiceCustomField("environment", {
22
17
  * name: "environment",
23
18
  * displayName: "Environment",
@@ -25,22 +20,6 @@ const utilities = require("./utilities");
25
20
  * fieldType: "single_value",
26
21
  * description: "The environment this service runs in",
27
22
  * });
28
- * // Create a service
29
- * const example = new pagerduty.Service("example", {
30
- * name: "Example Service",
31
- * autoResolveTimeout: "14400",
32
- * acknowledgementTimeout: "600",
33
- * escalationPolicy: examplePagerdutyEscalationPolicy.id,
34
- * });
35
- * // Set a custom field value on the service
36
- * const exampleServiceCustomFieldValue = new pagerduty.ServiceCustomFieldValue("example", {
37
- * serviceId: example.id,
38
- * customFields: [{
39
- * name: environment.name,
40
- * value: JSON.stringify("production"),
41
- * }],
42
- * });
43
- * // Set multiple custom field values on a service
44
23
  * const region = new pagerduty.ServiceCustomField("region", {
45
24
  * name: "region",
46
25
  * displayName: "Region",
@@ -48,20 +27,6 @@ const utilities = require("./utilities");
48
27
  * fieldType: "single_value",
49
28
  * description: "The region this service is deployed in",
50
29
  * });
51
- * const multipleExample = new pagerduty.ServiceCustomFieldValue("multiple_example", {
52
- * serviceId: example.id,
53
- * customFields: [
54
- * {
55
- * name: environment.name,
56
- * value: JSON.stringify("production"),
57
- * },
58
- * {
59
- * name: region.name,
60
- * value: JSON.stringify("us-east-1"),
61
- * },
62
- * ],
63
- * });
64
- * // Example with a boolean field
65
30
  * const isCritical = new pagerduty.ServiceCustomField("is_critical", {
66
31
  * name: "is_critical",
67
32
  * displayName: "Is Critical",
@@ -69,14 +34,6 @@ const utilities = require("./utilities");
69
34
  * fieldType: "single_value",
70
35
  * description: "Whether this service is critical",
71
36
  * });
72
- * const booleanExample = new pagerduty.ServiceCustomFieldValue("boolean_example", {
73
- * serviceId: example.id,
74
- * customFields: [{
75
- * name: isCritical.name,
76
- * value: JSON.stringify(true),
77
- * }],
78
- * });
79
- * // Example with a multi-value field
80
37
  * const regions = new pagerduty.ServiceCustomField("regions", {
81
38
  * name: "regions",
82
39
  * displayName: "AWS Regions",
@@ -94,15 +51,37 @@ const utilities = require("./utilities");
94
51
  * },
95
52
  * ],
96
53
  * });
97
- * const multiValueExample = new pagerduty.ServiceCustomFieldValue("multi_value_example", {
54
+ * // Create a service
55
+ * const example = new pagerduty.Service("example", {
56
+ * name: "Example Service",
57
+ * autoResolveTimeout: "14400",
58
+ * acknowledgementTimeout: "600",
59
+ * escalationPolicy: examplePagerdutyEscalationPolicy.id,
60
+ * });
61
+ * // Set custom field values on the service
62
+ * const exampleServiceCustomFieldValue = new pagerduty.ServiceCustomFieldValue("example", {
98
63
  * serviceId: example.id,
99
- * customFields: [{
100
- * name: regions.name,
101
- * value: JSON.stringify([
102
- * "us-east-1",
103
- * "us-west-1",
104
- * ]),
105
- * }],
64
+ * customFields: [
65
+ * {
66
+ * name: environment.name,
67
+ * value: JSON.stringify("production"),
68
+ * },
69
+ * {
70
+ * name: region.name,
71
+ * value: JSON.stringify("us-east-1"),
72
+ * },
73
+ * {
74
+ * name: isCritical.name,
75
+ * value: JSON.stringify(true),
76
+ * },
77
+ * {
78
+ * name: regions.name,
79
+ * value: JSON.stringify([
80
+ * "us-east-1",
81
+ * "us-west-1",
82
+ * ]),
83
+ * },
84
+ * ],
106
85
  * });
107
86
  * ```
108
87
  *
@@ -1 +1 @@
1
- {"version":3,"file":"serviceCustomFieldValue.js","sourceRoot":"","sources":["../serviceCustomFieldValue.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4GG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAwE,EAAE,IAAmC;QACnI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,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