@cdktf-providers/aviatrixsystems-aviatrix 8.1.10
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/index.d.ts +762 -0
- package/dist/account/index.js +1600 -0
- package/dist/account-user/index.d.ts +74 -0
- package/dist/account-user/index.js +151 -0
- package/dist/aws-guard-duty/index.d.ts +75 -0
- package/dist/aws-guard-duty/index.js +154 -0
- package/dist/aws-peer/index.d.ts +126 -0
- package/dist/aws-peer/index.js +257 -0
- package/dist/aws-tgw/index.d.ts +129 -0
- package/dist/aws-tgw/index.js +267 -0
- package/dist/aws-tgw-connect/index.d.ts +86 -0
- package/dist/aws-tgw-connect/index.js +179 -0
- package/dist/aws-tgw-connect-peer/index.d.ts +126 -0
- package/dist/aws-tgw-connect-peer/index.js +258 -0
- package/dist/aws-tgw-directconnect/index.d.ts +105 -0
- package/dist/aws-tgw-directconnect/index.js +214 -0
- package/dist/aws-tgw-intra-domain-inspection/index.d.ts +74 -0
- package/dist/aws-tgw-intra-domain-inspection/index.js +151 -0
- package/dist/aws-tgw-network-domain/index.d.ts +97 -0
- package/dist/aws-tgw-network-domain/index.js +200 -0
- package/dist/aws-tgw-peering/index.d.ts +64 -0
- package/dist/aws-tgw-peering/index.js +131 -0
- package/dist/aws-tgw-peering-domain-conn/index.d.ts +84 -0
- package/dist/aws-tgw-peering-domain-conn/index.js +171 -0
- package/dist/aws-tgw-transit-gateway-attachment/index.d.ts +94 -0
- package/dist/aws-tgw-transit-gateway-attachment/index.js +191 -0
- package/dist/aws-tgw-vpc-attachment/index.d.ts +160 -0
- package/dist/aws-tgw-vpc-attachment/index.js +329 -0
- package/dist/aws-tgw-vpn-conn/index.d.ts +225 -0
- package/dist/aws-tgw-vpn-conn/index.js +485 -0
- package/dist/azure-peer/index.d.ts +106 -0
- package/dist/azure-peer/index.js +219 -0
- package/dist/azure-spoke-native-peering/index.d.ts +84 -0
- package/dist/azure-spoke-native-peering/index.js +171 -0
- package/dist/azure-vng-conn/index.d.ts +67 -0
- package/dist/azure-vng-conn/index.js +143 -0
- package/dist/centralized-transit-firenet/index.d.ts +64 -0
- package/dist/centralized-transit-firenet/index.js +131 -0
- package/dist/cloudwatch-agent/index.d.ts +87 -0
- package/dist/cloudwatch-agent/index.js +181 -0
- package/dist/controller-access-allow-list-config/index.d.ts +119 -0
- package/dist/controller-access-allow-list-config/index.js +267 -0
- package/dist/controller-bgp-communities-auto-cloud-config/index.d.ts +64 -0
- package/dist/controller-bgp-communities-auto-cloud-config/index.js +131 -0
- package/dist/controller-bgp-communities-global-config/index.d.ts +54 -0
- package/dist/controller-bgp-communities-global-config/index.js +111 -0
- package/dist/controller-bgp-max-as-limit-config/index.d.ts +54 -0
- package/dist/controller-bgp-max-as-limit-config/index.js +111 -0
- package/dist/controller-cert-domain-config/index.d.ts +55 -0
- package/dist/controller-cert-domain-config/index.js +114 -0
- package/dist/controller-config/index.d.ts +267 -0
- package/dist/controller-config/index.js +563 -0
- package/dist/controller-email-config/index.d.ts +99 -0
- package/dist/controller-email-config/index.js +210 -0
- package/dist/controller-email-exception-notification-config/index.d.ts +55 -0
- package/dist/controller-email-exception-notification-config/index.js +114 -0
- package/dist/controller-gateway-keepalive-config/index.d.ts +54 -0
- package/dist/controller-gateway-keepalive-config/index.js +111 -0
- package/dist/controller-private-mode-config/index.d.ts +65 -0
- package/dist/controller-private-mode-config/index.js +134 -0
- package/dist/controller-private-oob/index.d.ts +55 -0
- package/dist/controller-private-oob/index.js +114 -0
- package/dist/controller-security-group-management-config/index.d.ts +65 -0
- package/dist/controller-security-group-management-config/index.js +134 -0
- package/dist/copilot-association/index.d.ts +54 -0
- package/dist/copilot-association/index.js +111 -0
- package/dist/copilot-fault-tolerant-deployment/index.d.ts +212 -0
- package/dist/copilot-fault-tolerant-deployment/index.js +468 -0
- package/dist/copilot-security-group-management-config/index.d.ts +120 -0
- package/dist/copilot-security-group-management-config/index.js +249 -0
- package/dist/copilot-simple-deployment/index.d.ts +138 -0
- package/dist/copilot-simple-deployment/index.js +285 -0
- package/dist/data-aviatrix-account/index.d.ts +73 -0
- package/dist/data-aviatrix-account/index.js +187 -0
- package/dist/data-aviatrix-caller-identity/index.d.ts +45 -0
- package/dist/data-aviatrix-caller-identity/index.js +95 -0
- package/dist/data-aviatrix-controller-metadata/index.d.ts +48 -0
- package/dist/data-aviatrix-controller-metadata/index.js +107 -0
- package/dist/data-aviatrix-device-interfaces/index.d.ts +89 -0
- package/dist/data-aviatrix-device-interfaces/index.js +190 -0
- package/dist/data-aviatrix-edge-gateway-wan-interface-discovery/index.d.ts +65 -0
- package/dist/data-aviatrix-edge-gateway-wan-interface-discovery/index.js +135 -0
- package/dist/data-aviatrix-firenet/index.d.ts +59 -0
- package/dist/data-aviatrix-firenet/index.js +131 -0
- package/dist/data-aviatrix-firenet-firewall-manager/index.d.ts +184 -0
- package/dist/data-aviatrix-firenet-firewall-manager/index.js +381 -0
- package/dist/data-aviatrix-firenet-vendor-integration/index.d.ts +195 -0
- package/dist/data-aviatrix-firenet-vendor-integration/index.js +404 -0
- package/dist/data-aviatrix-firewall/index.d.ts +96 -0
- package/dist/data-aviatrix-firewall/index.js +218 -0
- package/dist/data-aviatrix-firewall-instance-images/index.d.ts +90 -0
- package/dist/data-aviatrix-firewall-instance-images/index.js +194 -0
- package/dist/data-aviatrix-gateway/index.d.ts +135 -0
- package/dist/data-aviatrix-gateway/index.js +432 -0
- package/dist/data-aviatrix-gateway-image/index.d.ts +65 -0
- package/dist/data-aviatrix-gateway-image/index.js +135 -0
- package/dist/data-aviatrix-network-domains/index.d.ts +89 -0
- package/dist/data-aviatrix-network-domains/index.js +210 -0
- package/dist/data-aviatrix-smart-groups/index.d.ts +161 -0
- package/dist/data-aviatrix-smart-groups/index.js +373 -0
- package/dist/data-aviatrix-spoke-gateway/index.d.ts +125 -0
- package/dist/data-aviatrix-spoke-gateway/index.js +392 -0
- package/dist/data-aviatrix-spoke-gateway-inspection-subnets/index.d.ts +55 -0
- package/dist/data-aviatrix-spoke-gateway-inspection-subnets/index.js +115 -0
- package/dist/data-aviatrix-spoke-gateways/index.d.ts +130 -0
- package/dist/data-aviatrix-spoke-gateways/index.js +374 -0
- package/dist/data-aviatrix-transit-gateway/index.d.ts +208 -0
- package/dist/data-aviatrix-transit-gateway/index.js +602 -0
- package/dist/data-aviatrix-transit-gateways/index.d.ts +202 -0
- package/dist/data-aviatrix-transit-gateways/index.js +540 -0
- package/dist/data-aviatrix-vpc/index.d.ts +187 -0
- package/dist/data-aviatrix-vpc/index.js +439 -0
- package/dist/data-aviatrix-vpc-tracker/index.d.ts +165 -0
- package/dist/data-aviatrix-vpc-tracker/index.js +369 -0
- package/dist/datadog-agent/index.d.ts +88 -0
- package/dist/datadog-agent/index.js +184 -0
- package/dist/device-interface-config/index.d.ts +74 -0
- package/dist/device-interface-config/index.js +151 -0
- package/dist/distributed-firewalling-config/index.d.ts +55 -0
- package/dist/distributed-firewalling-config/index.js +114 -0
- package/dist/distributed-firewalling-default-action-rule/index.d.ts +64 -0
- package/dist/distributed-firewalling-default-action-rule/index.js +131 -0
- package/dist/distributed-firewalling-intra-vpc/index.d.ts +117 -0
- package/dist/distributed-firewalling-intra-vpc/index.js +266 -0
- package/dist/distributed-firewalling-origin-cert-enforcement-config/index.d.ts +55 -0
- package/dist/distributed-firewalling-origin-cert-enforcement-config/index.js +114 -0
- package/dist/distributed-firewalling-policy-list/index.d.ts +291 -0
- package/dist/distributed-firewalling-policy-list/index.js +705 -0
- package/dist/distributed-firewalling-proxy-ca-config/index.d.ts +69 -0
- package/dist/distributed-firewalling-proxy-ca-config/index.js +151 -0
- package/dist/edge-csp/index.d.ts +693 -0
- package/dist/edge-csp/index.js +1561 -0
- package/dist/edge-csp-ha/index.d.ts +227 -0
- package/dist/edge-csp-ha/index.js +532 -0
- package/dist/edge-equinix/index.d.ts +651 -0
- package/dist/edge-equinix/index.js +1475 -0
- package/dist/edge-equinix-ha/index.d.ts +227 -0
- package/dist/edge-equinix-ha/index.js +532 -0
- package/dist/edge-gateway-selfmanaged/index.d.ts +607 -0
- package/dist/edge-gateway-selfmanaged/index.js +1378 -0
- package/dist/edge-gateway-selfmanaged-ha/index.d.ts +246 -0
- package/dist/edge-gateway-selfmanaged-ha/index.js +558 -0
- package/dist/edge-megaport/index.d.ts +704 -0
- package/dist/edge-megaport/index.js +1600 -0
- package/dist/edge-megaport-ha/index.d.ts +206 -0
- package/dist/edge-megaport-ha/index.js +479 -0
- package/dist/edge-neo/index.d.ts +669 -0
- package/dist/edge-neo/index.js +1509 -0
- package/dist/edge-neo-device-onboarding/index.d.ts +216 -0
- package/dist/edge-neo-device-onboarding/index.js +489 -0
- package/dist/edge-neo-ha/index.d.ts +227 -0
- package/dist/edge-neo-ha/index.js +532 -0
- package/dist/edge-platform/index.d.ts +691 -0
- package/dist/edge-platform/index.js +1555 -0
- package/dist/edge-platform-device-onboarding/index.d.ts +216 -0
- package/dist/edge-platform-device-onboarding/index.js +489 -0
- package/dist/edge-platform-ha/index.d.ts +227 -0
- package/dist/edge-platform-ha/index.js +532 -0
- package/dist/edge-proxy-profile/index.d.ts +98 -0
- package/dist/edge-proxy-profile/index.js +204 -0
- package/dist/edge-spoke/index.d.ts +434 -0
- package/dist/edge-spoke/index.js +953 -0
- package/dist/edge-spoke-external-device-conn/index.d.ts +371 -0
- package/dist/edge-spoke-external-device-conn/index.js +800 -0
- package/dist/edge-spoke-transit-attachment/index.d.ts +197 -0
- package/dist/edge-spoke-transit-attachment/index.js +411 -0
- package/dist/edge-vm-selfmanaged/index.d.ts +423 -0
- package/dist/edge-vm-selfmanaged/index.js +930 -0
- package/dist/edge-vm-selfmanaged-ha/index.d.ts +202 -0
- package/dist/edge-vm-selfmanaged-ha/index.js +456 -0
- package/dist/edge-zededa/index.d.ts +693 -0
- package/dist/edge-zededa/index.js +1561 -0
- package/dist/edge-zededa-ha/index.d.ts +227 -0
- package/dist/edge-zededa-ha/index.js +532 -0
- package/dist/filebeat-forwarder/index.d.ts +98 -0
- package/dist/filebeat-forwarder/index.js +204 -0
- package/dist/firenet/index.d.ts +120 -0
- package/dist/firenet/index.js +249 -0
- package/dist/firewall/index.d.ts +204 -0
- package/dist/firewall/index.js +467 -0
- package/dist/firewall-instance/index.d.ts +384 -0
- package/dist/firewall-instance/index.js +794 -0
- package/dist/firewall-instance-association/index.d.ts +141 -0
- package/dist/firewall-instance-association/index.js +292 -0
- package/dist/firewall-management-access/index.d.ts +64 -0
- package/dist/firewall-management-access/index.js +131 -0
- package/dist/firewall-policy/index.d.ts +138 -0
- package/dist/firewall-policy/index.js +283 -0
- package/dist/firewall-tag/index.d.ts +118 -0
- package/dist/firewall-tag/index.js +264 -0
- package/dist/fqdn/index.d.ts +237 -0
- package/dist/fqdn/index.js +542 -0
- package/dist/fqdn-global-config/index.d.ts +110 -0
- package/dist/fqdn-global-config/index.js +229 -0
- package/dist/fqdn-pass-through/index.d.ts +64 -0
- package/dist/fqdn-pass-through/index.js +131 -0
- package/dist/fqdn-tag-rule/index.d.ts +95 -0
- package/dist/fqdn-tag-rule/index.js +194 -0
- package/dist/gateway/index.d.ts +913 -0
- package/dist/gateway/index.js +1904 -0
- package/dist/gateway-certificate-config/index.d.ts +64 -0
- package/dist/gateway-certificate-config/index.js +131 -0
- package/dist/gateway-dnat/index.d.ts +319 -0
- package/dist/gateway-dnat/index.js +785 -0
- package/dist/gateway-snat/index.d.ts +342 -0
- package/dist/gateway-snat/index.js +834 -0
- package/dist/geo-vpn/index.d.ts +94 -0
- package/dist/geo-vpn/index.js +191 -0
- package/dist/global-vpc-excluded-instance/index.d.ts +75 -0
- package/dist/global-vpc-excluded-instance/index.js +155 -0
- package/dist/global-vpc-tagging-settings/index.d.ts +64 -0
- package/dist/global-vpc-tagging-settings/index.js +131 -0
- package/dist/index.d.ts +150 -0
- package/dist/index.js +151 -0
- package/dist/kubernetes-cluster/index.d.ts +232 -0
- package/dist/kubernetes-cluster/index.js +534 -0
- package/dist/lazy-index.d.ts +0 -0
- package/dist/lazy-index.js +151 -0
- package/dist/link-hierarchy/index.d.ts +161 -0
- package/dist/link-hierarchy/index.js +370 -0
- package/dist/netflow-agent/index.d.ts +98 -0
- package/dist/netflow-agent/index.js +204 -0
- package/dist/periodic-ping/index.d.ts +74 -0
- package/dist/periodic-ping/index.js +151 -0
- package/dist/private-mode-lb/index.d.ts +159 -0
- package/dist/private-mode-lb/index.js +347 -0
- package/dist/private-mode-multicloud-endpoint/index.d.ts +85 -0
- package/dist/private-mode-multicloud-endpoint/index.js +175 -0
- package/dist/provider/index.d.ts +121 -0
- package/dist/provider/index.js +273 -0
- package/dist/proxy-config/index.d.ts +75 -0
- package/dist/proxy-config/index.js +154 -0
- package/dist/qos-class/index.d.ts +65 -0
- package/dist/qos-class/index.js +135 -0
- package/dist/qos-policy-list/index.d.ts +118 -0
- package/dist/qos-policy-list/index.js +270 -0
- package/dist/rbac-group/index.d.ts +65 -0
- package/dist/rbac-group/index.js +134 -0
- package/dist/rbac-group-access-account-attachment/index.d.ts +64 -0
- package/dist/rbac-group-access-account-attachment/index.js +131 -0
- package/dist/rbac-group-permission-attachment/index.d.ts +64 -0
- package/dist/rbac-group-permission-attachment/index.js +131 -0
- package/dist/rbac-group-user-attachment/index.d.ts +64 -0
- package/dist/rbac-group-user-attachment/index.js +131 -0
- package/dist/remote-syslog/index.d.ts +154 -0
- package/dist/remote-syslog/index.js +323 -0
- package/dist/saml-endpoint/index.d.ts +152 -0
- package/dist/saml-endpoint/index.js +315 -0
- package/dist/segmentation-network-domain/index.d.ts +54 -0
- package/dist/segmentation-network-domain/index.js +111 -0
- package/dist/segmentation-network-domain-association/index.d.ts +75 -0
- package/dist/segmentation-network-domain-association/index.js +154 -0
- package/dist/segmentation-network-domain-connection-policy/index.d.ts +64 -0
- package/dist/segmentation-network-domain-connection-policy/index.js +131 -0
- package/dist/site2cloud/index.d.ts +642 -0
- package/dist/site2cloud/index.js +1335 -0
- package/dist/site2cloud-ca-cert-tag/index.d.ts +112 -0
- package/dist/site2cloud-ca-cert-tag/index.js +256 -0
- package/dist/sla-class/index.d.ts +85 -0
- package/dist/sla-class/index.js +175 -0
- package/dist/smart-group/index.d.ts +336 -0
- package/dist/smart-group/index.js +789 -0
- package/dist/splunk-logging/index.d.ts +100 -0
- package/dist/splunk-logging/index.js +210 -0
- package/dist/spoke-external-device-conn/index.d.ts +638 -0
- package/dist/spoke-external-device-conn/index.js +1361 -0
- package/dist/spoke-gateway/index.d.ts +903 -0
- package/dist/spoke-gateway/index.js +1885 -0
- package/dist/spoke-gateway-subnet-group/index.d.ts +75 -0
- package/dist/spoke-gateway-subnet-group/index.js +154 -0
- package/dist/spoke-ha-gateway/index.d.ts +172 -0
- package/dist/spoke-ha-gateway/index.js +374 -0
- package/dist/spoke-transit-attachment/index.d.ts +131 -0
- package/dist/spoke-transit-attachment/index.js +273 -0
- package/dist/sumologic-forwarder/index.d.ts +98 -0
- package/dist/sumologic-forwarder/index.js +204 -0
- package/dist/traffic-classifier/index.d.ts +239 -0
- package/dist/traffic-classifier/index.js +574 -0
- package/dist/trans-peer/index.d.ts +74 -0
- package/dist/trans-peer/index.js +151 -0
- package/dist/transit-external-device-conn/index.d.ts +694 -0
- package/dist/transit-external-device-conn/index.js +1479 -0
- package/dist/transit-firenet-policy/index.d.ts +64 -0
- package/dist/transit-firenet-policy/index.js +131 -0
- package/dist/transit-gateway/index.d.ts +1566 -0
- package/dist/transit-gateway/index.js +3442 -0
- package/dist/transit-gateway-peering/index.d.ts +240 -0
- package/dist/transit-gateway-peering/index.js +499 -0
- package/dist/tunnel/index.d.ts +78 -0
- package/dist/tunnel/index.js +166 -0
- package/dist/vgw-conn/index.d.ts +158 -0
- package/dist/vgw-conn/index.js +323 -0
- package/dist/vpc/index.d.ts +339 -0
- package/dist/vpc/index.js +758 -0
- package/dist/vpn-cert-download/index.d.ts +66 -0
- package/dist/vpn-cert-download/index.js +137 -0
- package/dist/vpn-profile/index.d.ts +169 -0
- package/dist/vpn-profile/index.js +383 -0
- package/dist/vpn-user/index.d.ts +129 -0
- package/dist/vpn-user/index.js +272 -0
- package/dist/vpn-user-accelerator/index.d.ts +54 -0
- package/dist/vpn-user-accelerator/index.js +111 -0
- package/dist/web-group/index.d.ts +144 -0
- package/dist/web-group/index.js +341 -0
- package/package.json +51 -0
|
@@ -0,0 +1,574 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/aviatrixsystems/aviatrix/8.1.10/docs/resources/traffic_classifier
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function trafficClassifierPoliciesPortRangesToTerraform(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
|
+
high: cdktf.numberToTerraform(struct.high),
|
|
13
|
+
low: cdktf.numberToTerraform(struct.low),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export function trafficClassifierPoliciesPortRangesToHclTerraform(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
|
+
high: {
|
|
25
|
+
value: cdktf.numberToHclTerraform(struct.high),
|
|
26
|
+
isBlock: false,
|
|
27
|
+
type: "simple",
|
|
28
|
+
storageClassType: "number",
|
|
29
|
+
},
|
|
30
|
+
low: {
|
|
31
|
+
value: cdktf.numberToHclTerraform(struct.low),
|
|
32
|
+
isBlock: false,
|
|
33
|
+
type: "simple",
|
|
34
|
+
storageClassType: "number",
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
// remove undefined attributes
|
|
38
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
39
|
+
}
|
|
40
|
+
export class TrafficClassifierPoliciesPortRangesOutputReference 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._high !== undefined) {
|
|
59
|
+
hasAnyValues = true;
|
|
60
|
+
internalValueResult.high = this._high;
|
|
61
|
+
}
|
|
62
|
+
if (this._low !== undefined) {
|
|
63
|
+
hasAnyValues = true;
|
|
64
|
+
internalValueResult.low = this._low;
|
|
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._high = undefined;
|
|
73
|
+
this._low = 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._high = value.high;
|
|
83
|
+
this._low = value.low;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
// high - computed: false, optional: true, required: false
|
|
87
|
+
_high;
|
|
88
|
+
get high() {
|
|
89
|
+
return this.getNumberAttribute('high');
|
|
90
|
+
}
|
|
91
|
+
set high(value) {
|
|
92
|
+
this._high = value;
|
|
93
|
+
}
|
|
94
|
+
resetHigh() {
|
|
95
|
+
this._high = undefined;
|
|
96
|
+
}
|
|
97
|
+
// Temporarily expose input value. Use with caution.
|
|
98
|
+
get highInput() {
|
|
99
|
+
return this._high;
|
|
100
|
+
}
|
|
101
|
+
// low - computed: false, optional: true, required: false
|
|
102
|
+
_low;
|
|
103
|
+
get low() {
|
|
104
|
+
return this.getNumberAttribute('low');
|
|
105
|
+
}
|
|
106
|
+
set low(value) {
|
|
107
|
+
this._low = value;
|
|
108
|
+
}
|
|
109
|
+
resetLow() {
|
|
110
|
+
this._low = undefined;
|
|
111
|
+
}
|
|
112
|
+
// Temporarily expose input value. Use with caution.
|
|
113
|
+
get lowInput() {
|
|
114
|
+
return this._low;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
export class TrafficClassifierPoliciesPortRangesList extends cdktf.ComplexList {
|
|
118
|
+
terraformResource;
|
|
119
|
+
terraformAttribute;
|
|
120
|
+
wrapsSet;
|
|
121
|
+
internalValue;
|
|
122
|
+
/**
|
|
123
|
+
* @param terraformResource The parent resource
|
|
124
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
125
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
126
|
+
*/
|
|
127
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
128
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
129
|
+
this.terraformResource = terraformResource;
|
|
130
|
+
this.terraformAttribute = terraformAttribute;
|
|
131
|
+
this.wrapsSet = wrapsSet;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @param index the index of the item to return
|
|
135
|
+
*/
|
|
136
|
+
get(index) {
|
|
137
|
+
return new TrafficClassifierPoliciesPortRangesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
export function trafficClassifierPoliciesToTerraform(struct) {
|
|
141
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
142
|
+
return struct;
|
|
143
|
+
}
|
|
144
|
+
if (cdktf.isComplexElement(struct)) {
|
|
145
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
destination_smart_group_uuids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.destinationSmartGroupUuids),
|
|
149
|
+
enable_logging: cdktf.booleanToTerraform(struct.enableLogging),
|
|
150
|
+
link_hierarchy_uuid: cdktf.stringToTerraform(struct.linkHierarchyUuid),
|
|
151
|
+
name: cdktf.stringToTerraform(struct.name),
|
|
152
|
+
protocol: cdktf.stringToTerraform(struct.protocol),
|
|
153
|
+
route_type: cdktf.stringToTerraform(struct.routeType),
|
|
154
|
+
sla_class_uuid: cdktf.stringToTerraform(struct.slaClassUuid),
|
|
155
|
+
source_smart_group_uuids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.sourceSmartGroupUuids),
|
|
156
|
+
port_ranges: cdktf.listMapper(trafficClassifierPoliciesPortRangesToTerraform, true)(struct.portRanges),
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
export function trafficClassifierPoliciesToHclTerraform(struct) {
|
|
160
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
161
|
+
return struct;
|
|
162
|
+
}
|
|
163
|
+
if (cdktf.isComplexElement(struct)) {
|
|
164
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
165
|
+
}
|
|
166
|
+
const attrs = {
|
|
167
|
+
destination_smart_group_uuids: {
|
|
168
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.destinationSmartGroupUuids),
|
|
169
|
+
isBlock: false,
|
|
170
|
+
type: "list",
|
|
171
|
+
storageClassType: "stringList",
|
|
172
|
+
},
|
|
173
|
+
enable_logging: {
|
|
174
|
+
value: cdktf.booleanToHclTerraform(struct.enableLogging),
|
|
175
|
+
isBlock: false,
|
|
176
|
+
type: "simple",
|
|
177
|
+
storageClassType: "boolean",
|
|
178
|
+
},
|
|
179
|
+
link_hierarchy_uuid: {
|
|
180
|
+
value: cdktf.stringToHclTerraform(struct.linkHierarchyUuid),
|
|
181
|
+
isBlock: false,
|
|
182
|
+
type: "simple",
|
|
183
|
+
storageClassType: "string",
|
|
184
|
+
},
|
|
185
|
+
name: {
|
|
186
|
+
value: cdktf.stringToHclTerraform(struct.name),
|
|
187
|
+
isBlock: false,
|
|
188
|
+
type: "simple",
|
|
189
|
+
storageClassType: "string",
|
|
190
|
+
},
|
|
191
|
+
protocol: {
|
|
192
|
+
value: cdktf.stringToHclTerraform(struct.protocol),
|
|
193
|
+
isBlock: false,
|
|
194
|
+
type: "simple",
|
|
195
|
+
storageClassType: "string",
|
|
196
|
+
},
|
|
197
|
+
route_type: {
|
|
198
|
+
value: cdktf.stringToHclTerraform(struct.routeType),
|
|
199
|
+
isBlock: false,
|
|
200
|
+
type: "simple",
|
|
201
|
+
storageClassType: "string",
|
|
202
|
+
},
|
|
203
|
+
sla_class_uuid: {
|
|
204
|
+
value: cdktf.stringToHclTerraform(struct.slaClassUuid),
|
|
205
|
+
isBlock: false,
|
|
206
|
+
type: "simple",
|
|
207
|
+
storageClassType: "string",
|
|
208
|
+
},
|
|
209
|
+
source_smart_group_uuids: {
|
|
210
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.sourceSmartGroupUuids),
|
|
211
|
+
isBlock: false,
|
|
212
|
+
type: "list",
|
|
213
|
+
storageClassType: "stringList",
|
|
214
|
+
},
|
|
215
|
+
port_ranges: {
|
|
216
|
+
value: cdktf.listMapperHcl(trafficClassifierPoliciesPortRangesToHclTerraform, true)(struct.portRanges),
|
|
217
|
+
isBlock: true,
|
|
218
|
+
type: "set",
|
|
219
|
+
storageClassType: "TrafficClassifierPoliciesPortRangesList",
|
|
220
|
+
},
|
|
221
|
+
};
|
|
222
|
+
// remove undefined attributes
|
|
223
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
224
|
+
}
|
|
225
|
+
export class TrafficClassifierPoliciesOutputReference extends cdktf.ComplexObject {
|
|
226
|
+
isEmptyObject = false;
|
|
227
|
+
resolvableValue;
|
|
228
|
+
/**
|
|
229
|
+
* @param terraformResource The parent resource
|
|
230
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
231
|
+
* @param complexObjectIndex the index of this item in the list
|
|
232
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
233
|
+
*/
|
|
234
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
235
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
236
|
+
}
|
|
237
|
+
get internalValue() {
|
|
238
|
+
if (this.resolvableValue) {
|
|
239
|
+
return this.resolvableValue;
|
|
240
|
+
}
|
|
241
|
+
let hasAnyValues = this.isEmptyObject;
|
|
242
|
+
const internalValueResult = {};
|
|
243
|
+
if (this._destinationSmartGroupUuids !== undefined) {
|
|
244
|
+
hasAnyValues = true;
|
|
245
|
+
internalValueResult.destinationSmartGroupUuids = this._destinationSmartGroupUuids;
|
|
246
|
+
}
|
|
247
|
+
if (this._enableLogging !== undefined) {
|
|
248
|
+
hasAnyValues = true;
|
|
249
|
+
internalValueResult.enableLogging = this._enableLogging;
|
|
250
|
+
}
|
|
251
|
+
if (this._linkHierarchyUuid !== undefined) {
|
|
252
|
+
hasAnyValues = true;
|
|
253
|
+
internalValueResult.linkHierarchyUuid = this._linkHierarchyUuid;
|
|
254
|
+
}
|
|
255
|
+
if (this._name !== undefined) {
|
|
256
|
+
hasAnyValues = true;
|
|
257
|
+
internalValueResult.name = this._name;
|
|
258
|
+
}
|
|
259
|
+
if (this._protocol !== undefined) {
|
|
260
|
+
hasAnyValues = true;
|
|
261
|
+
internalValueResult.protocol = this._protocol;
|
|
262
|
+
}
|
|
263
|
+
if (this._routeType !== undefined) {
|
|
264
|
+
hasAnyValues = true;
|
|
265
|
+
internalValueResult.routeType = this._routeType;
|
|
266
|
+
}
|
|
267
|
+
if (this._slaClassUuid !== undefined) {
|
|
268
|
+
hasAnyValues = true;
|
|
269
|
+
internalValueResult.slaClassUuid = this._slaClassUuid;
|
|
270
|
+
}
|
|
271
|
+
if (this._sourceSmartGroupUuids !== undefined) {
|
|
272
|
+
hasAnyValues = true;
|
|
273
|
+
internalValueResult.sourceSmartGroupUuids = this._sourceSmartGroupUuids;
|
|
274
|
+
}
|
|
275
|
+
if (this._portRanges?.internalValue !== undefined) {
|
|
276
|
+
hasAnyValues = true;
|
|
277
|
+
internalValueResult.portRanges = this._portRanges?.internalValue;
|
|
278
|
+
}
|
|
279
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
280
|
+
}
|
|
281
|
+
set internalValue(value) {
|
|
282
|
+
if (value === undefined) {
|
|
283
|
+
this.isEmptyObject = false;
|
|
284
|
+
this.resolvableValue = undefined;
|
|
285
|
+
this._destinationSmartGroupUuids = undefined;
|
|
286
|
+
this._enableLogging = undefined;
|
|
287
|
+
this._linkHierarchyUuid = undefined;
|
|
288
|
+
this._name = undefined;
|
|
289
|
+
this._protocol = undefined;
|
|
290
|
+
this._routeType = undefined;
|
|
291
|
+
this._slaClassUuid = undefined;
|
|
292
|
+
this._sourceSmartGroupUuids = undefined;
|
|
293
|
+
this._portRanges.internalValue = undefined;
|
|
294
|
+
}
|
|
295
|
+
else if (cdktf.Tokenization.isResolvable(value)) {
|
|
296
|
+
this.isEmptyObject = false;
|
|
297
|
+
this.resolvableValue = value;
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
301
|
+
this.resolvableValue = undefined;
|
|
302
|
+
this._destinationSmartGroupUuids = value.destinationSmartGroupUuids;
|
|
303
|
+
this._enableLogging = value.enableLogging;
|
|
304
|
+
this._linkHierarchyUuid = value.linkHierarchyUuid;
|
|
305
|
+
this._name = value.name;
|
|
306
|
+
this._protocol = value.protocol;
|
|
307
|
+
this._routeType = value.routeType;
|
|
308
|
+
this._slaClassUuid = value.slaClassUuid;
|
|
309
|
+
this._sourceSmartGroupUuids = value.sourceSmartGroupUuids;
|
|
310
|
+
this._portRanges.internalValue = value.portRanges;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
// destination_smart_group_uuids - computed: false, optional: false, required: true
|
|
314
|
+
_destinationSmartGroupUuids;
|
|
315
|
+
get destinationSmartGroupUuids() {
|
|
316
|
+
return this.getListAttribute('destination_smart_group_uuids');
|
|
317
|
+
}
|
|
318
|
+
set destinationSmartGroupUuids(value) {
|
|
319
|
+
this._destinationSmartGroupUuids = value;
|
|
320
|
+
}
|
|
321
|
+
// Temporarily expose input value. Use with caution.
|
|
322
|
+
get destinationSmartGroupUuidsInput() {
|
|
323
|
+
return this._destinationSmartGroupUuids;
|
|
324
|
+
}
|
|
325
|
+
// enable_logging - computed: false, optional: true, required: false
|
|
326
|
+
_enableLogging;
|
|
327
|
+
get enableLogging() {
|
|
328
|
+
return this.getBooleanAttribute('enable_logging');
|
|
329
|
+
}
|
|
330
|
+
set enableLogging(value) {
|
|
331
|
+
this._enableLogging = value;
|
|
332
|
+
}
|
|
333
|
+
resetEnableLogging() {
|
|
334
|
+
this._enableLogging = undefined;
|
|
335
|
+
}
|
|
336
|
+
// Temporarily expose input value. Use with caution.
|
|
337
|
+
get enableLoggingInput() {
|
|
338
|
+
return this._enableLogging;
|
|
339
|
+
}
|
|
340
|
+
// link_hierarchy_uuid - computed: false, optional: true, required: false
|
|
341
|
+
_linkHierarchyUuid;
|
|
342
|
+
get linkHierarchyUuid() {
|
|
343
|
+
return this.getStringAttribute('link_hierarchy_uuid');
|
|
344
|
+
}
|
|
345
|
+
set linkHierarchyUuid(value) {
|
|
346
|
+
this._linkHierarchyUuid = value;
|
|
347
|
+
}
|
|
348
|
+
resetLinkHierarchyUuid() {
|
|
349
|
+
this._linkHierarchyUuid = undefined;
|
|
350
|
+
}
|
|
351
|
+
// Temporarily expose input value. Use with caution.
|
|
352
|
+
get linkHierarchyUuidInput() {
|
|
353
|
+
return this._linkHierarchyUuid;
|
|
354
|
+
}
|
|
355
|
+
// name - computed: false, optional: false, required: true
|
|
356
|
+
_name;
|
|
357
|
+
get name() {
|
|
358
|
+
return this.getStringAttribute('name');
|
|
359
|
+
}
|
|
360
|
+
set name(value) {
|
|
361
|
+
this._name = value;
|
|
362
|
+
}
|
|
363
|
+
// Temporarily expose input value. Use with caution.
|
|
364
|
+
get nameInput() {
|
|
365
|
+
return this._name;
|
|
366
|
+
}
|
|
367
|
+
// protocol - computed: false, optional: true, required: false
|
|
368
|
+
_protocol;
|
|
369
|
+
get protocol() {
|
|
370
|
+
return this.getStringAttribute('protocol');
|
|
371
|
+
}
|
|
372
|
+
set protocol(value) {
|
|
373
|
+
this._protocol = value;
|
|
374
|
+
}
|
|
375
|
+
resetProtocol() {
|
|
376
|
+
this._protocol = undefined;
|
|
377
|
+
}
|
|
378
|
+
// Temporarily expose input value. Use with caution.
|
|
379
|
+
get protocolInput() {
|
|
380
|
+
return this._protocol;
|
|
381
|
+
}
|
|
382
|
+
// route_type - computed: false, optional: true, required: false
|
|
383
|
+
_routeType;
|
|
384
|
+
get routeType() {
|
|
385
|
+
return this.getStringAttribute('route_type');
|
|
386
|
+
}
|
|
387
|
+
set routeType(value) {
|
|
388
|
+
this._routeType = value;
|
|
389
|
+
}
|
|
390
|
+
resetRouteType() {
|
|
391
|
+
this._routeType = undefined;
|
|
392
|
+
}
|
|
393
|
+
// Temporarily expose input value. Use with caution.
|
|
394
|
+
get routeTypeInput() {
|
|
395
|
+
return this._routeType;
|
|
396
|
+
}
|
|
397
|
+
// sla_class_uuid - computed: false, optional: true, required: false
|
|
398
|
+
_slaClassUuid;
|
|
399
|
+
get slaClassUuid() {
|
|
400
|
+
return this.getStringAttribute('sla_class_uuid');
|
|
401
|
+
}
|
|
402
|
+
set slaClassUuid(value) {
|
|
403
|
+
this._slaClassUuid = value;
|
|
404
|
+
}
|
|
405
|
+
resetSlaClassUuid() {
|
|
406
|
+
this._slaClassUuid = undefined;
|
|
407
|
+
}
|
|
408
|
+
// Temporarily expose input value. Use with caution.
|
|
409
|
+
get slaClassUuidInput() {
|
|
410
|
+
return this._slaClassUuid;
|
|
411
|
+
}
|
|
412
|
+
// source_smart_group_uuids - computed: false, optional: false, required: true
|
|
413
|
+
_sourceSmartGroupUuids;
|
|
414
|
+
get sourceSmartGroupUuids() {
|
|
415
|
+
return this.getListAttribute('source_smart_group_uuids');
|
|
416
|
+
}
|
|
417
|
+
set sourceSmartGroupUuids(value) {
|
|
418
|
+
this._sourceSmartGroupUuids = value;
|
|
419
|
+
}
|
|
420
|
+
// Temporarily expose input value. Use with caution.
|
|
421
|
+
get sourceSmartGroupUuidsInput() {
|
|
422
|
+
return this._sourceSmartGroupUuids;
|
|
423
|
+
}
|
|
424
|
+
// uuid - computed: true, optional: false, required: false
|
|
425
|
+
get uuid() {
|
|
426
|
+
return this.getStringAttribute('uuid');
|
|
427
|
+
}
|
|
428
|
+
// port_ranges - computed: false, optional: true, required: false
|
|
429
|
+
_portRanges = new TrafficClassifierPoliciesPortRangesList(this, "port_ranges", true);
|
|
430
|
+
get portRanges() {
|
|
431
|
+
return this._portRanges;
|
|
432
|
+
}
|
|
433
|
+
putPortRanges(value) {
|
|
434
|
+
this._portRanges.internalValue = value;
|
|
435
|
+
}
|
|
436
|
+
resetPortRanges() {
|
|
437
|
+
this._portRanges.internalValue = undefined;
|
|
438
|
+
}
|
|
439
|
+
// Temporarily expose input value. Use with caution.
|
|
440
|
+
get portRangesInput() {
|
|
441
|
+
return this._portRanges.internalValue;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
export class TrafficClassifierPoliciesList extends cdktf.ComplexList {
|
|
445
|
+
terraformResource;
|
|
446
|
+
terraformAttribute;
|
|
447
|
+
wrapsSet;
|
|
448
|
+
internalValue;
|
|
449
|
+
/**
|
|
450
|
+
* @param terraformResource The parent resource
|
|
451
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
452
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
453
|
+
*/
|
|
454
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
455
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
456
|
+
this.terraformResource = terraformResource;
|
|
457
|
+
this.terraformAttribute = terraformAttribute;
|
|
458
|
+
this.wrapsSet = wrapsSet;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* @param index the index of the item to return
|
|
462
|
+
*/
|
|
463
|
+
get(index) {
|
|
464
|
+
return new TrafficClassifierPoliciesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Represents a {@link https://registry.terraform.io/providers/aviatrixsystems/aviatrix/8.1.10/docs/resources/traffic_classifier aviatrix_traffic_classifier}
|
|
469
|
+
*/
|
|
470
|
+
export class TrafficClassifier extends cdktf.TerraformResource {
|
|
471
|
+
// =================
|
|
472
|
+
// STATIC PROPERTIES
|
|
473
|
+
// =================
|
|
474
|
+
static tfResourceType = "aviatrix_traffic_classifier";
|
|
475
|
+
// ==============
|
|
476
|
+
// STATIC Methods
|
|
477
|
+
// ==============
|
|
478
|
+
/**
|
|
479
|
+
* Generates CDKTF code for importing a TrafficClassifier resource upon running "cdktf plan <stack-name>"
|
|
480
|
+
* @param scope The scope in which to define this construct
|
|
481
|
+
* @param importToId The construct id used in the generated config for the TrafficClassifier to import
|
|
482
|
+
* @param importFromId The id of the existing TrafficClassifier that should be imported. Refer to the {@link https://registry.terraform.io/providers/aviatrixsystems/aviatrix/8.1.10/docs/resources/traffic_classifier#import import section} in the documentation of this resource for the id to use
|
|
483
|
+
* @param provider? Optional instance of the provider where the TrafficClassifier to import is found
|
|
484
|
+
*/
|
|
485
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
486
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aviatrix_traffic_classifier", importId: importFromId, provider });
|
|
487
|
+
}
|
|
488
|
+
// ===========
|
|
489
|
+
// INITIALIZER
|
|
490
|
+
// ===========
|
|
491
|
+
/**
|
|
492
|
+
* Create a new {@link https://registry.terraform.io/providers/aviatrixsystems/aviatrix/8.1.10/docs/resources/traffic_classifier aviatrix_traffic_classifier} Resource
|
|
493
|
+
*
|
|
494
|
+
* @param scope The scope in which to define this construct
|
|
495
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
496
|
+
* @param options TrafficClassifierConfig
|
|
497
|
+
*/
|
|
498
|
+
constructor(scope, id, config) {
|
|
499
|
+
super(scope, id, {
|
|
500
|
+
terraformResourceType: 'aviatrix_traffic_classifier',
|
|
501
|
+
terraformGeneratorMetadata: {
|
|
502
|
+
providerName: 'aviatrix',
|
|
503
|
+
providerVersion: '8.1.10',
|
|
504
|
+
providerVersionConstraint: '8.1.10'
|
|
505
|
+
},
|
|
506
|
+
provider: config.provider,
|
|
507
|
+
dependsOn: config.dependsOn,
|
|
508
|
+
count: config.count,
|
|
509
|
+
lifecycle: config.lifecycle,
|
|
510
|
+
provisioners: config.provisioners,
|
|
511
|
+
connection: config.connection,
|
|
512
|
+
forEach: config.forEach
|
|
513
|
+
});
|
|
514
|
+
this._id = config.id;
|
|
515
|
+
this._policies.internalValue = config.policies;
|
|
516
|
+
}
|
|
517
|
+
// ==========
|
|
518
|
+
// ATTRIBUTES
|
|
519
|
+
// ==========
|
|
520
|
+
// id - computed: true, optional: true, required: false
|
|
521
|
+
_id;
|
|
522
|
+
get id() {
|
|
523
|
+
return this.getStringAttribute('id');
|
|
524
|
+
}
|
|
525
|
+
set id(value) {
|
|
526
|
+
this._id = value;
|
|
527
|
+
}
|
|
528
|
+
resetId() {
|
|
529
|
+
this._id = undefined;
|
|
530
|
+
}
|
|
531
|
+
// Temporarily expose input value. Use with caution.
|
|
532
|
+
get idInput() {
|
|
533
|
+
return this._id;
|
|
534
|
+
}
|
|
535
|
+
// policies - computed: false, optional: false, required: true
|
|
536
|
+
_policies = new TrafficClassifierPoliciesList(this, "policies", false);
|
|
537
|
+
get policies() {
|
|
538
|
+
return this._policies;
|
|
539
|
+
}
|
|
540
|
+
putPolicies(value) {
|
|
541
|
+
this._policies.internalValue = value;
|
|
542
|
+
}
|
|
543
|
+
// Temporarily expose input value. Use with caution.
|
|
544
|
+
get policiesInput() {
|
|
545
|
+
return this._policies.internalValue;
|
|
546
|
+
}
|
|
547
|
+
// =========
|
|
548
|
+
// SYNTHESIS
|
|
549
|
+
// =========
|
|
550
|
+
synthesizeAttributes() {
|
|
551
|
+
return {
|
|
552
|
+
id: cdktf.stringToTerraform(this._id),
|
|
553
|
+
policies: cdktf.listMapper(trafficClassifierPoliciesToTerraform, true)(this._policies.internalValue),
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
synthesizeHclAttributes() {
|
|
557
|
+
const attrs = {
|
|
558
|
+
id: {
|
|
559
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
560
|
+
isBlock: false,
|
|
561
|
+
type: "simple",
|
|
562
|
+
storageClassType: "string",
|
|
563
|
+
},
|
|
564
|
+
policies: {
|
|
565
|
+
value: cdktf.listMapperHcl(trafficClassifierPoliciesToHclTerraform, true)(this._policies.internalValue),
|
|
566
|
+
isBlock: true,
|
|
567
|
+
type: "list",
|
|
568
|
+
storageClassType: "TrafficClassifierPoliciesList",
|
|
569
|
+
},
|
|
570
|
+
};
|
|
571
|
+
// remove undefined attributes
|
|
572
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
573
|
+
}
|
|
574
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface TransPeerConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aviatrixsystems/aviatrix/8.1.10/docs/resources/trans_peer#id TransPeer#id}
|
|
6
|
+
*
|
|
7
|
+
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
8
|
+
* 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.
|
|
9
|
+
*/
|
|
10
|
+
readonly id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Name of nexthop gateway.
|
|
13
|
+
*
|
|
14
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aviatrixsystems/aviatrix/8.1.10/docs/resources/trans_peer#nexthop TransPeer#nexthop}
|
|
15
|
+
*/
|
|
16
|
+
readonly nexthop: string;
|
|
17
|
+
/**
|
|
18
|
+
* Destination CIDR.
|
|
19
|
+
*
|
|
20
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aviatrixsystems/aviatrix/8.1.10/docs/resources/trans_peer#reachable_cidr TransPeer#reachable_cidr}
|
|
21
|
+
*/
|
|
22
|
+
readonly reachableCidr: string;
|
|
23
|
+
/**
|
|
24
|
+
* Name of Source gateway.
|
|
25
|
+
*
|
|
26
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aviatrixsystems/aviatrix/8.1.10/docs/resources/trans_peer#source TransPeer#source}
|
|
27
|
+
*/
|
|
28
|
+
readonly source: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Represents a {@link https://registry.terraform.io/providers/aviatrixsystems/aviatrix/8.1.10/docs/resources/trans_peer aviatrix_trans_peer}
|
|
32
|
+
*/
|
|
33
|
+
export declare class TransPeer extends cdktf.TerraformResource {
|
|
34
|
+
static readonly tfResourceType = "aviatrix_trans_peer";
|
|
35
|
+
/**
|
|
36
|
+
* Generates CDKTF code for importing a TransPeer resource upon running "cdktf plan <stack-name>"
|
|
37
|
+
* @param scope The scope in which to define this construct
|
|
38
|
+
* @param importToId The construct id used in the generated config for the TransPeer to import
|
|
39
|
+
* @param importFromId The id of the existing TransPeer that should be imported. Refer to the {@link https://registry.terraform.io/providers/aviatrixsystems/aviatrix/8.1.10/docs/resources/trans_peer#import import section} in the documentation of this resource for the id to use
|
|
40
|
+
* @param provider? Optional instance of the provider where the TransPeer to import is found
|
|
41
|
+
*/
|
|
42
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
43
|
+
/**
|
|
44
|
+
* Create a new {@link https://registry.terraform.io/providers/aviatrixsystems/aviatrix/8.1.10/docs/resources/trans_peer aviatrix_trans_peer} Resource
|
|
45
|
+
*
|
|
46
|
+
* @param scope The scope in which to define this construct
|
|
47
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
48
|
+
* @param options TransPeerConfig
|
|
49
|
+
*/
|
|
50
|
+
constructor(scope: Construct, id: string, config: TransPeerConfig);
|
|
51
|
+
private _id?;
|
|
52
|
+
get id(): string;
|
|
53
|
+
set id(value: string);
|
|
54
|
+
resetId(): void;
|
|
55
|
+
get idInput(): string;
|
|
56
|
+
private _nexthop?;
|
|
57
|
+
get nexthop(): string;
|
|
58
|
+
set nexthop(value: string);
|
|
59
|
+
get nexthopInput(): string;
|
|
60
|
+
private _reachableCidr?;
|
|
61
|
+
get reachableCidr(): string;
|
|
62
|
+
set reachableCidr(value: string);
|
|
63
|
+
get reachableCidrInput(): string;
|
|
64
|
+
private _source?;
|
|
65
|
+
get source(): string;
|
|
66
|
+
set source(value: string);
|
|
67
|
+
get sourceInput(): string;
|
|
68
|
+
protected synthesizeAttributes(): {
|
|
69
|
+
[name: string]: any;
|
|
70
|
+
};
|
|
71
|
+
protected synthesizeHclAttributes(): {
|
|
72
|
+
[name: string]: any;
|
|
73
|
+
};
|
|
74
|
+
}
|