@cdktf-providers/newrelic 3.75.4

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.
Files changed (147) hide show
  1. package/LICENSE +355 -0
  2. package/README.md +19 -0
  3. package/dist/account-management/index.d.ts +64 -0
  4. package/dist/account-management/index.js +131 -0
  5. package/dist/alert-channel/index.d.ts +347 -0
  6. package/dist/alert-channel/index.js +810 -0
  7. package/dist/alert-condition/index.d.ts +267 -0
  8. package/dist/alert-condition/index.js +587 -0
  9. package/dist/alert-muting-rule/index.d.ts +305 -0
  10. package/dist/alert-muting-rule/index.js +731 -0
  11. package/dist/alert-policy/index.d.ts +87 -0
  12. package/dist/alert-policy/index.js +180 -0
  13. package/dist/alert-policy-channel/index.d.ts +110 -0
  14. package/dist/alert-policy-channel/index.js +260 -0
  15. package/dist/api-access-key/index.d.ts +98 -0
  16. package/dist/api-access-key/index.js +230 -0
  17. package/dist/application-settings/index.d.ts +410 -0
  18. package/dist/application-settings/index.js +966 -0
  19. package/dist/browser-application/index.d.ts +101 -0
  20. package/dist/browser-application/index.js +215 -0
  21. package/dist/cloud-aws-govcloud-integrations/index.d.ts +1519 -0
  22. package/dist/cloud-aws-govcloud-integrations/index.js +3846 -0
  23. package/dist/cloud-aws-govcloud-link-account/index.d.ts +86 -0
  24. package/dist/cloud-aws-govcloud-link-account/index.js +177 -0
  25. package/dist/cloud-aws-integrations/index.d.ts +3294 -0
  26. package/dist/cloud-aws-integrations/index.js +8554 -0
  27. package/dist/cloud-aws-link-account/index.d.ts +86 -0
  28. package/dist/cloud-aws-link-account/index.js +177 -0
  29. package/dist/cloud-azure-integrations/index.d.ts +1662 -0
  30. package/dist/cloud-azure-integrations/index.js +4338 -0
  31. package/dist/cloud-azure-link-account/index.d.ts +105 -0
  32. package/dist/cloud-azure-link-account/index.js +214 -0
  33. package/dist/cloud-gcp-integrations/index.d.ts +1045 -0
  34. package/dist/cloud-gcp-integrations/index.js +2742 -0
  35. package/dist/cloud-gcp-link-account/index.d.ts +75 -0
  36. package/dist/cloud-gcp-link-account/index.js +154 -0
  37. package/dist/cloud-oci-link-account/index.d.ts +191 -0
  38. package/dist/cloud-oci-link-account/index.js +392 -0
  39. package/dist/data-newrelic-account/index.d.ts +77 -0
  40. package/dist/data-newrelic-account/index.js +160 -0
  41. package/dist/data-newrelic-alert-channel/index.d.ts +122 -0
  42. package/dist/data-newrelic-alert-channel/index.js +295 -0
  43. package/dist/data-newrelic-alert-policy/index.d.ts +78 -0
  44. package/dist/data-newrelic-alert-policy/index.js +165 -0
  45. package/dist/data-newrelic-application/index.d.ts +56 -0
  46. package/dist/data-newrelic-application/index.js +119 -0
  47. package/dist/data-newrelic-authentication-domain/index.d.ts +43 -0
  48. package/dist/data-newrelic-authentication-domain/index.js +92 -0
  49. package/dist/data-newrelic-cloud-account/index.d.ts +75 -0
  50. package/dist/data-newrelic-cloud-account/index.js +154 -0
  51. package/dist/data-newrelic-entity/index.d.ts +185 -0
  52. package/dist/data-newrelic-entity/index.js +414 -0
  53. package/dist/data-newrelic-group/index.d.ts +54 -0
  54. package/dist/data-newrelic-group/index.js +116 -0
  55. package/dist/data-newrelic-key-transaction/index.d.ts +78 -0
  56. package/dist/data-newrelic-key-transaction/index.js +165 -0
  57. package/dist/data-newrelic-notification-destination/index.d.ts +161 -0
  58. package/dist/data-newrelic-notification-destination/index.js +368 -0
  59. package/dist/data-newrelic-obfuscation-expression/index.d.ts +65 -0
  60. package/dist/data-newrelic-obfuscation-expression/index.js +134 -0
  61. package/dist/data-newrelic-service-level-alert-helper/index.d.ts +107 -0
  62. package/dist/data-newrelic-service-level-alert-helper/index.js +256 -0
  63. package/dist/data-newrelic-synthetics-private-location/index.d.ts +76 -0
  64. package/dist/data-newrelic-synthetics-private-location/index.js +157 -0
  65. package/dist/data-newrelic-synthetics-secure-credential/index.d.ts +67 -0
  66. package/dist/data-newrelic-synthetics-secure-credential/index.js +142 -0
  67. package/dist/data-newrelic-test-grok-pattern/index.d.ts +145 -0
  68. package/dist/data-newrelic-test-grok-pattern/index.js +312 -0
  69. package/dist/data-newrelic-user/index.d.ts +65 -0
  70. package/dist/data-newrelic-user/index.js +138 -0
  71. package/dist/data-partition-rule/index.d.ts +142 -0
  72. package/dist/data-partition-rule/index.js +327 -0
  73. package/dist/entity-tags/index.d.ts +152 -0
  74. package/dist/entity-tags/index.js +367 -0
  75. package/dist/events-to-metrics-rule/index.d.ts +98 -0
  76. package/dist/events-to-metrics-rule/index.js +204 -0
  77. package/dist/group/index.d.ts +75 -0
  78. package/dist/group/index.js +154 -0
  79. package/dist/index.d.ts +67 -0
  80. package/dist/index.js +68 -0
  81. package/dist/infra-alert-condition/index.d.ts +289 -0
  82. package/dist/infra-alert-condition/index.js +691 -0
  83. package/dist/insights-event/index.d.ts +182 -0
  84. package/dist/insights-event/index.js +427 -0
  85. package/dist/key-transaction/index.d.ts +96 -0
  86. package/dist/key-transaction/index.js +199 -0
  87. package/dist/lazy-index.d.ts +0 -0
  88. package/dist/lazy-index.js +68 -0
  89. package/dist/log-parsing-rule/index.d.ts +128 -0
  90. package/dist/log-parsing-rule/index.js +264 -0
  91. package/dist/monitor-downtime/index.d.ts +255 -0
  92. package/dist/monitor-downtime/index.js +603 -0
  93. package/dist/notification-channel/index.d.ts +236 -0
  94. package/dist/notification-channel/index.js +561 -0
  95. package/dist/notification-destination/index.d.ts +402 -0
  96. package/dist/notification-destination/index.js +1039 -0
  97. package/dist/nrql-alert-condition/index.d.ts +892 -0
  98. package/dist/nrql-alert-condition/index.js +2177 -0
  99. package/dist/nrql-drop-rule/index.d.ts +123 -0
  100. package/dist/nrql-drop-rule/index.js +291 -0
  101. package/dist/obfuscation-expression/index.d.ts +86 -0
  102. package/dist/obfuscation-expression/index.js +177 -0
  103. package/dist/obfuscation-rule/index.d.ts +169 -0
  104. package/dist/obfuscation-rule/index.js +372 -0
  105. package/dist/one-dashboard/index-structs/index.d.ts +2 -0
  106. package/dist/one-dashboard/index-structs/index.js +2 -0
  107. package/dist/one-dashboard/index-structs/structs0.d.ts +6996 -0
  108. package/dist/one-dashboard/index-structs/structs0.js +18191 -0
  109. package/dist/one-dashboard/index-structs/structs400.d.ts +3699 -0
  110. package/dist/one-dashboard/index-structs/structs400.js +9611 -0
  111. package/dist/one-dashboard/index.d.ts +112 -0
  112. package/dist/one-dashboard/index.js +232 -0
  113. package/dist/one-dashboard-json/index.d.ts +112 -0
  114. package/dist/one-dashboard-json/index.js +280 -0
  115. package/dist/one-dashboard-raw/index.d.ts +274 -0
  116. package/dist/one-dashboard-raw/index.js +666 -0
  117. package/dist/pipeline-cloud-rule/index.d.ts +86 -0
  118. package/dist/pipeline-cloud-rule/index.js +177 -0
  119. package/dist/provider/index.d.ts +160 -0
  120. package/dist/provider/index.js +378 -0
  121. package/dist/service-level/index.d.ts +501 -0
  122. package/dist/service-level/index.js +1425 -0
  123. package/dist/synthetics-alert-condition/index.d.ts +97 -0
  124. package/dist/synthetics-alert-condition/index.js +201 -0
  125. package/dist/synthetics-broken-links-monitor/index.d.ts +217 -0
  126. package/dist/synthetics-broken-links-monitor/index.js +474 -0
  127. package/dist/synthetics-cert-check-monitor/index.d.ts +222 -0
  128. package/dist/synthetics-cert-check-monitor/index.js +490 -0
  129. package/dist/synthetics-monitor/index.d.ts +404 -0
  130. package/dist/synthetics-monitor/index.js +885 -0
  131. package/dist/synthetics-multilocation-alert-condition/index.d.ts +177 -0
  132. package/dist/synthetics-multilocation-alert-condition/index.js +407 -0
  133. package/dist/synthetics-private-location/index.d.ts +90 -0
  134. package/dist/synthetics-private-location/index.js +193 -0
  135. package/dist/synthetics-script-monitor/index.d.ts +348 -0
  136. package/dist/synthetics-script-monitor/index.js +768 -0
  137. package/dist/synthetics-secure-credential/index.d.ts +132 -0
  138. package/dist/synthetics-secure-credential/index.js +306 -0
  139. package/dist/synthetics-step-monitor/index.d.ts +368 -0
  140. package/dist/synthetics-step-monitor/index.js +834 -0
  141. package/dist/user/index.d.ts +85 -0
  142. package/dist/user/index.js +174 -0
  143. package/dist/workflow/index.d.ts +441 -0
  144. package/dist/workflow/index.js +1066 -0
  145. package/dist/workload/index.d.ts +514 -0
  146. package/dist/workload/index.js +1283 -0
  147. package/package.json +50 -0
