-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.ts
36 lines (27 loc) · 979 Bytes
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) HashiCorp, Inc
// SPDX-License-Identifier: MPL-2.0
import { Construct } from "constructs";
import { App, TerraformStack } from "cdktf";
import {GenesyscloudProvider} from "./.gen/providers/genesyscloud/provider";
import { RoutingQueue } from "./.gen/providers/genesyscloud/routing-queue";
import { TfExport} from "./.gen/providers/genesyscloud/tf-export";
class MyStack extends TerraformStack {
constructor(scope: Construct, id: string) {
super(scope, id);
// define resources here
new GenesyscloudProvider(this,"genesyscloudprovider", {})
new TfExport(this, "myexport", {
directory: "./genesyscloud/export",
resourceTypes: ["genesyscloud_routing_queue"],
includeStateFile: true,
exportAsHcl: true
})
new RoutingQueue(this, "mySimpleCDKQueue",{
name: "MySimpleCDKQueue",
description: "Example Queue built by CDK"
})
}
}
const app = new App();
new MyStack(app, "cdktf");
app.synth();