@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,132 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface SyntheticsSecureCredentialConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* The New Relic account ID where you want to create the secure credential.
|
|
6
|
+
*
|
|
7
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_secure_credential#account_id SyntheticsSecureCredential#account_id}
|
|
8
|
+
*/
|
|
9
|
+
readonly accountId?: number;
|
|
10
|
+
/**
|
|
11
|
+
* The secure credential's description.
|
|
12
|
+
*
|
|
13
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_secure_credential#description SyntheticsSecureCredential#description}
|
|
14
|
+
*/
|
|
15
|
+
readonly description?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_secure_credential#id SyntheticsSecureCredential#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 secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.
|
|
25
|
+
*
|
|
26
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_secure_credential#key SyntheticsSecureCredential#key}
|
|
27
|
+
*/
|
|
28
|
+
readonly key: string;
|
|
29
|
+
/**
|
|
30
|
+
* The time the secure credential was last updated.
|
|
31
|
+
*
|
|
32
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_secure_credential#last_updated SyntheticsSecureCredential#last_updated}
|
|
33
|
+
*/
|
|
34
|
+
readonly lastUpdated?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The secure credential's value.
|
|
37
|
+
*
|
|
38
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_secure_credential#value SyntheticsSecureCredential#value}
|
|
39
|
+
*/
|
|
40
|
+
readonly value: string;
|
|
41
|
+
/**
|
|
42
|
+
* timeouts block
|
|
43
|
+
*
|
|
44
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_secure_credential#timeouts SyntheticsSecureCredential#timeouts}
|
|
45
|
+
*/
|
|
46
|
+
readonly timeouts?: SyntheticsSecureCredentialTimeouts;
|
|
47
|
+
}
|
|
48
|
+
export interface SyntheticsSecureCredentialTimeouts {
|
|
49
|
+
/**
|
|
50
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_secure_credential#read SyntheticsSecureCredential#read}
|
|
51
|
+
*/
|
|
52
|
+
readonly read?: string;
|
|
53
|
+
}
|
|
54
|
+
export declare function syntheticsSecureCredentialTimeoutsToTerraform(struct?: SyntheticsSecureCredentialTimeouts | cdktf.IResolvable): any;
|
|
55
|
+
export declare function syntheticsSecureCredentialTimeoutsToHclTerraform(struct?: SyntheticsSecureCredentialTimeouts | cdktf.IResolvable): any;
|
|
56
|
+
export declare class SyntheticsSecureCredentialTimeoutsOutputReference extends cdktf.ComplexObject {
|
|
57
|
+
private isEmptyObject;
|
|
58
|
+
private resolvableValue?;
|
|
59
|
+
/**
|
|
60
|
+
* @param terraformResource The parent resource
|
|
61
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
62
|
+
*/
|
|
63
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
|
|
64
|
+
get internalValue(): SyntheticsSecureCredentialTimeouts | cdktf.IResolvable | undefined;
|
|
65
|
+
set internalValue(value: SyntheticsSecureCredentialTimeouts | cdktf.IResolvable | undefined);
|
|
66
|
+
private _read?;
|
|
67
|
+
get read(): string;
|
|
68
|
+
set read(value: string);
|
|
69
|
+
resetRead(): void;
|
|
70
|
+
get readInput(): string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_secure_credential newrelic_synthetics_secure_credential}
|
|
74
|
+
*/
|
|
75
|
+
export declare class SyntheticsSecureCredential extends cdktf.TerraformResource {
|
|
76
|
+
static readonly tfResourceType = "newrelic_synthetics_secure_credential";
|
|
77
|
+
/**
|
|
78
|
+
* Generates CDKTF code for importing a SyntheticsSecureCredential resource upon running "cdktf plan <stack-name>"
|
|
79
|
+
* @param scope The scope in which to define this construct
|
|
80
|
+
* @param importToId The construct id used in the generated config for the SyntheticsSecureCredential to import
|
|
81
|
+
* @param importFromId The id of the existing SyntheticsSecureCredential that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_secure_credential#import import section} in the documentation of this resource for the id to use
|
|
82
|
+
* @param provider? Optional instance of the provider where the SyntheticsSecureCredential to import is found
|
|
83
|
+
*/
|
|
84
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
85
|
+
/**
|
|
86
|
+
* Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_secure_credential newrelic_synthetics_secure_credential} Resource
|
|
87
|
+
*
|
|
88
|
+
* @param scope The scope in which to define this construct
|
|
89
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
90
|
+
* @param options SyntheticsSecureCredentialConfig
|
|
91
|
+
*/
|
|
92
|
+
constructor(scope: Construct, id: string, config: SyntheticsSecureCredentialConfig);
|
|
93
|
+
private _accountId?;
|
|
94
|
+
get accountId(): number;
|
|
95
|
+
set accountId(value: number);
|
|
96
|
+
resetAccountId(): void;
|
|
97
|
+
get accountIdInput(): number;
|
|
98
|
+
private _description?;
|
|
99
|
+
get description(): string;
|
|
100
|
+
set description(value: string);
|
|
101
|
+
resetDescription(): void;
|
|
102
|
+
get descriptionInput(): string;
|
|
103
|
+
private _id?;
|
|
104
|
+
get id(): string;
|
|
105
|
+
set id(value: string);
|
|
106
|
+
resetId(): void;
|
|
107
|
+
get idInput(): string;
|
|
108
|
+
private _key?;
|
|
109
|
+
get key(): string;
|
|
110
|
+
set key(value: string);
|
|
111
|
+
get keyInput(): string;
|
|
112
|
+
private _lastUpdated?;
|
|
113
|
+
get lastUpdated(): string;
|
|
114
|
+
set lastUpdated(value: string);
|
|
115
|
+
resetLastUpdated(): void;
|
|
116
|
+
get lastUpdatedInput(): string;
|
|
117
|
+
private _value?;
|
|
118
|
+
get value(): string;
|
|
119
|
+
set value(value: string);
|
|
120
|
+
get valueInput(): string;
|
|
121
|
+
private _timeouts;
|
|
122
|
+
get timeouts(): SyntheticsSecureCredentialTimeoutsOutputReference;
|
|
123
|
+
putTimeouts(value: SyntheticsSecureCredentialTimeouts): void;
|
|
124
|
+
resetTimeouts(): void;
|
|
125
|
+
get timeoutsInput(): any;
|
|
126
|
+
protected synthesizeAttributes(): {
|
|
127
|
+
[name: string]: any;
|
|
128
|
+
};
|
|
129
|
+
protected synthesizeHclAttributes(): {
|
|
130
|
+
[name: string]: any;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_secure_credential
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function syntheticsSecureCredentialTimeoutsToTerraform(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
|
+
read: cdktf.stringToTerraform(struct.read),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export function syntheticsSecureCredentialTimeoutsToHclTerraform(struct) {
|
|
16
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
17
|
+
return struct;
|
|
18
|
+
}
|
|
19
|
+
if (cdktf.isComplexElement(struct)) {
|
|
20
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
21
|
+
}
|
|
22
|
+
const attrs = {
|
|
23
|
+
read: {
|
|
24
|
+
value: cdktf.stringToHclTerraform(struct.read),
|
|
25
|
+
isBlock: false,
|
|
26
|
+
type: "simple",
|
|
27
|
+
storageClassType: "string",
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
// remove undefined attributes
|
|
31
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
32
|
+
}
|
|
33
|
+
export class SyntheticsSecureCredentialTimeoutsOutputReference extends cdktf.ComplexObject {
|
|
34
|
+
isEmptyObject = false;
|
|
35
|
+
resolvableValue;
|
|
36
|
+
/**
|
|
37
|
+
* @param terraformResource The parent resource
|
|
38
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
39
|
+
*/
|
|
40
|
+
constructor(terraformResource, terraformAttribute) {
|
|
41
|
+
super(terraformResource, terraformAttribute, false);
|
|
42
|
+
}
|
|
43
|
+
get internalValue() {
|
|
44
|
+
if (this.resolvableValue) {
|
|
45
|
+
return this.resolvableValue;
|
|
46
|
+
}
|
|
47
|
+
let hasAnyValues = this.isEmptyObject;
|
|
48
|
+
const internalValueResult = {};
|
|
49
|
+
if (this._read !== undefined) {
|
|
50
|
+
hasAnyValues = true;
|
|
51
|
+
internalValueResult.read = this._read;
|
|
52
|
+
}
|
|
53
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
54
|
+
}
|
|
55
|
+
set internalValue(value) {
|
|
56
|
+
if (value === undefined) {
|
|
57
|
+
this.isEmptyObject = false;
|
|
58
|
+
this.resolvableValue = undefined;
|
|
59
|
+
this._read = undefined;
|
|
60
|
+
}
|
|
61
|
+
else if (cdktf.Tokenization.isResolvable(value)) {
|
|
62
|
+
this.isEmptyObject = false;
|
|
63
|
+
this.resolvableValue = value;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
67
|
+
this.resolvableValue = undefined;
|
|
68
|
+
this._read = value.read;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
// read - computed: false, optional: true, required: false
|
|
72
|
+
_read;
|
|
73
|
+
get read() {
|
|
74
|
+
return this.getStringAttribute('read');
|
|
75
|
+
}
|
|
76
|
+
set read(value) {
|
|
77
|
+
this._read = value;
|
|
78
|
+
}
|
|
79
|
+
resetRead() {
|
|
80
|
+
this._read = undefined;
|
|
81
|
+
}
|
|
82
|
+
// Temporarily expose input value. Use with caution.
|
|
83
|
+
get readInput() {
|
|
84
|
+
return this._read;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_secure_credential newrelic_synthetics_secure_credential}
|
|
89
|
+
*/
|
|
90
|
+
export class SyntheticsSecureCredential extends cdktf.TerraformResource {
|
|
91
|
+
// =================
|
|
92
|
+
// STATIC PROPERTIES
|
|
93
|
+
// =================
|
|
94
|
+
static tfResourceType = "newrelic_synthetics_secure_credential";
|
|
95
|
+
// ==============
|
|
96
|
+
// STATIC Methods
|
|
97
|
+
// ==============
|
|
98
|
+
/**
|
|
99
|
+
* Generates CDKTF code for importing a SyntheticsSecureCredential resource upon running "cdktf plan <stack-name>"
|
|
100
|
+
* @param scope The scope in which to define this construct
|
|
101
|
+
* @param importToId The construct id used in the generated config for the SyntheticsSecureCredential to import
|
|
102
|
+
* @param importFromId The id of the existing SyntheticsSecureCredential that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_secure_credential#import import section} in the documentation of this resource for the id to use
|
|
103
|
+
* @param provider? Optional instance of the provider where the SyntheticsSecureCredential to import is found
|
|
104
|
+
*/
|
|
105
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
106
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "newrelic_synthetics_secure_credential", importId: importFromId, provider });
|
|
107
|
+
}
|
|
108
|
+
// ===========
|
|
109
|
+
// INITIALIZER
|
|
110
|
+
// ===========
|
|
111
|
+
/**
|
|
112
|
+
* Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_secure_credential newrelic_synthetics_secure_credential} Resource
|
|
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 SyntheticsSecureCredentialConfig
|
|
117
|
+
*/
|
|
118
|
+
constructor(scope, id, config) {
|
|
119
|
+
super(scope, id, {
|
|
120
|
+
terraformResourceType: 'newrelic_synthetics_secure_credential',
|
|
121
|
+
terraformGeneratorMetadata: {
|
|
122
|
+
providerName: 'newrelic',
|
|
123
|
+
providerVersion: '3.75.4',
|
|
124
|
+
providerVersionConstraint: '3.75.4'
|
|
125
|
+
},
|
|
126
|
+
provider: config.provider,
|
|
127
|
+
dependsOn: config.dependsOn,
|
|
128
|
+
count: config.count,
|
|
129
|
+
lifecycle: config.lifecycle,
|
|
130
|
+
provisioners: config.provisioners,
|
|
131
|
+
connection: config.connection,
|
|
132
|
+
forEach: config.forEach
|
|
133
|
+
});
|
|
134
|
+
this._accountId = config.accountId;
|
|
135
|
+
this._description = config.description;
|
|
136
|
+
this._id = config.id;
|
|
137
|
+
this._key = config.key;
|
|
138
|
+
this._lastUpdated = config.lastUpdated;
|
|
139
|
+
this._value = config.value;
|
|
140
|
+
this._timeouts.internalValue = config.timeouts;
|
|
141
|
+
}
|
|
142
|
+
// ==========
|
|
143
|
+
// ATTRIBUTES
|
|
144
|
+
// ==========
|
|
145
|
+
// account_id - computed: true, optional: true, required: false
|
|
146
|
+
_accountId;
|
|
147
|
+
get accountId() {
|
|
148
|
+
return this.getNumberAttribute('account_id');
|
|
149
|
+
}
|
|
150
|
+
set accountId(value) {
|
|
151
|
+
this._accountId = value;
|
|
152
|
+
}
|
|
153
|
+
resetAccountId() {
|
|
154
|
+
this._accountId = undefined;
|
|
155
|
+
}
|
|
156
|
+
// Temporarily expose input value. Use with caution.
|
|
157
|
+
get accountIdInput() {
|
|
158
|
+
return this._accountId;
|
|
159
|
+
}
|
|
160
|
+
// description - computed: false, optional: true, required: false
|
|
161
|
+
_description;
|
|
162
|
+
get description() {
|
|
163
|
+
return this.getStringAttribute('description');
|
|
164
|
+
}
|
|
165
|
+
set description(value) {
|
|
166
|
+
this._description = value;
|
|
167
|
+
}
|
|
168
|
+
resetDescription() {
|
|
169
|
+
this._description = undefined;
|
|
170
|
+
}
|
|
171
|
+
// Temporarily expose input value. Use with caution.
|
|
172
|
+
get descriptionInput() {
|
|
173
|
+
return this._description;
|
|
174
|
+
}
|
|
175
|
+
// id - computed: true, optional: true, required: false
|
|
176
|
+
_id;
|
|
177
|
+
get id() {
|
|
178
|
+
return this.getStringAttribute('id');
|
|
179
|
+
}
|
|
180
|
+
set id(value) {
|
|
181
|
+
this._id = value;
|
|
182
|
+
}
|
|
183
|
+
resetId() {
|
|
184
|
+
this._id = undefined;
|
|
185
|
+
}
|
|
186
|
+
// Temporarily expose input value. Use with caution.
|
|
187
|
+
get idInput() {
|
|
188
|
+
return this._id;
|
|
189
|
+
}
|
|
190
|
+
// key - computed: false, optional: false, required: true
|
|
191
|
+
_key;
|
|
192
|
+
get key() {
|
|
193
|
+
return this.getStringAttribute('key');
|
|
194
|
+
}
|
|
195
|
+
set key(value) {
|
|
196
|
+
this._key = value;
|
|
197
|
+
}
|
|
198
|
+
// Temporarily expose input value. Use with caution.
|
|
199
|
+
get keyInput() {
|
|
200
|
+
return this._key;
|
|
201
|
+
}
|
|
202
|
+
// last_updated - computed: true, optional: true, required: false
|
|
203
|
+
_lastUpdated;
|
|
204
|
+
get lastUpdated() {
|
|
205
|
+
return this.getStringAttribute('last_updated');
|
|
206
|
+
}
|
|
207
|
+
set lastUpdated(value) {
|
|
208
|
+
this._lastUpdated = value;
|
|
209
|
+
}
|
|
210
|
+
resetLastUpdated() {
|
|
211
|
+
this._lastUpdated = undefined;
|
|
212
|
+
}
|
|
213
|
+
// Temporarily expose input value. Use with caution.
|
|
214
|
+
get lastUpdatedInput() {
|
|
215
|
+
return this._lastUpdated;
|
|
216
|
+
}
|
|
217
|
+
// value - computed: false, optional: false, required: true
|
|
218
|
+
_value;
|
|
219
|
+
get value() {
|
|
220
|
+
return this.getStringAttribute('value');
|
|
221
|
+
}
|
|
222
|
+
set value(value) {
|
|
223
|
+
this._value = value;
|
|
224
|
+
}
|
|
225
|
+
// Temporarily expose input value. Use with caution.
|
|
226
|
+
get valueInput() {
|
|
227
|
+
return this._value;
|
|
228
|
+
}
|
|
229
|
+
// timeouts - computed: false, optional: true, required: false
|
|
230
|
+
_timeouts = new SyntheticsSecureCredentialTimeoutsOutputReference(this, "timeouts");
|
|
231
|
+
get timeouts() {
|
|
232
|
+
return this._timeouts;
|
|
233
|
+
}
|
|
234
|
+
putTimeouts(value) {
|
|
235
|
+
this._timeouts.internalValue = value;
|
|
236
|
+
}
|
|
237
|
+
resetTimeouts() {
|
|
238
|
+
this._timeouts.internalValue = undefined;
|
|
239
|
+
}
|
|
240
|
+
// Temporarily expose input value. Use with caution.
|
|
241
|
+
get timeoutsInput() {
|
|
242
|
+
return this._timeouts.internalValue;
|
|
243
|
+
}
|
|
244
|
+
// =========
|
|
245
|
+
// SYNTHESIS
|
|
246
|
+
// =========
|
|
247
|
+
synthesizeAttributes() {
|
|
248
|
+
return {
|
|
249
|
+
account_id: cdktf.numberToTerraform(this._accountId),
|
|
250
|
+
description: cdktf.stringToTerraform(this._description),
|
|
251
|
+
id: cdktf.stringToTerraform(this._id),
|
|
252
|
+
key: cdktf.stringToTerraform(this._key),
|
|
253
|
+
last_updated: cdktf.stringToTerraform(this._lastUpdated),
|
|
254
|
+
value: cdktf.stringToTerraform(this._value),
|
|
255
|
+
timeouts: syntheticsSecureCredentialTimeoutsToTerraform(this._timeouts.internalValue),
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
synthesizeHclAttributes() {
|
|
259
|
+
const attrs = {
|
|
260
|
+
account_id: {
|
|
261
|
+
value: cdktf.numberToHclTerraform(this._accountId),
|
|
262
|
+
isBlock: false,
|
|
263
|
+
type: "simple",
|
|
264
|
+
storageClassType: "number",
|
|
265
|
+
},
|
|
266
|
+
description: {
|
|
267
|
+
value: cdktf.stringToHclTerraform(this._description),
|
|
268
|
+
isBlock: false,
|
|
269
|
+
type: "simple",
|
|
270
|
+
storageClassType: "string",
|
|
271
|
+
},
|
|
272
|
+
id: {
|
|
273
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
274
|
+
isBlock: false,
|
|
275
|
+
type: "simple",
|
|
276
|
+
storageClassType: "string",
|
|
277
|
+
},
|
|
278
|
+
key: {
|
|
279
|
+
value: cdktf.stringToHclTerraform(this._key),
|
|
280
|
+
isBlock: false,
|
|
281
|
+
type: "simple",
|
|
282
|
+
storageClassType: "string",
|
|
283
|
+
},
|
|
284
|
+
last_updated: {
|
|
285
|
+
value: cdktf.stringToHclTerraform(this._lastUpdated),
|
|
286
|
+
isBlock: false,
|
|
287
|
+
type: "simple",
|
|
288
|
+
storageClassType: "string",
|
|
289
|
+
},
|
|
290
|
+
value: {
|
|
291
|
+
value: cdktf.stringToHclTerraform(this._value),
|
|
292
|
+
isBlock: false,
|
|
293
|
+
type: "simple",
|
|
294
|
+
storageClassType: "string",
|
|
295
|
+
},
|
|
296
|
+
timeouts: {
|
|
297
|
+
value: syntheticsSecureCredentialTimeoutsToHclTerraform(this._timeouts.internalValue),
|
|
298
|
+
isBlock: true,
|
|
299
|
+
type: "struct",
|
|
300
|
+
storageClassType: "SyntheticsSecureCredentialTimeouts",
|
|
301
|
+
},
|
|
302
|
+
};
|
|
303
|
+
// remove undefined attributes
|
|
304
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
305
|
+
}
|
|
306
|
+
}
|