@@ -0,0 +1,122 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface DataNewrelicAlertChannelConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * The New Relic account ID where you want to retrieve the alert channel.
6
+ *
7
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_channel#account_id DataNewrelicAlertChannel#account_id}
8
+ */
9
+ readonly accountId?: number;
10
+ /**
11
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_channel#id DataNewrelicAlertChannel#id}
12
+ *
13
+ * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
14
+ * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
15
+ */
16
+ readonly id?: string;
17
+ /**
18
+ * The name of the alert channel in New Relic.
19
+ *
20
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_channel#name DataNewrelicAlertChannel#name}
21
+ */
22
+ readonly name: string;
23
+ }
24
+ export interface DataNewrelicAlertChannelConfigA {
25
+ }
26
+ export declare function dataNewrelicAlertChannelConfigAToTerraform(struct?: DataNewrelicAlertChannelConfigA): any;
27
+ export declare function dataNewrelicAlertChannelConfigAToHclTerraform(struct?: DataNewrelicAlertChannelConfigA): any;
28
+ export declare class DataNewrelicAlertChannelConfigAOutputReference extends cdktf.ComplexObject {
29
+ private isEmptyObject;
30
+ /**
31
+ * @param terraformResource The parent resource
32
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
33
+ * @param complexObjectIndex the index of this item in the list
34
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
35
+ */
36
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
37
+ get internalValue(): DataNewrelicAlertChannelConfigA | undefined;
38
+ set internalValue(value: DataNewrelicAlertChannelConfigA | undefined);
39
+ get apiKey(): any;
40
+ get authPassword(): any;
41
+ get authType(): any;
42
+ get authUsername(): any;
43
+ get baseUrl(): any;
44
+ get channel(): any;
45
+ private _headers;
46
+ get headers(): any;
47
+ get includeJsonAttachment(): any;
48
+ get key(): any;
49
+ private _payload;
50
+ get payload(): any;
51
+ get payloadString(): any;
52
+ get payloadType(): any;
53
+ get recipients(): any;
54
+ get region(): any;
55
+ get routeKey(): any;
56
+ get serviceKey(): any;
57
+ get tags(): any;
58
+ get teams(): any;
59
+ get url(): any;
60
+ get userId(): any;
61
+ }
62
+ export declare class DataNewrelicAlertChannelConfigAList extends cdktf.ComplexList {
63
+ protected terraformResource: cdktf.IInterpolatingParent;
64
+ protected terraformAttribute: string;
65
+ protected wrapsSet: boolean;
66
+ /**
67
+ * @param terraformResource The parent resource
68
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
69
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
70
+ */
71
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
72
+ /**
73
+ * @param index the index of the item to return
74
+ */
75
+ get(index: number): DataNewrelicAlertChannelConfigAOutputReference;
76
+ }
77
+ /**
78
+ * Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_channel newrelic_alert_channel}
79
+ */
80
+ export declare class DataNewrelicAlertChannel extends cdktf.TerraformDataSource {
81
+ static readonly tfResourceType = "newrelic_alert_channel";
82
+ /**
83
+ * Generates CDKTF code for importing a DataNewrelicAlertChannel resource upon running "cdktf plan <stack-name>"
84
+ * @param scope The scope in which to define this construct
85
+ * @param importToId The construct id used in the generated config for the DataNewrelicAlertChannel to import
86
+ * @param importFromId The id of the existing DataNewrelicAlertChannel that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_channel#import import section} in the documentation of this resource for the id to use
87
+ * @param provider? Optional instance of the provider where the DataNewrelicAlertChannel to import is found
88
+ */
89
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
90
+ /**
91
+ * Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_channel newrelic_alert_channel} Data Source
92
+ *
93
+ * @param scope The scope in which to define this construct
94
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
95
+ * @param options DataNewrelicAlertChannelConfig
96
+ */
97
+ constructor(scope: Construct, id: string, config: DataNewrelicAlertChannelConfig);
98
+ private _accountId?;
99
+ get accountId(): number;
100
+ set accountId(value: number);
101
+ resetAccountId(): void;
102
+ get accountIdInput(): number;
103
+ private _config;
104
+ get config(): DataNewrelicAlertChannelConfigAList;
105
+ private _id?;
106
+ get id(): string;
107
+ set id(value: string);
108
+ resetId(): void;
109
+ get idInput(): string;
110
+ private _name?;
111
+ get name(): string;
112
+ set name(value: string);
113
+ get nameInput(): string;
114
+ get policyIds(): any;
115
+ get type(): any;
116
+ protected synthesizeAttributes(): {
117
+ [name: string]: any;
118
+ };
119
+ protected synthesizeHclAttributes(): {
120
+ [name: string]: any;
121
+ };
122
+ }
@@ -0,0 +1,295 @@
1
+ // https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_channel
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function dataNewrelicAlertChannelConfigAToTerraform(struct) {
5
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
6
+ return struct;
7
+ }
8
+ if (cdktf.isComplexElement(struct)) {
9
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
10
+ }
11
+ return {};
12
+ }
13
+ export function dataNewrelicAlertChannelConfigAToHclTerraform(struct) {
14
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
15
+ return struct;
16
+ }
17
+ if (cdktf.isComplexElement(struct)) {
18
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
19
+ }
20
+ const attrs = {};
21
+ return attrs;
22
+ }
23
+ export class DataNewrelicAlertChannelConfigAOutputReference extends cdktf.ComplexObject {
24
+ isEmptyObject = false;
25
+ /**
26
+ * @param terraformResource The parent resource
27
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
28
+ * @param complexObjectIndex the index of this item in the list
29
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
30
+ */
31
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
32
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
33
+ }
34
+ get internalValue() {
35
+ let hasAnyValues = this.isEmptyObject;
36
+ const internalValueResult = {};
37
+ return hasAnyValues ? internalValueResult : undefined;
38
+ }
39
+ set internalValue(value) {
40
+ if (value === undefined) {
41
+ this.isEmptyObject = false;
42
+ }
43
+ else {
44
+ this.isEmptyObject = Object.keys(value).length === 0;
45
+ }
46
+ }
47
+ // api_key - computed: true, optional: false, required: false
48
+ get apiKey() {
49
+ return this.getStringAttribute('api_key');
50
+ }
51
+ // auth_password - computed: true, optional: false, required: false
52
+ get authPassword() {
53
+ return this.getStringAttribute('auth_password');
54
+ }
55
+ // auth_type - computed: true, optional: false, required: false
56
+ get authType() {
57
+ return this.getStringAttribute('auth_type');
58
+ }
59
+ // auth_username - computed: true, optional: false, required: false
60
+ get authUsername() {
61
+ return this.getStringAttribute('auth_username');
62
+ }
63
+ // base_url - computed: true, optional: false, required: false
64
+ get baseUrl() {
65
+ return this.getStringAttribute('base_url');
66
+ }
67
+ // channel - computed: true, optional: false, required: false
68
+ get channel() {
69
+ return this.getStringAttribute('channel');
70
+ }
71
+ // headers - computed: true, optional: false, required: false
72
+ _headers = new cdktf.StringMap(this, "headers");
73
+ get headers() {
74
+ return this._headers;
75
+ }
76
+ // include_json_attachment - computed: true, optional: false, required: false
77
+ get includeJsonAttachment() {
78
+ return this.getStringAttribute('include_json_attachment');
79
+ }
80
+ // key - computed: true, optional: false, required: false
81
+ get key() {
82
+ return this.getStringAttribute('key');
83
+ }
84
+ // payload - computed: true, optional: false, required: false
85
+ _payload = new cdktf.StringMap(this, "payload");
86
+ get payload() {
87
+ return this._payload;
88
+ }
89
+ // payload_string - computed: true, optional: false, required: false
90
+ get payloadString() {
91
+ return this.getStringAttribute('payload_string');
92
+ }
93
+ // payload_type - computed: true, optional: false, required: false
94
+ get payloadType() {
95
+ return this.getStringAttribute('payload_type');
96
+ }
97
+ // recipients - computed: true, optional: false, required: false
98
+ get recipients() {
99
+ return this.getStringAttribute('recipients');
100
+ }
101
+ // region - computed: true, optional: false, required: false
102
+ get region() {
103
+ return this.getStringAttribute('region');
104
+ }
105
+ // route_key - computed: true, optional: false, required: false
106
+ get routeKey() {
107
+ return this.getStringAttribute('route_key');
108
+ }
109
+ // service_key - computed: true, optional: false, required: false
110
+ get serviceKey() {
111
+ return this.getStringAttribute('service_key');
112
+ }
113
+ // tags - computed: true, optional: false, required: false
114
+ get tags() {
115
+ return this.getStringAttribute('tags');
116
+ }
117
+ // teams - computed: true, optional: false, required: false
118
+ get teams() {
119
+ return this.getStringAttribute('teams');
120
+ }
121
+ // url - computed: true, optional: false, required: false
122
+ get url() {
123
+ return this.getStringAttribute('url');
124
+ }
125
+ // user_id - computed: true, optional: false, required: false
126
+ get userId() {
127
+ return this.getStringAttribute('user_id');
128
+ }
129
+ }
130
+ export class DataNewrelicAlertChannelConfigAList extends cdktf.ComplexList {
131
+ terraformResource;
132
+ terraformAttribute;
133
+ wrapsSet;
134
+ /**
135
+ * @param terraformResource The parent resource
136
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
137
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
138
+ */
139
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
140
+ super(terraformResource, terraformAttribute, wrapsSet);
141
+ this.terraformResource = terraformResource;
142
+ this.terraformAttribute = terraformAttribute;
143
+ this.wrapsSet = wrapsSet;
144
+ }
145
+ /**
146
+ * @param index the index of the item to return
147
+ */
148
+ get(index) {
149
+ return new DataNewrelicAlertChannelConfigAOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
150
+ }
151
+ }
152
+ /**
153
+ * Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_channel newrelic_alert_channel}
154
+ */
155
+ export class DataNewrelicAlertChannel extends cdktf.TerraformDataSource {
156
+ // =================
157
+ // STATIC PROPERTIES
158
+ // =================
159
+ static tfResourceType = "newrelic_alert_channel";
160
+ // ==============
161
+ // STATIC Methods
162
+ // ==============
163
+ /**
164
+ * Generates CDKTF code for importing a DataNewrelicAlertChannel resource upon running "cdktf plan <stack-name>"
165
+ * @param scope The scope in which to define this construct
166
+ * @param importToId The construct id used in the generated config for the DataNewrelicAlertChannel to import
167
+ * @param importFromId The id of the existing DataNewrelicAlertChannel that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_channel#import import section} in the documentation of this resource for the id to use
168
+ * @param provider? Optional instance of the provider where the DataNewrelicAlertChannel to import is found
169
+ */
170
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
171
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "newrelic_alert_channel", importId: importFromId, provider });
172
+ }
173
+ // ===========
174
+ // INITIALIZER
175
+ // ===========
176
+ /**
177
+ * Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_channel newrelic_alert_channel} Data Source
178
+ *
179
+ * @param scope The scope in which to define this construct
180
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
181
+ * @param options DataNewrelicAlertChannelConfig
182
+ */
183
+ constructor(scope, id, config) {
184
+ super(scope, id, {
185
+ terraformResourceType: 'newrelic_alert_channel',
186
+ terraformGeneratorMetadata: {
187
+ providerName: 'newrelic',
188
+ providerVersion: '3.75.4',
189
+ providerVersionConstraint: '3.75.4'
190
+ },
191
+ provider: config.provider,
192
+ dependsOn: config.dependsOn,
193
+ count: config.count,
194
+ lifecycle: config.lifecycle,
195
+ provisioners: config.provisioners,
196
+ connection: config.connection,
197
+ forEach: config.forEach
198
+ });
199
+ this._accountId = config.accountId;
200
+ this._id = config.id;
201
+ this._name = config.name;
202
+ }
203
+ // ==========
204
+ // ATTRIBUTES
205
+ // ==========
206
+ // account_id - computed: true, optional: true, required: false
207
+ _accountId;
208
+ get accountId() {
209
+ return this.getNumberAttribute('account_id');
210
+ }
211
+ set accountId(value) {
212
+ this._accountId = value;
213
+ }
214
+ resetAccountId() {
215
+ this._accountId = undefined;
216
+ }
217
+ // Temporarily expose input value. Use with caution.
218
+ get accountIdInput() {
219
+ return this._accountId;
220
+ }
221
+ // config - computed: true, optional: false, required: false
222
+ _config = new DataNewrelicAlertChannelConfigAList(this, "config", false);
223
+ get config() {
224
+ return this._config;
225
+ }
226
+ // id - computed: true, optional: true, required: false
227
+ _id;
228
+ get id() {
229
+ return this.getStringAttribute('id');
230
+ }
231
+ set id(value) {
232
+ this._id = value;
233
+ }
234
+ resetId() {
235
+ this._id = undefined;
236
+ }
237
+ // Temporarily expose input value. Use with caution.
238
+ get idInput() {
239
+ return this._id;
240
+ }
241
+ // name - computed: false, optional: false, required: true
242
+ _name;
243
+ get name() {
244
+ return this.getStringAttribute('name');
245
+ }
246
+ set name(value) {
247
+ this._name = value;
248
+ }
249
+ // Temporarily expose input value. Use with caution.
250
+ get nameInput() {
251
+ return this._name;
252
+ }
253
+ // policy_ids - computed: true, optional: false, required: false
254
+ get policyIds() {
255
+ return this.getNumberListAttribute('policy_ids');
256
+ }
257
+ // type - computed: true, optional: false, required: false
258
+ get type() {
259
+ return this.getStringAttribute('type');
260
+ }
261
+ // =========
262
+ // SYNTHESIS
263
+ // =========
264
+ synthesizeAttributes() {
265
+ return {
266
+ account_id: cdktf.numberToTerraform(this._accountId),
267
+ id: cdktf.stringToTerraform(this._id),
268
+ name: cdktf.stringToTerraform(this._name),
269
+ };
270
+ }
271
+ synthesizeHclAttributes() {
272
+ const attrs = {
273
+ account_id: {
274
+ value: cdktf.numberToHclTerraform(this._accountId),
275
+ isBlock: false,
276
+ type: "simple",
277
+ storageClassType: "number",
278
+ },
279
+ id: {
280
+ value: cdktf.stringToHclTerraform(this._id),
281
+ isBlock: false,
282
+ type: "simple",
283
+ storageClassType: "string",
284
+ },
285
+ name: {
286
+ value: cdktf.stringToHclTerraform(this._name),
287
+ isBlock: false,
288
+ type: "simple",
289
+ storageClassType: "string",
290
+ },
291
+ };
292
+ // remove undefined attributes
293
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
294
+ }
295
+ }
@@ -0,0 +1,78 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface DataNewrelicAlertPolicyConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * The New Relic account ID to operate on.
6
+ *
7
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_policy#account_id DataNewrelicAlertPolicy#account_id}
8
+ */
9
+ readonly accountId?: number;
10
+ /**
11
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_policy#id DataNewrelicAlertPolicy#id}
12
+ *
13
+ * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
14
+ * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
15
+ */
16
+ readonly id?: string;
17
+ /**
18
+ * The rollup strategy for the policy, which can be `PER_POLICY`, `PER_CONDITION`, or `PER_CONDITION_AND_TARGET`.
19
+ *
20
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_policy#incident_preference DataNewrelicAlertPolicy#incident_preference}
21
+ */
22
+ readonly incidentPreference?: string;
23
+ /**
24
+ * The name of the alert policy in New Relic.
25
+ *
26
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_policy#name DataNewrelicAlertPolicy#name}
27
+ */
28
+ readonly name: string;
29
+ }
30
+ /**
31
+ * Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_policy newrelic_alert_policy}
32
+ */
33
+ export declare class DataNewrelicAlertPolicy extends cdktf.TerraformDataSource {
34
+ static readonly tfResourceType = "newrelic_alert_policy";
35
+ /**
36
+ * Generates CDKTF code for importing a DataNewrelicAlertPolicy resource upon running "cdktf plan <stack-name>"
37
+ * @param scope The scope in which to define this construct
38
+ * @param importToId The construct id used in the generated config for the DataNewrelicAlertPolicy to import
39
+ * @param importFromId The id of the existing DataNewrelicAlertPolicy that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_policy#import import section} in the documentation of this resource for the id to use
40
+ * @param provider? Optional instance of the provider where the DataNewrelicAlertPolicy to import is found
41
+ */
42
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
43
+ /**
44
+ * Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_policy newrelic_alert_policy} Data Source
45
+ *
46
+ * @param scope The scope in which to define this construct
47
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
48
+ * @param options DataNewrelicAlertPolicyConfig
49
+ */
50
+ constructor(scope: Construct, id: string, config: DataNewrelicAlertPolicyConfig);
51
+ private _accountId?;
52
+ get accountId(): number;
53
+ set accountId(value: number);
54
+ resetAccountId(): void;
55
+ get accountIdInput(): number;
56
+ get createdAt(): any;
57
+ private _id?;
58
+ get id(): string;
59
+ set id(value: string);
60
+ resetId(): void;
61
+ get idInput(): string;
62
+ private _incidentPreference?;
63
+ get incidentPreference(): string;
64
+ set incidentPreference(value: string);
65
+ resetIncidentPreference(): void;
66
+ get incidentPreferenceInput(): string;
67
+ private _name?;
68
+ get name(): string;
69
+ set name(value: string);
70
+ get nameInput(): string;
71
+ get updatedAt(): any;
72
+ protected synthesizeAttributes(): {
73
+ [name: string]: any;
74
+ };
75
+ protected synthesizeHclAttributes(): {
76
+ [name: string]: any;
77
+ };
78
+ }
@@ -0,0 +1,165 @@
1
+ // https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_policy
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ /**
5
+ * Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_policy newrelic_alert_policy}
6
+ */
7
+ export class DataNewrelicAlertPolicy extends cdktf.TerraformDataSource {
8
+ // =================
9
+ // STATIC PROPERTIES
10
+ // =================
11
+ static tfResourceType = "newrelic_alert_policy";
12
+ // ==============
13
+ // STATIC Methods
14
+ // ==============
15
+ /**
16
+ * Generates CDKTF code for importing a DataNewrelicAlertPolicy resource upon running "cdktf plan <stack-name>"
17
+ * @param scope The scope in which to define this construct
18
+ * @param importToId The construct id used in the generated config for the DataNewrelicAlertPolicy to import
19
+ * @param importFromId The id of the existing DataNewrelicAlertPolicy that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_policy#import import section} in the documentation of this resource for the id to use
20
+ * @param provider? Optional instance of the provider where the DataNewrelicAlertPolicy to import is found
21
+ */
22
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
23
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "newrelic_alert_policy", importId: importFromId, provider });
24
+ }
25
+ // ===========
26
+ // INITIALIZER
27
+ // ===========
28
+ /**
29
+ * Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/alert_policy newrelic_alert_policy} Data Source
30
+ *
31
+ * @param scope The scope in which to define this construct
32
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
33
+ * @param options DataNewrelicAlertPolicyConfig
34
+ */
35
+ constructor(scope, id, config) {
36
+ super(scope, id, {
37
+ terraformResourceType: 'newrelic_alert_policy',
38
+ terraformGeneratorMetadata: {
39
+ providerName: 'newrelic',
40
+ providerVersion: '3.75.4',
41
+ providerVersionConstraint: '3.75.4'
42
+ },
43
+ provider: config.provider,
44
+ dependsOn: config.dependsOn,
45
+ count: config.count,
46
+ lifecycle: config.lifecycle,
47
+ provisioners: config.provisioners,
48
+ connection: config.connection,
49
+ forEach: config.forEach
50
+ });
51
+ this._accountId = config.accountId;
52
+ this._id = config.id;
53
+ this._incidentPreference = config.incidentPreference;
54
+ this._name = config.name;
55
+ }
56
+ // ==========
57
+ // ATTRIBUTES
58
+ // ==========
59
+ // account_id - computed: true, optional: true, required: false
60
+ _accountId;
61
+ get accountId() {
62
+ return this.getNumberAttribute('account_id');
63
+ }
64
+ set accountId(value) {
65
+ this._accountId = value;
66
+ }
67
+ resetAccountId() {
68
+ this._accountId = undefined;
69
+ }
70
+ // Temporarily expose input value. Use with caution.
71
+ get accountIdInput() {
72
+ return this._accountId;
73
+ }
74
+ // created_at - computed: true, optional: false, required: false
75
+ get createdAt() {
76
+ return this.getStringAttribute('created_at');
77
+ }
78
+ // id - computed: true, optional: true, required: false
79
+ _id;
80
+ get id() {
81
+ return this.getStringAttribute('id');
82
+ }
83
+ set id(value) {
84
+ this._id = value;
85
+ }
86
+ resetId() {
87
+ this._id = undefined;
88
+ }
89
+ // Temporarily expose input value. Use with caution.
90
+ get idInput() {
91
+ return this._id;
92
+ }
93
+ // incident_preference - computed: false, optional: true, required: false
94
+ _incidentPreference;
95
+ get incidentPreference() {
96
+ return this.getStringAttribute('incident_preference');
97
+ }
98
+ set incidentPreference(value) {
99
+ this._incidentPreference = value;
100
+ }
101
+ resetIncidentPreference() {
102
+ this._incidentPreference = undefined;
103
+ }
104
+ // Temporarily expose input value. Use with caution.
105
+ get incidentPreferenceInput() {
106
+ return this._incidentPreference;
107
+ }
108
+ // name - computed: false, optional: false, required: true
109
+ _name;
110
+ get name() {
111
+ return this.getStringAttribute('name');
112
+ }
113
+ set name(value) {
114
+ this._name = value;
115
+ }
116
+ // Temporarily expose input value. Use with caution.
117
+ get nameInput() {
118
+ return this._name;
119
+ }
120
+ // updated_at - computed: true, optional: false, required: false
121
+ get updatedAt() {
122
+ return this.getStringAttribute('updated_at');
123
+ }
124
+ // =========
125
+ // SYNTHESIS
126
+ // =========
127
+ synthesizeAttributes() {
128
+ return {
129
+ account_id: cdktf.numberToTerraform(this._accountId),
130
+ id: cdktf.stringToTerraform(this._id),
131
+ incident_preference: cdktf.stringToTerraform(this._incidentPreference),
132
+ name: cdktf.stringToTerraform(this._name),
133
+ };
134
+ }
135
+ synthesizeHclAttributes() {
136
+ const attrs = {
137
+ account_id: {
138
+ value: cdktf.numberToHclTerraform(this._accountId),
139
+ isBlock: false,
140
+ type: "simple",
141
+ storageClassType: "number",
142
+ },
143
+ id: {
144
+ value: cdktf.stringToHclTerraform(this._id),
145
+ isBlock: false,
146
+ type: "simple",
147
+ storageClassType: "string",
148
+ },
149
+ incident_preference: {
150
+ value: cdktf.stringToHclTerraform(this._incidentPreference),
151
+ isBlock: false,
152
+ type: "simple",
153
+ storageClassType: "string",
154
+ },
155
+ name: {
156
+ value: cdktf.stringToHclTerraform(this._name),
157
+ isBlock: false,
158
+ type: "simple",
159
+ storageClassType: "string",
160
+ },
161
+ };
162
+ // remove undefined attributes
163
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
164
+ }
165
+ }