-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
57,496 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
// https://www.terraform.io/docs/providers/datadog/r/dashboard_json.html | ||
// generated from terraform resource schema | ||
|
||
import { Construct } from 'constructs'; | ||
import * as cdktf from 'cdktf'; | ||
|
||
// Configuration | ||
|
||
export interface DashboardJsonConfig extends cdktf.TerraformMetaArguments { | ||
/** | ||
* The JSON formatted definition of the Dashboard. | ||
* | ||
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/datadog/r/dashboard_json.html#dashboard DashboardJson#dashboard} | ||
*/ | ||
readonly dashboard: string; | ||
/** | ||
* The URL of the dashboard. | ||
* | ||
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/datadog/r/dashboard_json.html#url DashboardJson#url} | ||
*/ | ||
readonly url?: string; | ||
} | ||
|
||
/** | ||
* Represents a {@link https://www.terraform.io/docs/providers/datadog/r/dashboard_json.html datadog_dashboard_json} | ||
*/ | ||
export class DashboardJson extends cdktf.TerraformResource { | ||
|
||
// =========== | ||
// INITIALIZER | ||
// =========== | ||
|
||
/** | ||
* Create a new {@link https://www.terraform.io/docs/providers/datadog/r/dashboard_json.html datadog_dashboard_json} Resource | ||
* | ||
* @param scope The scope in which to define this construct | ||
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope | ||
* @param options DashboardJsonConfig | ||
*/ | ||
public constructor(scope: Construct, id: string, config: DashboardJsonConfig) { | ||
super(scope, id, { | ||
terraformResourceType: 'datadog_dashboard_json', | ||
terraformGeneratorMetadata: { | ||
providerName: 'datadog' | ||
}, | ||
provider: config.provider, | ||
dependsOn: config.dependsOn, | ||
count: config.count, | ||
lifecycle: config.lifecycle | ||
}); | ||
this._dashboard = config.dashboard; | ||
this._url = config.url; | ||
} | ||
|
||
// ========== | ||
// ATTRIBUTES | ||
// ========== | ||
|
||
// dashboard - computed: false, optional: false, required: true | ||
private _dashboard: string; | ||
public get dashboard() { | ||
return this.getStringAttribute('dashboard'); | ||
} | ||
public set dashboard(value: string) { | ||
this._dashboard = value; | ||
} | ||
// Temporarily expose input value. Use with caution. | ||
public get dashboardInput() { | ||
return this._dashboard | ||
} | ||
|
||
// id - computed: true, optional: true, required: false | ||
public get id() { | ||
return this.getStringAttribute('id'); | ||
} | ||
|
||
// url - computed: true, optional: true, required: false | ||
private _url?: string; | ||
public get url() { | ||
return this.getStringAttribute('url'); | ||
} | ||
public set url(value: string) { | ||
this._url = value; | ||
} | ||
public resetUrl() { | ||
this._url = undefined; | ||
} | ||
// Temporarily expose input value. Use with caution. | ||
public get urlInput() { | ||
return this._url | ||
} | ||
|
||
// ========= | ||
// SYNTHESIS | ||
// ========= | ||
|
||
protected synthesizeAttributes(): { [name: string]: any } { | ||
return { | ||
dashboard: cdktf.stringToTerraform(this._dashboard), | ||
url: cdktf.stringToTerraform(this._url), | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
// https://www.terraform.io/docs/providers/datadog/r/dashboard_list.html | ||
// generated from terraform resource schema | ||
|
||
import { Construct } from 'constructs'; | ||
import * as cdktf from 'cdktf'; | ||
|
||
// Configuration | ||
|
||
export interface DashboardListConfig extends cdktf.TerraformMetaArguments { | ||
/** | ||
* The name of the Dashboard List | ||
* | ||
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/datadog/r/dashboard_list.html#name DashboardList#name} | ||
*/ | ||
readonly name: string; | ||
/** | ||
* dash_item block | ||
* | ||
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/datadog/r/dashboard_list.html#dash_item DashboardList#dash_item} | ||
*/ | ||
readonly dashItem?: DashboardListDashItem[]; | ||
} | ||
export interface DashboardListDashItem { | ||
/** | ||
* The ID of the dashboard to add | ||
* | ||
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/datadog/r/dashboard_list.html#dash_id DashboardList#dash_id} | ||
*/ | ||
readonly dashId: string; | ||
/** | ||
* The type of this dashboard. Available options are: `custom_timeboard`, `custom_screenboard`, `integration_screenboard`, `integration_timeboard`, and `host_timeboard` | ||
* | ||
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/datadog/r/dashboard_list.html#type DashboardList#type} | ||
*/ | ||
readonly type: string; | ||
} | ||
|
||
function dashboardListDashItemToTerraform(struct?: DashboardListDashItem): any { | ||
if (!cdktf.canInspect(struct)) { return struct; } | ||
return { | ||
dash_id: cdktf.stringToTerraform(struct!.dashId), | ||
type: cdktf.stringToTerraform(struct!.type), | ||
} | ||
} | ||
|
||
|
||
/** | ||
* Represents a {@link https://www.terraform.io/docs/providers/datadog/r/dashboard_list.html datadog_dashboard_list} | ||
*/ | ||
export class DashboardList extends cdktf.TerraformResource { | ||
|
||
// =========== | ||
// INITIALIZER | ||
// =========== | ||
|
||
/** | ||
* Create a new {@link https://www.terraform.io/docs/providers/datadog/r/dashboard_list.html datadog_dashboard_list} Resource | ||
* | ||
* @param scope The scope in which to define this construct | ||
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope | ||
* @param options DashboardListConfig | ||
*/ | ||
public constructor(scope: Construct, id: string, config: DashboardListConfig) { | ||
super(scope, id, { | ||
terraformResourceType: 'datadog_dashboard_list', | ||
terraformGeneratorMetadata: { | ||
providerName: 'datadog' | ||
}, | ||
provider: config.provider, | ||
dependsOn: config.dependsOn, | ||
count: config.count, | ||
lifecycle: config.lifecycle | ||
}); | ||
this._name = config.name; | ||
this._dashItem = config.dashItem; | ||
} | ||
|
||
// ========== | ||
// ATTRIBUTES | ||
// ========== | ||
|
||
// id - computed: true, optional: true, required: false | ||
public get id() { | ||
return this.getStringAttribute('id'); | ||
} | ||
|
||
// name - computed: false, optional: false, required: true | ||
private _name: string; | ||
public get name() { | ||
return this.getStringAttribute('name'); | ||
} | ||
public set name(value: string) { | ||
this._name = value; | ||
} | ||
// Temporarily expose input value. Use with caution. | ||
public get nameInput() { | ||
return this._name | ||
} | ||
|
||
// dash_item - computed: false, optional: true, required: false | ||
private _dashItem?: DashboardListDashItem[]; | ||
public get dashItem() { | ||
return this.interpolationForAttribute('dash_item') as any; | ||
} | ||
public set dashItem(value: DashboardListDashItem[] ) { | ||
this._dashItem = value; | ||
} | ||
public resetDashItem() { | ||
this._dashItem = undefined; | ||
} | ||
// Temporarily expose input value. Use with caution. | ||
public get dashItemInput() { | ||
return this._dashItem | ||
} | ||
|
||
// ========= | ||
// SYNTHESIS | ||
// ========= | ||
|
||
protected synthesizeAttributes(): { [name: string]: any } { | ||
return { | ||
name: cdktf.stringToTerraform(this._name), | ||
dash_item: cdktf.listMapper(dashboardListDashItemToTerraform)(this._dashItem), | ||
}; | ||
} | ||
} |
Oops, something went wrong.