@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.
- package/LICENSE +355 -0
- package/README.md +19 -0
- package/dist/account-management/index.d.ts +64 -0
- package/dist/account-management/index.js +131 -0
- package/dist/alert-channel/index.d.ts +347 -0
- package/dist/alert-channel/index.js +810 -0
- package/dist/alert-condition/index.d.ts +267 -0
- package/dist/alert-condition/index.js +587 -0
- package/dist/alert-muting-rule/index.d.ts +305 -0
- package/dist/alert-muting-rule/index.js +731 -0
- package/dist/alert-policy/index.d.ts +87 -0
- package/dist/alert-policy/index.js +180 -0
- package/dist/alert-policy-channel/index.d.ts +110 -0
- package/dist/alert-policy-channel/index.js +260 -0
- package/dist/api-access-key/index.d.ts +98 -0
- package/dist/api-access-key/index.js +230 -0
- package/dist/application-settings/index.d.ts +410 -0
- package/dist/application-settings/index.js +966 -0
- package/dist/browser-application/index.d.ts +101 -0
- package/dist/browser-application/index.js +215 -0
- package/dist/cloud-aws-govcloud-integrations/index.d.ts +1519 -0
- package/dist/cloud-aws-govcloud-integrations/index.js +3846 -0
- package/dist/cloud-aws-govcloud-link-account/index.d.ts +86 -0
- package/dist/cloud-aws-govcloud-link-account/index.js +177 -0
- package/dist/cloud-aws-integrations/index.d.ts +3294 -0
- package/dist/cloud-aws-integrations/index.js +8554 -0
- package/dist/cloud-aws-link-account/index.d.ts +86 -0
- package/dist/cloud-aws-link-account/index.js +177 -0
- package/dist/cloud-azure-integrations/index.d.ts +1662 -0
- package/dist/cloud-azure-integrations/index.js +4338 -0
- package/dist/cloud-azure-link-account/index.d.ts +105 -0
- package/dist/cloud-azure-link-account/index.js +214 -0
- package/dist/cloud-gcp-integrations/index.d.ts +1045 -0
- package/dist/cloud-gcp-integrations/index.js +2742 -0
- package/dist/cloud-gcp-link-account/index.d.ts +75 -0
- package/dist/cloud-gcp-link-account/index.js +154 -0
- package/dist/cloud-oci-link-account/index.d.ts +191 -0
- package/dist/cloud-oci-link-account/index.js +392 -0
- package/dist/data-newrelic-account/index.d.ts +77 -0
- package/dist/data-newrelic-account/index.js +160 -0
- package/dist/data-newrelic-alert-channel/index.d.ts +122 -0
- package/dist/data-newrelic-alert-channel/index.js +295 -0
- package/dist/data-newrelic-alert-policy/index.d.ts +78 -0
- package/dist/data-newrelic-alert-policy/index.js +165 -0
- package/dist/data-newrelic-application/index.d.ts +56 -0
- package/dist/data-newrelic-application/index.js +119 -0
- package/dist/data-newrelic-authentication-domain/index.d.ts +43 -0
- package/dist/data-newrelic-authentication-domain/index.js +92 -0
- package/dist/data-newrelic-cloud-account/index.d.ts +75 -0
- package/dist/data-newrelic-cloud-account/index.js +154 -0
- package/dist/data-newrelic-entity/index.d.ts +185 -0
- package/dist/data-newrelic-entity/index.js +414 -0
- package/dist/data-newrelic-group/index.d.ts +54 -0
- package/dist/data-newrelic-group/index.js +116 -0
- package/dist/data-newrelic-key-transaction/index.d.ts +78 -0
- package/dist/data-newrelic-key-transaction/index.js +165 -0
- package/dist/data-newrelic-notification-destination/index.d.ts +161 -0
- package/dist/data-newrelic-notification-destination/index.js +368 -0
- package/dist/data-newrelic-obfuscation-expression/index.d.ts +65 -0
- package/dist/data-newrelic-obfuscation-expression/index.js +134 -0
- package/dist/data-newrelic-service-level-alert-helper/index.d.ts +107 -0
- package/dist/data-newrelic-service-level-alert-helper/index.js +256 -0
- package/dist/data-newrelic-synthetics-private-location/index.d.ts +76 -0
- package/dist/data-newrelic-synthetics-private-location/index.js +157 -0
- package/dist/data-newrelic-synthetics-secure-credential/index.d.ts +67 -0
- package/dist/data-newrelic-synthetics-secure-credential/index.js +142 -0
- package/dist/data-newrelic-test-grok-pattern/index.d.ts +145 -0
- package/dist/data-newrelic-test-grok-pattern/index.js +312 -0
- package/dist/data-newrelic-user/index.d.ts +65 -0
- package/dist/data-newrelic-user/index.js +138 -0
- package/dist/data-partition-rule/index.d.ts +142 -0
- package/dist/data-partition-rule/index.js +327 -0
- package/dist/entity-tags/index.d.ts +152 -0
- package/dist/entity-tags/index.js +367 -0
- package/dist/events-to-metrics-rule/index.d.ts +98 -0
- package/dist/events-to-metrics-rule/index.js +204 -0
- package/dist/group/index.d.ts +75 -0
- package/dist/group/index.js +154 -0
- package/dist/index.d.ts +67 -0
- package/dist/index.js +68 -0
- package/dist/infra-alert-condition/index.d.ts +289 -0
- package/dist/infra-alert-condition/index.js +691 -0
- package/dist/insights-event/index.d.ts +182 -0
- package/dist/insights-event/index.js +427 -0
- package/dist/key-transaction/index.d.ts +96 -0
- package/dist/key-transaction/index.js +199 -0
- package/dist/lazy-index.d.ts +0 -0
- package/dist/lazy-index.js +68 -0
- package/dist/log-parsing-rule/index.d.ts +128 -0
- package/dist/log-parsing-rule/index.js +264 -0
- package/dist/monitor-downtime/index.d.ts +255 -0
- package/dist/monitor-downtime/index.js +603 -0
- package/dist/notification-channel/index.d.ts +236 -0
- package/dist/notification-channel/index.js +561 -0
- package/dist/notification-destination/index.d.ts +402 -0
- package/dist/notification-destination/index.js +1039 -0
- package/dist/nrql-alert-condition/index.d.ts +892 -0
- package/dist/nrql-alert-condition/index.js +2177 -0
- package/dist/nrql-drop-rule/index.d.ts +123 -0
- package/dist/nrql-drop-rule/index.js +291 -0
- package/dist/obfuscation-expression/index.d.ts +86 -0
- package/dist/obfuscation-expression/index.js +177 -0
- package/dist/obfuscation-rule/index.d.ts +169 -0
- package/dist/obfuscation-rule/index.js +372 -0
- package/dist/one-dashboard/index-structs/index.d.ts +2 -0
- package/dist/one-dashboard/index-structs/index.js +2 -0
- package/dist/one-dashboard/index-structs/structs0.d.ts +6996 -0
- package/dist/one-dashboard/index-structs/structs0.js +18191 -0
- package/dist/one-dashboard/index-structs/structs400.d.ts +3699 -0
- package/dist/one-dashboard/index-structs/structs400.js +9611 -0
- package/dist/one-dashboard/index.d.ts +112 -0
- package/dist/one-dashboard/index.js +232 -0
- package/dist/one-dashboard-json/index.d.ts +112 -0
- package/dist/one-dashboard-json/index.js +280 -0
- package/dist/one-dashboard-raw/index.d.ts +274 -0
- package/dist/one-dashboard-raw/index.js +666 -0
- package/dist/pipeline-cloud-rule/index.d.ts +86 -0
- package/dist/pipeline-cloud-rule/index.js +177 -0
- package/dist/provider/index.d.ts +160 -0
- package/dist/provider/index.js +378 -0
- package/dist/service-level/index.d.ts +501 -0
- package/dist/service-level/index.js +1425 -0
- package/dist/synthetics-alert-condition/index.d.ts +97 -0
- package/dist/synthetics-alert-condition/index.js +201 -0
- package/dist/synthetics-broken-links-monitor/index.d.ts +217 -0
- package/dist/synthetics-broken-links-monitor/index.js +474 -0
- package/dist/synthetics-cert-check-monitor/index.d.ts +222 -0
- package/dist/synthetics-cert-check-monitor/index.js +490 -0
- package/dist/synthetics-monitor/index.d.ts +404 -0
- package/dist/synthetics-monitor/index.js +885 -0
- package/dist/synthetics-multilocation-alert-condition/index.d.ts +177 -0
- package/dist/synthetics-multilocation-alert-condition/index.js +407 -0
- package/dist/synthetics-private-location/index.d.ts +90 -0
- package/dist/synthetics-private-location/index.js +193 -0
- package/dist/synthetics-script-monitor/index.d.ts +348 -0
- package/dist/synthetics-script-monitor/index.js +768 -0
- package/dist/synthetics-secure-credential/index.d.ts +132 -0
- package/dist/synthetics-secure-credential/index.js +306 -0
- package/dist/synthetics-step-monitor/index.d.ts +368 -0
- package/dist/synthetics-step-monitor/index.js +834 -0
- package/dist/user/index.d.ts +85 -0
- package/dist/user/index.js +174 -0
- package/dist/workflow/index.d.ts +441 -0
- package/dist/workflow/index.js +1066 -0
- package/dist/workload/index.d.ts +514 -0
- package/dist/workload/index.js +1283 -0
- package/package.json +50 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface DataNewrelicEntityConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* The New Relic account ID; if specified, constrains the data source to return an entity belonging to the account with this ID, of all matching entities retrieved.
|
|
6
|
+
*
|
|
7
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity#account_id DataNewrelicEntity#account_id}
|
|
8
|
+
*/
|
|
9
|
+
readonly accountId?: number;
|
|
10
|
+
/**
|
|
11
|
+
* The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, SYNTH, and EXT. If not specified, all domains are searched.
|
|
12
|
+
*
|
|
13
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity#domain DataNewrelicEntity#domain}
|
|
14
|
+
*/
|
|
15
|
+
readonly domain?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity#entity_tags DataNewrelicEntity#entity_tags}
|
|
18
|
+
*/
|
|
19
|
+
readonly entityTags?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity#id DataNewrelicEntity#id}
|
|
22
|
+
*
|
|
23
|
+
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
24
|
+
* 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.
|
|
25
|
+
*/
|
|
26
|
+
readonly id?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Ignore case when searching the entity name.
|
|
29
|
+
*
|
|
30
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity#ignore_case DataNewrelicEntity#ignore_case}
|
|
31
|
+
*/
|
|
32
|
+
readonly ignoreCase?: boolean | cdktf.IResolvable;
|
|
33
|
+
/**
|
|
34
|
+
* A boolean attribute which when set to true, does not throw an error if the queried entity is not found.
|
|
35
|
+
*
|
|
36
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity#ignore_not_found DataNewrelicEntity#ignore_not_found}
|
|
37
|
+
*/
|
|
38
|
+
readonly ignoreNotFound?: boolean | cdktf.IResolvable;
|
|
39
|
+
/**
|
|
40
|
+
* The name of the entity in New Relic One. The first entity matching this name for the given search parameters will be returned.
|
|
41
|
+
*
|
|
42
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity#name DataNewrelicEntity#name}
|
|
43
|
+
*/
|
|
44
|
+
readonly name: string;
|
|
45
|
+
/**
|
|
46
|
+
* The entity's type. Valid values are APPLICATION, DASHBOARD, HOST, MONITOR, SERVICE and WORKLOAD.
|
|
47
|
+
*
|
|
48
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity#type DataNewrelicEntity#type}
|
|
49
|
+
*/
|
|
50
|
+
readonly type?: string;
|
|
51
|
+
/**
|
|
52
|
+
* tag block
|
|
53
|
+
*
|
|
54
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity#tag DataNewrelicEntity#tag}
|
|
55
|
+
*/
|
|
56
|
+
readonly tag?: DataNewrelicEntityTag[] | cdktf.IResolvable;
|
|
57
|
+
}
|
|
58
|
+
export interface DataNewrelicEntityTag {
|
|
59
|
+
/**
|
|
60
|
+
* The tag key.
|
|
61
|
+
*
|
|
62
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity#key DataNewrelicEntity#key}
|
|
63
|
+
*/
|
|
64
|
+
readonly key: string;
|
|
65
|
+
/**
|
|
66
|
+
* The tag value.
|
|
67
|
+
*
|
|
68
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity#value DataNewrelicEntity#value}
|
|
69
|
+
*/
|
|
70
|
+
readonly value: string;
|
|
71
|
+
}
|
|
72
|
+
export declare function dataNewrelicEntityTagToTerraform(struct?: DataNewrelicEntityTag | cdktf.IResolvable): any;
|
|
73
|
+
export declare function dataNewrelicEntityTagToHclTerraform(struct?: DataNewrelicEntityTag | cdktf.IResolvable): any;
|
|
74
|
+
export declare class DataNewrelicEntityTagOutputReference extends cdktf.ComplexObject {
|
|
75
|
+
private isEmptyObject;
|
|
76
|
+
private resolvableValue?;
|
|
77
|
+
/**
|
|
78
|
+
* @param terraformResource The parent resource
|
|
79
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
80
|
+
* @param complexObjectIndex the index of this item in the list
|
|
81
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
82
|
+
*/
|
|
83
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
|
|
84
|
+
get internalValue(): DataNewrelicEntityTag | cdktf.IResolvable | undefined;
|
|
85
|
+
set internalValue(value: DataNewrelicEntityTag | cdktf.IResolvable | undefined);
|
|
86
|
+
private _key?;
|
|
87
|
+
get key(): string;
|
|
88
|
+
set key(value: string);
|
|
89
|
+
get keyInput(): string;
|
|
90
|
+
private _value?;
|
|
91
|
+
get value(): string;
|
|
92
|
+
set value(value: string);
|
|
93
|
+
get valueInput(): string;
|
|
94
|
+
}
|
|
95
|
+
export declare class DataNewrelicEntityTagList extends cdktf.ComplexList {
|
|
96
|
+
protected terraformResource: cdktf.IInterpolatingParent;
|
|
97
|
+
protected terraformAttribute: string;
|
|
98
|
+
protected wrapsSet: boolean;
|
|
99
|
+
internalValue?: DataNewrelicEntityTag[] | cdktf.IResolvable;
|
|
100
|
+
/**
|
|
101
|
+
* @param terraformResource The parent resource
|
|
102
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
103
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
104
|
+
*/
|
|
105
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
|
|
106
|
+
/**
|
|
107
|
+
* @param index the index of the item to return
|
|
108
|
+
*/
|
|
109
|
+
get(index: number): DataNewrelicEntityTagOutputReference;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity newrelic_entity}
|
|
113
|
+
*/
|
|
114
|
+
export declare class DataNewrelicEntity extends cdktf.TerraformDataSource {
|
|
115
|
+
static readonly tfResourceType = "newrelic_entity";
|
|
116
|
+
/**
|
|
117
|
+
* Generates CDKTF code for importing a DataNewrelicEntity resource upon running "cdktf plan <stack-name>"
|
|
118
|
+
* @param scope The scope in which to define this construct
|
|
119
|
+
* @param importToId The construct id used in the generated config for the DataNewrelicEntity to import
|
|
120
|
+
* @param importFromId The id of the existing DataNewrelicEntity that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity#import import section} in the documentation of this resource for the id to use
|
|
121
|
+
* @param provider? Optional instance of the provider where the DataNewrelicEntity to import is found
|
|
122
|
+
*/
|
|
123
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
124
|
+
/**
|
|
125
|
+
* Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity newrelic_entity} Data Source
|
|
126
|
+
*
|
|
127
|
+
* @param scope The scope in which to define this construct
|
|
128
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
129
|
+
* @param options DataNewrelicEntityConfig
|
|
130
|
+
*/
|
|
131
|
+
constructor(scope: Construct, id: string, config: DataNewrelicEntityConfig);
|
|
132
|
+
private _accountId?;
|
|
133
|
+
get accountId(): number;
|
|
134
|
+
set accountId(value: number);
|
|
135
|
+
resetAccountId(): void;
|
|
136
|
+
get accountIdInput(): number;
|
|
137
|
+
get applicationId(): any;
|
|
138
|
+
private _domain?;
|
|
139
|
+
get domain(): string;
|
|
140
|
+
set domain(value: string);
|
|
141
|
+
resetDomain(): void;
|
|
142
|
+
get domainInput(): string;
|
|
143
|
+
private _entityTags?;
|
|
144
|
+
get entityTags(): string;
|
|
145
|
+
set entityTags(value: string);
|
|
146
|
+
resetEntityTags(): void;
|
|
147
|
+
get entityTagsInput(): string;
|
|
148
|
+
get guid(): any;
|
|
149
|
+
private _id?;
|
|
150
|
+
get id(): string;
|
|
151
|
+
set id(value: string);
|
|
152
|
+
resetId(): void;
|
|
153
|
+
get idInput(): string;
|
|
154
|
+
private _ignoreCase?;
|
|
155
|
+
get ignoreCase(): boolean | cdktf.IResolvable;
|
|
156
|
+
set ignoreCase(value: boolean | cdktf.IResolvable);
|
|
157
|
+
resetIgnoreCase(): void;
|
|
158
|
+
get ignoreCaseInput(): any;
|
|
159
|
+
private _ignoreNotFound?;
|
|
160
|
+
get ignoreNotFound(): boolean | cdktf.IResolvable;
|
|
161
|
+
set ignoreNotFound(value: boolean | cdktf.IResolvable);
|
|
162
|
+
resetIgnoreNotFound(): void;
|
|
163
|
+
get ignoreNotFoundInput(): any;
|
|
164
|
+
private _name?;
|
|
165
|
+
get name(): string;
|
|
166
|
+
set name(value: string);
|
|
167
|
+
get nameInput(): string;
|
|
168
|
+
get servingApmApplicationId(): any;
|
|
169
|
+
private _type?;
|
|
170
|
+
get type(): string;
|
|
171
|
+
set type(value: string);
|
|
172
|
+
resetType(): void;
|
|
173
|
+
get typeInput(): string;
|
|
174
|
+
private _tag;
|
|
175
|
+
get tag(): DataNewrelicEntityTagList;
|
|
176
|
+
putTag(value: DataNewrelicEntityTag[] | cdktf.IResolvable): void;
|
|
177
|
+
resetTag(): void;
|
|
178
|
+
get tagInput(): any;
|
|
179
|
+
protected synthesizeAttributes(): {
|
|
180
|
+
[name: string]: any;
|
|
181
|
+
};
|
|
182
|
+
protected synthesizeHclAttributes(): {
|
|
183
|
+
[name: string]: any;
|
|
184
|
+
};
|
|
185
|
+
}
|
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function dataNewrelicEntityTagToTerraform(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
|
+
key: cdktf.stringToTerraform(struct.key),
|
|
13
|
+
value: cdktf.stringToTerraform(struct.value),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export function dataNewrelicEntityTagToHclTerraform(struct) {
|
|
17
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
18
|
+
return struct;
|
|
19
|
+
}
|
|
20
|
+
if (cdktf.isComplexElement(struct)) {
|
|
21
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
22
|
+
}
|
|
23
|
+
const attrs = {
|
|
24
|
+
key: {
|
|
25
|
+
value: cdktf.stringToHclTerraform(struct.key),
|
|
26
|
+
isBlock: false,
|
|
27
|
+
type: "simple",
|
|
28
|
+
storageClassType: "string",
|
|
29
|
+
},
|
|
30
|
+
value: {
|
|
31
|
+
value: cdktf.stringToHclTerraform(struct.value),
|
|
32
|
+
isBlock: false,
|
|
33
|
+
type: "simple",
|
|
34
|
+
storageClassType: "string",
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
// remove undefined attributes
|
|
38
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
39
|
+
}
|
|
40
|
+
export class DataNewrelicEntityTagOutputReference extends cdktf.ComplexObject {
|
|
41
|
+
isEmptyObject = false;
|
|
42
|
+
resolvableValue;
|
|
43
|
+
/**
|
|
44
|
+
* @param terraformResource The parent resource
|
|
45
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
46
|
+
* @param complexObjectIndex the index of this item in the list
|
|
47
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
48
|
+
*/
|
|
49
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
50
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
51
|
+
}
|
|
52
|
+
get internalValue() {
|
|
53
|
+
if (this.resolvableValue) {
|
|
54
|
+
return this.resolvableValue;
|
|
55
|
+
}
|
|
56
|
+
let hasAnyValues = this.isEmptyObject;
|
|
57
|
+
const internalValueResult = {};
|
|
58
|
+
if (this._key !== undefined) {
|
|
59
|
+
hasAnyValues = true;
|
|
60
|
+
internalValueResult.key = this._key;
|
|
61
|
+
}
|
|
62
|
+
if (this._value !== undefined) {
|
|
63
|
+
hasAnyValues = true;
|
|
64
|
+
internalValueResult.value = this._value;
|
|
65
|
+
}
|
|
66
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
67
|
+
}
|
|
68
|
+
set internalValue(value) {
|
|
69
|
+
if (value === undefined) {
|
|
70
|
+
this.isEmptyObject = false;
|
|
71
|
+
this.resolvableValue = undefined;
|
|
72
|
+
this._key = undefined;
|
|
73
|
+
this._value = undefined;
|
|
74
|
+
}
|
|
75
|
+
else if (cdktf.Tokenization.isResolvable(value)) {
|
|
76
|
+
this.isEmptyObject = false;
|
|
77
|
+
this.resolvableValue = value;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
81
|
+
this.resolvableValue = undefined;
|
|
82
|
+
this._key = value.key;
|
|
83
|
+
this._value = value.value;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
// key - computed: false, optional: false, required: true
|
|
87
|
+
_key;
|
|
88
|
+
get key() {
|
|
89
|
+
return this.getStringAttribute('key');
|
|
90
|
+
}
|
|
91
|
+
set key(value) {
|
|
92
|
+
this._key = value;
|
|
93
|
+
}
|
|
94
|
+
// Temporarily expose input value. Use with caution.
|
|
95
|
+
get keyInput() {
|
|
96
|
+
return this._key;
|
|
97
|
+
}
|
|
98
|
+
// value - computed: false, optional: false, required: true
|
|
99
|
+
_value;
|
|
100
|
+
get value() {
|
|
101
|
+
return this.getStringAttribute('value');
|
|
102
|
+
}
|
|
103
|
+
set value(value) {
|
|
104
|
+
this._value = value;
|
|
105
|
+
}
|
|
106
|
+
// Temporarily expose input value. Use with caution.
|
|
107
|
+
get valueInput() {
|
|
108
|
+
return this._value;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
export class DataNewrelicEntityTagList extends cdktf.ComplexList {
|
|
112
|
+
terraformResource;
|
|
113
|
+
terraformAttribute;
|
|
114
|
+
wrapsSet;
|
|
115
|
+
internalValue;
|
|
116
|
+
/**
|
|
117
|
+
* @param terraformResource The parent resource
|
|
118
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
119
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
120
|
+
*/
|
|
121
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
122
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
123
|
+
this.terraformResource = terraformResource;
|
|
124
|
+
this.terraformAttribute = terraformAttribute;
|
|
125
|
+
this.wrapsSet = wrapsSet;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @param index the index of the item to return
|
|
129
|
+
*/
|
|
130
|
+
get(index) {
|
|
131
|
+
return new DataNewrelicEntityTagOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity newrelic_entity}
|
|
136
|
+
*/
|
|
137
|
+
export class DataNewrelicEntity extends cdktf.TerraformDataSource {
|
|
138
|
+
// =================
|
|
139
|
+
// STATIC PROPERTIES
|
|
140
|
+
// =================
|
|
141
|
+
static tfResourceType = "newrelic_entity";
|
|
142
|
+
// ==============
|
|
143
|
+
// STATIC Methods
|
|
144
|
+
// ==============
|
|
145
|
+
/**
|
|
146
|
+
* Generates CDKTF code for importing a DataNewrelicEntity resource upon running "cdktf plan <stack-name>"
|
|
147
|
+
* @param scope The scope in which to define this construct
|
|
148
|
+
* @param importToId The construct id used in the generated config for the DataNewrelicEntity to import
|
|
149
|
+
* @param importFromId The id of the existing DataNewrelicEntity that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity#import import section} in the documentation of this resource for the id to use
|
|
150
|
+
* @param provider? Optional instance of the provider where the DataNewrelicEntity to import is found
|
|
151
|
+
*/
|
|
152
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
153
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "newrelic_entity", importId: importFromId, provider });
|
|
154
|
+
}
|
|
155
|
+
// ===========
|
|
156
|
+
// INITIALIZER
|
|
157
|
+
// ===========
|
|
158
|
+
/**
|
|
159
|
+
* Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/entity newrelic_entity} Data Source
|
|
160
|
+
*
|
|
161
|
+
* @param scope The scope in which to define this construct
|
|
162
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
163
|
+
* @param options DataNewrelicEntityConfig
|
|
164
|
+
*/
|
|
165
|
+
constructor(scope, id, config) {
|
|
166
|
+
super(scope, id, {
|
|
167
|
+
terraformResourceType: 'newrelic_entity',
|
|
168
|
+
terraformGeneratorMetadata: {
|
|
169
|
+
providerName: 'newrelic',
|
|
170
|
+
providerVersion: '3.75.4',
|
|
171
|
+
providerVersionConstraint: '3.75.4'
|
|
172
|
+
},
|
|
173
|
+
provider: config.provider,
|
|
174
|
+
dependsOn: config.dependsOn,
|
|
175
|
+
count: config.count,
|
|
176
|
+
lifecycle: config.lifecycle,
|
|
177
|
+
provisioners: config.provisioners,
|
|
178
|
+
connection: config.connection,
|
|
179
|
+
forEach: config.forEach
|
|
180
|
+
});
|
|
181
|
+
this._accountId = config.accountId;
|
|
182
|
+
this._domain = config.domain;
|
|
183
|
+
this._entityTags = config.entityTags;
|
|
184
|
+
this._id = config.id;
|
|
185
|
+
this._ignoreCase = config.ignoreCase;
|
|
186
|
+
this._ignoreNotFound = config.ignoreNotFound;
|
|
187
|
+
this._name = config.name;
|
|
188
|
+
this._type = config.type;
|
|
189
|
+
this._tag.internalValue = config.tag;
|
|
190
|
+
}
|
|
191
|
+
// ==========
|
|
192
|
+
// ATTRIBUTES
|
|
193
|
+
// ==========
|
|
194
|
+
// account_id - computed: true, optional: true, required: false
|
|
195
|
+
_accountId;
|
|
196
|
+
get accountId() {
|
|
197
|
+
return this.getNumberAttribute('account_id');
|
|
198
|
+
}
|
|
199
|
+
set accountId(value) {
|
|
200
|
+
this._accountId = value;
|
|
201
|
+
}
|
|
202
|
+
resetAccountId() {
|
|
203
|
+
this._accountId = undefined;
|
|
204
|
+
}
|
|
205
|
+
// Temporarily expose input value. Use with caution.
|
|
206
|
+
get accountIdInput() {
|
|
207
|
+
return this._accountId;
|
|
208
|
+
}
|
|
209
|
+
// application_id - computed: true, optional: false, required: false
|
|
210
|
+
get applicationId() {
|
|
211
|
+
return this.getNumberAttribute('application_id');
|
|
212
|
+
}
|
|
213
|
+
// domain - computed: true, optional: true, required: false
|
|
214
|
+
_domain;
|
|
215
|
+
get domain() {
|
|
216
|
+
return this.getStringAttribute('domain');
|
|
217
|
+
}
|
|
218
|
+
set domain(value) {
|
|
219
|
+
this._domain = value;
|
|
220
|
+
}
|
|
221
|
+
resetDomain() {
|
|
222
|
+
this._domain = undefined;
|
|
223
|
+
}
|
|
224
|
+
// Temporarily expose input value. Use with caution.
|
|
225
|
+
get domainInput() {
|
|
226
|
+
return this._domain;
|
|
227
|
+
}
|
|
228
|
+
// entity_tags - computed: true, optional: true, required: false
|
|
229
|
+
_entityTags;
|
|
230
|
+
get entityTags() {
|
|
231
|
+
return this.getStringAttribute('entity_tags');
|
|
232
|
+
}
|
|
233
|
+
set entityTags(value) {
|
|
234
|
+
this._entityTags = value;
|
|
235
|
+
}
|
|
236
|
+
resetEntityTags() {
|
|
237
|
+
this._entityTags = undefined;
|
|
238
|
+
}
|
|
239
|
+
// Temporarily expose input value. Use with caution.
|
|
240
|
+
get entityTagsInput() {
|
|
241
|
+
return this._entityTags;
|
|
242
|
+
}
|
|
243
|
+
// guid - computed: true, optional: false, required: false
|
|
244
|
+
get guid() {
|
|
245
|
+
return this.getStringAttribute('guid');
|
|
246
|
+
}
|
|
247
|
+
// id - computed: true, optional: true, required: false
|
|
248
|
+
_id;
|
|
249
|
+
get id() {
|
|
250
|
+
return this.getStringAttribute('id');
|
|
251
|
+
}
|
|
252
|
+
set id(value) {
|
|
253
|
+
this._id = value;
|
|
254
|
+
}
|
|
255
|
+
resetId() {
|
|
256
|
+
this._id = undefined;
|
|
257
|
+
}
|
|
258
|
+
// Temporarily expose input value. Use with caution.
|
|
259
|
+
get idInput() {
|
|
260
|
+
return this._id;
|
|
261
|
+
}
|
|
262
|
+
// ignore_case - computed: false, optional: true, required: false
|
|
263
|
+
_ignoreCase;
|
|
264
|
+
get ignoreCase() {
|
|
265
|
+
return this.getBooleanAttribute('ignore_case');
|
|
266
|
+
}
|
|
267
|
+
set ignoreCase(value) {
|
|
268
|
+
this._ignoreCase = value;
|
|
269
|
+
}
|
|
270
|
+
resetIgnoreCase() {
|
|
271
|
+
this._ignoreCase = undefined;
|
|
272
|
+
}
|
|
273
|
+
// Temporarily expose input value. Use with caution.
|
|
274
|
+
get ignoreCaseInput() {
|
|
275
|
+
return this._ignoreCase;
|
|
276
|
+
}
|
|
277
|
+
// ignore_not_found - computed: false, optional: true, required: false
|
|
278
|
+
_ignoreNotFound;
|
|
279
|
+
get ignoreNotFound() {
|
|
280
|
+
return this.getBooleanAttribute('ignore_not_found');
|
|
281
|
+
}
|
|
282
|
+
set ignoreNotFound(value) {
|
|
283
|
+
this._ignoreNotFound = value;
|
|
284
|
+
}
|
|
285
|
+
resetIgnoreNotFound() {
|
|
286
|
+
this._ignoreNotFound = undefined;
|
|
287
|
+
}
|
|
288
|
+
// Temporarily expose input value. Use with caution.
|
|
289
|
+
get ignoreNotFoundInput() {
|
|
290
|
+
return this._ignoreNotFound;
|
|
291
|
+
}
|
|
292
|
+
// name - computed: false, optional: false, required: true
|
|
293
|
+
_name;
|
|
294
|
+
get name() {
|
|
295
|
+
return this.getStringAttribute('name');
|
|
296
|
+
}
|
|
297
|
+
set name(value) {
|
|
298
|
+
this._name = value;
|
|
299
|
+
}
|
|
300
|
+
// Temporarily expose input value. Use with caution.
|
|
301
|
+
get nameInput() {
|
|
302
|
+
return this._name;
|
|
303
|
+
}
|
|
304
|
+
// serving_apm_application_id - computed: true, optional: false, required: false
|
|
305
|
+
get servingApmApplicationId() {
|
|
306
|
+
return this.getNumberAttribute('serving_apm_application_id');
|
|
307
|
+
}
|
|
308
|
+
// type - computed: true, optional: true, required: false
|
|
309
|
+
_type;
|
|
310
|
+
get type() {
|
|
311
|
+
return this.getStringAttribute('type');
|
|
312
|
+
}
|
|
313
|
+
set type(value) {
|
|
314
|
+
this._type = value;
|
|
315
|
+
}
|
|
316
|
+
resetType() {
|
|
317
|
+
this._type = undefined;
|
|
318
|
+
}
|
|
319
|
+
// Temporarily expose input value. Use with caution.
|
|
320
|
+
get typeInput() {
|
|
321
|
+
return this._type;
|
|
322
|
+
}
|
|
323
|
+
// tag - computed: false, optional: true, required: false
|
|
324
|
+
_tag = new DataNewrelicEntityTagList(this, "tag", false);
|
|
325
|
+
get tag() {
|
|
326
|
+
return this._tag;
|
|
327
|
+
}
|
|
328
|
+
putTag(value) {
|
|
329
|
+
this._tag.internalValue = value;
|
|
330
|
+
}
|
|
331
|
+
resetTag() {
|
|
332
|
+
this._tag.internalValue = undefined;
|
|
333
|
+
}
|
|
334
|
+
// Temporarily expose input value. Use with caution.
|
|
335
|
+
get tagInput() {
|
|
336
|
+
return this._tag.internalValue;
|
|
337
|
+
}
|
|
338
|
+
// =========
|
|
339
|
+
// SYNTHESIS
|
|
340
|
+
// =========
|
|
341
|
+
synthesizeAttributes() {
|
|
342
|
+
return {
|
|
343
|
+
account_id: cdktf.numberToTerraform(this._accountId),
|
|
344
|
+
domain: cdktf.stringToTerraform(this._domain),
|
|
345
|
+
entity_tags: cdktf.stringToTerraform(this._entityTags),
|
|
346
|
+
id: cdktf.stringToTerraform(this._id),
|
|
347
|
+
ignore_case: cdktf.booleanToTerraform(this._ignoreCase),
|
|
348
|
+
ignore_not_found: cdktf.booleanToTerraform(this._ignoreNotFound),
|
|
349
|
+
name: cdktf.stringToTerraform(this._name),
|
|
350
|
+
type: cdktf.stringToTerraform(this._type),
|
|
351
|
+
tag: cdktf.listMapper(dataNewrelicEntityTagToTerraform, true)(this._tag.internalValue),
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
synthesizeHclAttributes() {
|
|
355
|
+
const attrs = {
|
|
356
|
+
account_id: {
|
|
357
|
+
value: cdktf.numberToHclTerraform(this._accountId),
|
|
358
|
+
isBlock: false,
|
|
359
|
+
type: "simple",
|
|
360
|
+
storageClassType: "number",
|
|
361
|
+
},
|
|
362
|
+
domain: {
|
|
363
|
+
value: cdktf.stringToHclTerraform(this._domain),
|
|
364
|
+
isBlock: false,
|
|
365
|
+
type: "simple",
|
|
366
|
+
storageClassType: "string",
|
|
367
|
+
},
|
|
368
|
+
entity_tags: {
|
|
369
|
+
value: cdktf.stringToHclTerraform(this._entityTags),
|
|
370
|
+
isBlock: false,
|
|
371
|
+
type: "simple",
|
|
372
|
+
storageClassType: "string",
|
|
373
|
+
},
|
|
374
|
+
id: {
|
|
375
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
376
|
+
isBlock: false,
|
|
377
|
+
type: "simple",
|
|
378
|
+
storageClassType: "string",
|
|
379
|
+
},
|
|
380
|
+
ignore_case: {
|
|
381
|
+
value: cdktf.booleanToHclTerraform(this._ignoreCase),
|
|
382
|
+
isBlock: false,
|
|
383
|
+
type: "simple",
|
|
384
|
+
storageClassType: "boolean",
|
|
385
|
+
},
|
|
386
|
+
ignore_not_found: {
|
|
387
|
+
value: cdktf.booleanToHclTerraform(this._ignoreNotFound),
|
|
388
|
+
isBlock: false,
|
|
389
|
+
type: "simple",
|
|
390
|
+
storageClassType: "boolean",
|
|
391
|
+
},
|
|
392
|
+
name: {
|
|
393
|
+
value: cdktf.stringToHclTerraform(this._name),
|
|
394
|
+
isBlock: false,
|
|
395
|
+
type: "simple",
|
|
396
|
+
storageClassType: "string",
|
|
397
|
+
},
|
|
398
|
+
type: {
|
|
399
|
+
value: cdktf.stringToHclTerraform(this._type),
|
|
400
|
+
isBlock: false,
|
|
401
|
+
type: "simple",
|
|
402
|
+
storageClassType: "string",
|
|
403
|
+
},
|
|
404
|
+
tag: {
|
|
405
|
+
value: cdktf.listMapperHcl(dataNewrelicEntityTagToHclTerraform, true)(this._tag.internalValue),
|
|
406
|
+
isBlock: true,
|
|
407
|
+
type: "list",
|
|
408
|
+
storageClassType: "DataNewrelicEntityTagList",
|
|
409
|
+
},
|
|
410
|
+
};
|
|
411
|
+
// remove undefined attributes
|
|
412
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
413
|
+
}
|
|
414
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface DataNewrelicGroupConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* The ID of the Authentication Domain the group 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/group#authentication_domain_id DataNewrelicGroup#authentication_domain_id}
|
|
8
|
+
*/
|
|
9
|
+
readonly authenticationDomainId: string;
|
|
10
|
+
/**
|
|
11
|
+
* The name of the group to be queried.
|
|
12
|
+
*
|
|
13
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/group#name DataNewrelicGroup#name}
|
|
14
|
+
*/
|
|
15
|
+
readonly name: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/group newrelic_group}
|
|
19
|
+
*/
|
|
20
|
+
export declare class DataNewrelicGroup extends cdktf.TerraformDataSource {
|
|
21
|
+
static readonly tfResourceType = "newrelic_group";
|
|
22
|
+
/**
|
|
23
|
+
* Generates CDKTF code for importing a DataNewrelicGroup resource upon running "cdktf plan <stack-name>"
|
|
24
|
+
* @param scope The scope in which to define this construct
|
|
25
|
+
* @param importToId The construct id used in the generated config for the DataNewrelicGroup to import
|
|
26
|
+
* @param importFromId The id of the existing DataNewrelicGroup that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/group#import import section} in the documentation of this resource for the id to use
|
|
27
|
+
* @param provider? Optional instance of the provider where the DataNewrelicGroup to import is found
|
|
28
|
+
*/
|
|
29
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
30
|
+
/**
|
|
31
|
+
* Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/group newrelic_group} Data Source
|
|
32
|
+
*
|
|
33
|
+
* @param scope The scope in which to define this construct
|
|
34
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
35
|
+
* @param options DataNewrelicGroupConfig
|
|
36
|
+
*/
|
|
37
|
+
constructor(scope: Construct, id: string, config: DataNewrelicGroupConfig);
|
|
38
|
+
private _authenticationDomainId?;
|
|
39
|
+
get authenticationDomainId(): string;
|
|
40
|
+
set authenticationDomainId(value: string);
|
|
41
|
+
get authenticationDomainIdInput(): string;
|
|
42
|
+
get id(): any;
|
|
43
|
+
private _name?;
|
|
44
|
+
get name(): string;
|
|
45
|
+
set name(value: string);
|
|
46
|
+
get nameInput(): string;
|
|
47
|
+
get userIds(): any;
|
|
48
|
+
protected synthesizeAttributes(): {
|
|
49
|
+
[name: string]: any;
|
|
50
|
+
};
|
|
51
|
+
protected synthesizeHclAttributes(): {
|
|
52
|
+
[name: string]: any;
|
|
53
|
+
};
|
|
54
|
+
}
|