@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,142 @@
1
+ // https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_secure_credential
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/synthetics_secure_credential newrelic_synthetics_secure_credential}
6
+ */
7
+ export class DataNewrelicSyntheticsSecureCredential extends cdktf.TerraformDataSource {
8
+ // =================
9
+ // STATIC PROPERTIES
10
+ // =================
11
+ static tfResourceType = "newrelic_synthetics_secure_credential";
12
+ // ==============
13
+ // STATIC Methods
14
+ // ==============
15
+ /**
16
+ * Generates CDKTF code for importing a DataNewrelicSyntheticsSecureCredential 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 DataNewrelicSyntheticsSecureCredential to import
19
+ * @param importFromId The id of the existing DataNewrelicSyntheticsSecureCredential that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_secure_credential#import import section} in the documentation of this resource for the id to use
20
+ * @param provider? Optional instance of the provider where the DataNewrelicSyntheticsSecureCredential to import is found
21
+ */
22
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
23
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "newrelic_synthetics_secure_credential", 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/synthetics_secure_credential newrelic_synthetics_secure_credential} 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 DataNewrelicSyntheticsSecureCredentialConfig
34
+ */
35
+ constructor(scope, id, config) {
36
+ super(scope, id, {
37
+ terraformResourceType: 'newrelic_synthetics_secure_credential',
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._key = config.key;
54
+ }
55
+ // ==========
56
+ // ATTRIBUTES
57
+ // ==========
58
+ // account_id - computed: true, optional: true, required: false
59
+ _accountId;
60
+ get accountId() {
61
+ return this.getNumberAttribute('account_id');
62
+ }
63
+ set accountId(value) {
64
+ this._accountId = value;
65
+ }
66
+ resetAccountId() {
67
+ this._accountId = undefined;
68
+ }
69
+ // Temporarily expose input value. Use with caution.
70
+ get accountIdInput() {
71
+ return this._accountId;
72
+ }
73
+ // description - computed: true, optional: false, required: false
74
+ get description() {
75
+ return this.getStringAttribute('description');
76
+ }
77
+ // id - computed: true, optional: true, required: false
78
+ _id;
79
+ get id() {
80
+ return this.getStringAttribute('id');
81
+ }
82
+ set id(value) {
83
+ this._id = value;
84
+ }
85
+ resetId() {
86
+ this._id = undefined;
87
+ }
88
+ // Temporarily expose input value. Use with caution.
89
+ get idInput() {
90
+ return this._id;
91
+ }
92
+ // key - computed: false, optional: false, required: true
93
+ _key;
94
+ get key() {
95
+ return this.getStringAttribute('key');
96
+ }
97
+ set key(value) {
98
+ this._key = value;
99
+ }
100
+ // Temporarily expose input value. Use with caution.
101
+ get keyInput() {
102
+ return this._key;
103
+ }
104
+ // last_updated - computed: true, optional: false, required: false
105
+ get lastUpdated() {
106
+ return this.getStringAttribute('last_updated');
107
+ }
108
+ // =========
109
+ // SYNTHESIS
110
+ // =========
111
+ synthesizeAttributes() {
112
+ return {
113
+ account_id: cdktf.numberToTerraform(this._accountId),
114
+ id: cdktf.stringToTerraform(this._id),
115
+ key: cdktf.stringToTerraform(this._key),
116
+ };
117
+ }
118
+ synthesizeHclAttributes() {
119
+ const attrs = {
120
+ account_id: {
121
+ value: cdktf.numberToHclTerraform(this._accountId),
122
+ isBlock: false,
123
+ type: "simple",
124
+ storageClassType: "number",
125
+ },
126
+ id: {
127
+ value: cdktf.stringToHclTerraform(this._id),
128
+ isBlock: false,
129
+ type: "simple",
130
+ storageClassType: "string",
131
+ },
132
+ key: {
133
+ value: cdktf.stringToHclTerraform(this._key),
134
+ isBlock: false,
135
+ type: "simple",
136
+ storageClassType: "string",
137
+ },
138
+ };
139
+ // remove undefined attributes
140
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
141
+ }
142
+ }
@@ -0,0 +1,145 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface DataNewrelicTestGrokPatternConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * The account id associated with the test grok.
6
+ *
7
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/test_grok_pattern#account_id DataNewrelicTestGrokPattern#account_id}
8
+ */
9
+ readonly accountId?: number;
10
+ /**
11
+ * The Grok pattern to test.
12
+ *
13
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/test_grok_pattern#grok DataNewrelicTestGrokPattern#grok}
14
+ */
15
+ readonly grok: string;
16
+ /**
17
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/test_grok_pattern#id DataNewrelicTestGrokPattern#id}
18
+ *
19
+ * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
20
+ * 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.
21
+ */
22
+ readonly id?: string;
23
+ /**
24
+ * The log lines to test the Grok pattern against.
25
+ *
26
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/test_grok_pattern#log_lines DataNewrelicTestGrokPattern#log_lines}
27
+ */
28
+ readonly logLines: string[];
29
+ }
30
+ export interface DataNewrelicTestGrokPatternTestGrokAttributes {
31
+ }
32
+ export declare function dataNewrelicTestGrokPatternTestGrokAttributesToTerraform(struct?: DataNewrelicTestGrokPatternTestGrokAttributes): any;
33
+ export declare function dataNewrelicTestGrokPatternTestGrokAttributesToHclTerraform(struct?: DataNewrelicTestGrokPatternTestGrokAttributes): any;
34
+ export declare class DataNewrelicTestGrokPatternTestGrokAttributesOutputReference extends cdktf.ComplexObject {
35
+ private isEmptyObject;
36
+ /**
37
+ * @param terraformResource The parent resource
38
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
39
+ * @param complexObjectIndex the index of this item in the list
40
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
41
+ */
42
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
43
+ get internalValue(): DataNewrelicTestGrokPatternTestGrokAttributes | undefined;
44
+ set internalValue(value: DataNewrelicTestGrokPatternTestGrokAttributes | undefined);
45
+ get name(): any;
46
+ get value(): any;
47
+ }
48
+ export declare class DataNewrelicTestGrokPatternTestGrokAttributesList extends cdktf.ComplexList {
49
+ protected terraformResource: cdktf.IInterpolatingParent;
50
+ protected terraformAttribute: string;
51
+ protected wrapsSet: boolean;
52
+ /**
53
+ * @param terraformResource The parent resource
54
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
55
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
56
+ */
57
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
58
+ /**
59
+ * @param index the index of the item to return
60
+ */
61
+ get(index: number): DataNewrelicTestGrokPatternTestGrokAttributesOutputReference;
62
+ }
63
+ export interface DataNewrelicTestGrokPatternTestGrok {
64
+ }
65
+ export declare function dataNewrelicTestGrokPatternTestGrokToTerraform(struct?: DataNewrelicTestGrokPatternTestGrok): any;
66
+ export declare function dataNewrelicTestGrokPatternTestGrokToHclTerraform(struct?: DataNewrelicTestGrokPatternTestGrok): any;
67
+ export declare class DataNewrelicTestGrokPatternTestGrokOutputReference extends cdktf.ComplexObject {
68
+ private isEmptyObject;
69
+ /**
70
+ * @param terraformResource The parent resource
71
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
72
+ * @param complexObjectIndex the index of this item in the list
73
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
74
+ */
75
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
76
+ get internalValue(): DataNewrelicTestGrokPatternTestGrok | undefined;
77
+ set internalValue(value: DataNewrelicTestGrokPatternTestGrok | undefined);
78
+ private _attributes;
79
+ get attributes(): DataNewrelicTestGrokPatternTestGrokAttributesList;
80
+ get logLine(): any;
81
+ get matched(): any;
82
+ }
83
+ export declare class DataNewrelicTestGrokPatternTestGrokList extends cdktf.ComplexList {
84
+ protected terraformResource: cdktf.IInterpolatingParent;
85
+ protected terraformAttribute: string;
86
+ protected wrapsSet: boolean;
87
+ /**
88
+ * @param terraformResource The parent resource
89
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
90
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
91
+ */
92
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
93
+ /**
94
+ * @param index the index of the item to return
95
+ */
96
+ get(index: number): DataNewrelicTestGrokPatternTestGrokOutputReference;
97
+ }
98
+ /**
99
+ * Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/test_grok_pattern newrelic_test_grok_pattern}
100
+ */
101
+ export declare class DataNewrelicTestGrokPattern extends cdktf.TerraformDataSource {
102
+ static readonly tfResourceType = "newrelic_test_grok_pattern";
103
+ /**
104
+ * Generates CDKTF code for importing a DataNewrelicTestGrokPattern resource upon running "cdktf plan <stack-name>"
105
+ * @param scope The scope in which to define this construct
106
+ * @param importToId The construct id used in the generated config for the DataNewrelicTestGrokPattern to import
107
+ * @param importFromId The id of the existing DataNewrelicTestGrokPattern that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/test_grok_pattern#import import section} in the documentation of this resource for the id to use
108
+ * @param provider? Optional instance of the provider where the DataNewrelicTestGrokPattern to import is found
109
+ */
110
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
111
+ /**
112
+ * Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/test_grok_pattern newrelic_test_grok_pattern} Data Source
113
+ *
114
+ * @param scope The scope in which to define this construct
115
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
116
+ * @param options DataNewrelicTestGrokPatternConfig
117
+ */
118
+ constructor(scope: Construct, id: string, config: DataNewrelicTestGrokPatternConfig);
119
+ private _accountId?;
120
+ get accountId(): number;
121
+ set accountId(value: number);
122
+ resetAccountId(): void;
123
+ get accountIdInput(): number;
124
+ private _grok?;
125
+ get grok(): string;
126
+ set grok(value: string);
127
+ get grokInput(): string;
128
+ private _id?;
129
+ get id(): string;
130
+ set id(value: string);
131
+ resetId(): void;
132
+ get idInput(): string;
133
+ private _logLines?;
134
+ get logLines(): string[];
135
+ set logLines(value: string[]);
136
+ get logLinesInput(): string[];
137
+ private _testGrok;
138
+ get testGrok(): DataNewrelicTestGrokPatternTestGrokList;
139
+ protected synthesizeAttributes(): {
140
+ [name: string]: any;
141
+ };
142
+ protected synthesizeHclAttributes(): {
143
+ [name: string]: any;
144
+ };
145
+ }
@@ -0,0 +1,312 @@
1
+ // https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/test_grok_pattern
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function dataNewrelicTestGrokPatternTestGrokAttributesToTerraform(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 dataNewrelicTestGrokPatternTestGrokAttributesToHclTerraform(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 DataNewrelicTestGrokPatternTestGrokAttributesOutputReference 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
+ // name - computed: true, optional: false, required: false
48
+ get name() {
49
+ return this.getStringAttribute('name');
50
+ }
51
+ // value - computed: true, optional: false, required: false
52
+ get value() {
53
+ return this.getStringAttribute('value');
54
+ }
55
+ }
56
+ export class DataNewrelicTestGrokPatternTestGrokAttributesList extends cdktf.ComplexList {
57
+ terraformResource;
58
+ terraformAttribute;
59
+ wrapsSet;
60
+ /**
61
+ * @param terraformResource The parent resource
62
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
63
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
64
+ */
65
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
66
+ super(terraformResource, terraformAttribute, wrapsSet);
67
+ this.terraformResource = terraformResource;
68
+ this.terraformAttribute = terraformAttribute;
69
+ this.wrapsSet = wrapsSet;
70
+ }
71
+ /**
72
+ * @param index the index of the item to return
73
+ */
74
+ get(index) {
75
+ return new DataNewrelicTestGrokPatternTestGrokAttributesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
76
+ }
77
+ }
78
+ export function dataNewrelicTestGrokPatternTestGrokToTerraform(struct) {
79
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
80
+ return struct;
81
+ }
82
+ if (cdktf.isComplexElement(struct)) {
83
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
84
+ }
85
+ return {};
86
+ }
87
+ export function dataNewrelicTestGrokPatternTestGrokToHclTerraform(struct) {
88
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
89
+ return struct;
90
+ }
91
+ if (cdktf.isComplexElement(struct)) {
92
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
93
+ }
94
+ const attrs = {};
95
+ return attrs;
96
+ }
97
+ export class DataNewrelicTestGrokPatternTestGrokOutputReference extends cdktf.ComplexObject {
98
+ isEmptyObject = false;
99
+ /**
100
+ * @param terraformResource The parent resource
101
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
102
+ * @param complexObjectIndex the index of this item in the list
103
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
104
+ */
105
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
106
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
107
+ }
108
+ get internalValue() {
109
+ let hasAnyValues = this.isEmptyObject;
110
+ const internalValueResult = {};
111
+ return hasAnyValues ? internalValueResult : undefined;
112
+ }
113
+ set internalValue(value) {
114
+ if (value === undefined) {
115
+ this.isEmptyObject = false;
116
+ }
117
+ else {
118
+ this.isEmptyObject = Object.keys(value).length === 0;
119
+ }
120
+ }
121
+ // attributes - computed: true, optional: false, required: false
122
+ _attributes = new DataNewrelicTestGrokPatternTestGrokAttributesList(this, "attributes", true);
123
+ get attributes() {
124
+ return this._attributes;
125
+ }
126
+ // log_line - computed: true, optional: false, required: false
127
+ get logLine() {
128
+ return this.getStringAttribute('log_line');
129
+ }
130
+ // matched - computed: true, optional: false, required: false
131
+ get matched() {
132
+ return this.getBooleanAttribute('matched');
133
+ }
134
+ }
135
+ export class DataNewrelicTestGrokPatternTestGrokList extends cdktf.ComplexList {
136
+ terraformResource;
137
+ terraformAttribute;
138
+ wrapsSet;
139
+ /**
140
+ * @param terraformResource The parent resource
141
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
142
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
143
+ */
144
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
145
+ super(terraformResource, terraformAttribute, wrapsSet);
146
+ this.terraformResource = terraformResource;
147
+ this.terraformAttribute = terraformAttribute;
148
+ this.wrapsSet = wrapsSet;
149
+ }
150
+ /**
151
+ * @param index the index of the item to return
152
+ */
153
+ get(index) {
154
+ return new DataNewrelicTestGrokPatternTestGrokOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
155
+ }
156
+ }
157
+ /**
158
+ * Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/test_grok_pattern newrelic_test_grok_pattern}
159
+ */
160
+ export class DataNewrelicTestGrokPattern extends cdktf.TerraformDataSource {
161
+ // =================
162
+ // STATIC PROPERTIES
163
+ // =================
164
+ static tfResourceType = "newrelic_test_grok_pattern";
165
+ // ==============
166
+ // STATIC Methods
167
+ // ==============
168
+ /**
169
+ * Generates CDKTF code for importing a DataNewrelicTestGrokPattern resource upon running "cdktf plan <stack-name>"
170
+ * @param scope The scope in which to define this construct
171
+ * @param importToId The construct id used in the generated config for the DataNewrelicTestGrokPattern to import
172
+ * @param importFromId The id of the existing DataNewrelicTestGrokPattern that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/test_grok_pattern#import import section} in the documentation of this resource for the id to use
173
+ * @param provider? Optional instance of the provider where the DataNewrelicTestGrokPattern to import is found
174
+ */
175
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
176
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "newrelic_test_grok_pattern", importId: importFromId, provider });
177
+ }
178
+ // ===========
179
+ // INITIALIZER
180
+ // ===========
181
+ /**
182
+ * Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/test_grok_pattern newrelic_test_grok_pattern} Data Source
183
+ *
184
+ * @param scope The scope in which to define this construct
185
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
186
+ * @param options DataNewrelicTestGrokPatternConfig
187
+ */
188
+ constructor(scope, id, config) {
189
+ super(scope, id, {
190
+ terraformResourceType: 'newrelic_test_grok_pattern',
191
+ terraformGeneratorMetadata: {
192
+ providerName: 'newrelic',
193
+ providerVersion: '3.75.4',
194
+ providerVersionConstraint: '3.75.4'
195
+ },
196
+ provider: config.provider,
197
+ dependsOn: config.dependsOn,
198
+ count: config.count,
199
+ lifecycle: config.lifecycle,
200
+ provisioners: config.provisioners,
201
+ connection: config.connection,
202
+ forEach: config.forEach
203
+ });
204
+ this._accountId = config.accountId;
205
+ this._grok = config.grok;
206
+ this._id = config.id;
207
+ this._logLines = config.logLines;
208
+ }
209
+ // ==========
210
+ // ATTRIBUTES
211
+ // ==========
212
+ // account_id - computed: false, optional: true, required: false
213
+ _accountId;
214
+ get accountId() {
215
+ return this.getNumberAttribute('account_id');
216
+ }
217
+ set accountId(value) {
218
+ this._accountId = value;
219
+ }
220
+ resetAccountId() {
221
+ this._accountId = undefined;
222
+ }
223
+ // Temporarily expose input value. Use with caution.
224
+ get accountIdInput() {
225
+ return this._accountId;
226
+ }
227
+ // grok - computed: false, optional: false, required: true
228
+ _grok;
229
+ get grok() {
230
+ return this.getStringAttribute('grok');
231
+ }
232
+ set grok(value) {
233
+ this._grok = value;
234
+ }
235
+ // Temporarily expose input value. Use with caution.
236
+ get grokInput() {
237
+ return this._grok;
238
+ }
239
+ // id - computed: true, optional: true, required: false
240
+ _id;
241
+ get id() {
242
+ return this.getStringAttribute('id');
243
+ }
244
+ set id(value) {
245
+ this._id = value;
246
+ }
247
+ resetId() {
248
+ this._id = undefined;
249
+ }
250
+ // Temporarily expose input value. Use with caution.
251
+ get idInput() {
252
+ return this._id;
253
+ }
254
+ // log_lines - computed: false, optional: false, required: true
255
+ _logLines;
256
+ get logLines() {
257
+ return cdktf.Fn.tolist(this.getListAttribute('log_lines'));
258
+ }
259
+ set logLines(value) {
260
+ this._logLines = value;
261
+ }
262
+ // Temporarily expose input value. Use with caution.
263
+ get logLinesInput() {
264
+ return this._logLines;
265
+ }
266
+ // test_grok - computed: true, optional: false, required: false
267
+ _testGrok = new DataNewrelicTestGrokPatternTestGrokList(this, "test_grok", false);
268
+ get testGrok() {
269
+ return this._testGrok;
270
+ }
271
+ // =========
272
+ // SYNTHESIS
273
+ // =========
274
+ synthesizeAttributes() {
275
+ return {
276
+ account_id: cdktf.numberToTerraform(this._accountId),
277
+ grok: cdktf.stringToTerraform(this._grok),
278
+ id: cdktf.stringToTerraform(this._id),
279
+ log_lines: cdktf.listMapper(cdktf.stringToTerraform, false)(this._logLines),
280
+ };
281
+ }
282
+ synthesizeHclAttributes() {
283
+ const attrs = {
284
+ account_id: {
285
+ value: cdktf.numberToHclTerraform(this._accountId),
286
+ isBlock: false,
287
+ type: "simple",
288
+ storageClassType: "number",
289
+ },
290
+ grok: {
291
+ value: cdktf.stringToHclTerraform(this._grok),
292
+ isBlock: false,
293
+ type: "simple",
294
+ storageClassType: "string",
295
+ },
296
+ id: {
297
+ value: cdktf.stringToHclTerraform(this._id),
298
+ isBlock: false,
299
+ type: "simple",
300
+ storageClassType: "string",
301
+ },
302
+ log_lines: {
303
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._logLines),
304
+ isBlock: false,
305
+ type: "set",
306
+ storageClassType: "stringList",
307
+ },
308
+ };
309
+ // remove undefined attributes
310
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
311
+ }
312
+ }
@@ -0,0 +1,65 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface DataNewrelicUserConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * The ID of the Authentication Domain the user being queried would belong to.
6
+ *
7
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/user#authentication_domain_id DataNewrelicUser#authentication_domain_id}
8
+ */
9
+ readonly authenticationDomainId: string;
10
+ /**
11
+ * The email ID of the user to be queried.
12
+ *
13
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/user#email_id DataNewrelicUser#email_id}
14
+ */
15
+ readonly emailId?: string;
16
+ /**
17
+ * The name of the user to be queried.
18
+ *
19
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/user#name DataNewrelicUser#name}
20
+ */
21
+ readonly name?: string;
22
+ }
23
+ /**
24
+ * Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/user newrelic_user}
25
+ */
26
+ export declare class DataNewrelicUser extends cdktf.TerraformDataSource {
27
+ static readonly tfResourceType = "newrelic_user";
28
+ /**
29
+ * Generates CDKTF code for importing a DataNewrelicUser resource upon running "cdktf plan <stack-name>"
30
+ * @param scope The scope in which to define this construct
31
+ * @param importToId The construct id used in the generated config for the DataNewrelicUser to import
32
+ * @param importFromId The id of the existing DataNewrelicUser that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/user#import import section} in the documentation of this resource for the id to use
33
+ * @param provider? Optional instance of the provider where the DataNewrelicUser to import is found
34
+ */
35
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
36
+ /**
37
+ * Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/user newrelic_user} Data Source
38
+ *
39
+ * @param scope The scope in which to define this construct
40
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
41
+ * @param options DataNewrelicUserConfig
42
+ */
43
+ constructor(scope: Construct, id: string, config: DataNewrelicUserConfig);
44
+ private _authenticationDomainId?;
45
+ get authenticationDomainId(): string;
46
+ set authenticationDomainId(value: string);
47
+ get authenticationDomainIdInput(): string;
48
+ private _emailId?;
49
+ get emailId(): string;
50
+ set emailId(value: string);
51
+ resetEmailId(): void;
52
+ get emailIdInput(): string;
53
+ get id(): any;
54
+ private _name?;
55
+ get name(): string;
56
+ set name(value: string);
57
+ resetName(): void;
58
+ get nameInput(): string;
59
+ protected synthesizeAttributes(): {
60
+ [name: string]: any;
61
+ };
62
+ protected synthesizeHclAttributes(): {
63
+ [name: string]: any;
64
+ };
65
+ }