@cdktf-providers/rancher-rke
Version:
Prebuilt rancher/rke Provider for Terraform CDK (cdktf)
1,318 lines (1,317 loc) • 751 kB
JavaScript
// https://registry.terraform.io/providers/rancher/rke/1.7.5/docs/resources/cluster
// generated from terraform resource schema
import * as cdktf from 'cdktf';
export function clusterCertificatesToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
export function clusterCertificatesToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
export class ClusterCertificatesOutputReference extends cdktf.ComplexObject {
isEmptyObject = false;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// certificate - computed: true, optional: false, required: false
get certificate() {
return this.getStringAttribute('certificate');
}
// common_name - computed: true, optional: false, required: false
get commonName() {
return this.getStringAttribute('common_name');
}
// config - computed: true, optional: false, required: false
get config() {
return this.getStringAttribute('config');
}
// config_env_name - computed: true, optional: false, required: false
get configEnvName() {
return this.getStringAttribute('config_env_name');
}
// config_path - computed: true, optional: false, required: false
get configPath() {
return this.getStringAttribute('config_path');
}
// env_name - computed: true, optional: false, required: false
get envName() {
return this.getStringAttribute('env_name');
}
// id - computed: true, optional: false, required: false
get id() {
return this.getStringAttribute('id');
}
// key - computed: true, optional: false, required: false
get key() {
return this.getStringAttribute('key');
}
// key_env_name - computed: true, optional: false, required: false
get keyEnvName() {
return this.getStringAttribute('key_env_name');
}
// key_path - computed: true, optional: false, required: false
get keyPath() {
return this.getStringAttribute('key_path');
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
// ou_name - computed: true, optional: false, required: false
get ouName() {
return this.getStringAttribute('ou_name');
}
// path - computed: true, optional: false, required: false
get path() {
return this.getStringAttribute('path');
}
}
export class ClusterCertificatesList extends cdktf.ComplexList {
terraformResource;
terraformAttribute;
wrapsSet;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new ClusterCertificatesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export function clusterControlPlaneHostsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
export function clusterControlPlaneHostsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
export class ClusterControlPlaneHostsOutputReference extends cdktf.ComplexObject {
isEmptyObject = false;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// address - computed: true, optional: false, required: false
get address() {
return this.getStringAttribute('address');
}
// node_name - computed: true, optional: false, required: false
get nodeName() {
return this.getStringAttribute('node_name');
}
}
export class ClusterControlPlaneHostsList extends cdktf.ComplexList {
terraformResource;
terraformAttribute;
wrapsSet;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new ClusterControlPlaneHostsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export function clusterEtcdHostsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
export function clusterEtcdHostsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
export class ClusterEtcdHostsOutputReference extends cdktf.ComplexObject {
isEmptyObject = false;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// address - computed: true, optional: false, required: false
get address() {
return this.getStringAttribute('address');
}
// node_name - computed: true, optional: false, required: false
get nodeName() {
return this.getStringAttribute('node_name');
}
}
export class ClusterEtcdHostsList extends cdktf.ComplexList {
terraformResource;
terraformAttribute;
wrapsSet;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new ClusterEtcdHostsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export function clusterInactiveHostsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
export function clusterInactiveHostsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
export class ClusterInactiveHostsOutputReference extends cdktf.ComplexObject {
isEmptyObject = false;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// address - computed: true, optional: false, required: false
get address() {
return this.getStringAttribute('address');
}
// node_name - computed: true, optional: false, required: false
get nodeName() {
return this.getStringAttribute('node_name');
}
}
export class ClusterInactiveHostsList extends cdktf.ComplexList {
terraformResource;
terraformAttribute;
wrapsSet;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new ClusterInactiveHostsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export function clusterRunningSystemImagesToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
export function clusterRunningSystemImagesToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
export class ClusterRunningSystemImagesOutputReference extends cdktf.ComplexObject {
isEmptyObject = false;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// aci_cni_deploy_container - computed: true, optional: false, required: false
get aciCniDeployContainer() {
return this.getStringAttribute('aci_cni_deploy_container');
}
// aci_controller_container - computed: true, optional: false, required: false
get aciControllerContainer() {
return this.getStringAttribute('aci_controller_container');
}
// aci_host_container - computed: true, optional: false, required: false
get aciHostContainer() {
return this.getStringAttribute('aci_host_container');
}
// aci_mcast_container - computed: true, optional: false, required: false
get aciMcastContainer() {
return this.getStringAttribute('aci_mcast_container');
}
// aci_opflex_container - computed: true, optional: false, required: false
get aciOpflexContainer() {
return this.getStringAttribute('aci_opflex_container');
}
// aci_ovs_container - computed: true, optional: false, required: false
get aciOvsContainer() {
return this.getStringAttribute('aci_ovs_container');
}
// alpine - computed: true, optional: false, required: false
get alpine() {
return this.getStringAttribute('alpine');
}
// calico_cni - computed: true, optional: false, required: false
get calicoCni() {
return this.getStringAttribute('calico_cni');
}
// calico_controllers - computed: true, optional: false, required: false
get calicoControllers() {
return this.getStringAttribute('calico_controllers');
}
// calico_ctl - computed: true, optional: false, required: false
get calicoCtl() {
return this.getStringAttribute('calico_ctl');
}
// calico_flex_vol - computed: true, optional: false, required: false
get calicoFlexVol() {
return this.getStringAttribute('calico_flex_vol');
}
// calico_node - computed: true, optional: false, required: false
get calicoNode() {
return this.getStringAttribute('calico_node');
}
// canal_cni - computed: true, optional: false, required: false
get canalCni() {
return this.getStringAttribute('canal_cni');
}
// canal_flannel - computed: true, optional: false, required: false
get canalFlannel() {
return this.getStringAttribute('canal_flannel');
}
// canal_flex_vol - computed: true, optional: false, required: false
get canalFlexVol() {
return this.getStringAttribute('canal_flex_vol');
}
// canal_node - computed: true, optional: false, required: false
get canalNode() {
return this.getStringAttribute('canal_node');
}
// cert_downloader - computed: true, optional: false, required: false
get certDownloader() {
return this.getStringAttribute('cert_downloader');
}
// coredns - computed: true, optional: false, required: false
get coredns() {
return this.getStringAttribute('coredns');
}
// coredns_autoscaler - computed: true, optional: false, required: false
get corednsAutoscaler() {
return this.getStringAttribute('coredns_autoscaler');
}
// dnsmasq - computed: true, optional: false, required: false
get dnsmasq() {
return this.getStringAttribute('dnsmasq');
}
// etcd - computed: true, optional: false, required: false
get etcd() {
return this.getStringAttribute('etcd');
}
// flannel - computed: true, optional: false, required: false
get flannel() {
return this.getStringAttribute('flannel');
}
// flannel_cni - computed: true, optional: false, required: false
get flannelCni() {
return this.getStringAttribute('flannel_cni');
}
// ingress - computed: true, optional: false, required: false
get ingress() {
return this.getStringAttribute('ingress');
}
// ingress_backend - computed: true, optional: false, required: false
get ingressBackend() {
return this.getStringAttribute('ingress_backend');
}
// kube_dns - computed: true, optional: false, required: false
get kubeDns() {
return this.getStringAttribute('kube_dns');
}
// kube_dns_autoscaler - computed: true, optional: false, required: false
get kubeDnsAutoscaler() {
return this.getStringAttribute('kube_dns_autoscaler');
}
// kube_dns_sidecar - computed: true, optional: false, required: false
get kubeDnsSidecar() {
return this.getStringAttribute('kube_dns_sidecar');
}
// kubernetes - computed: true, optional: false, required: false
get kubernetes() {
return this.getStringAttribute('kubernetes');
}
// kubernetes_services_sidecar - computed: true, optional: false, required: false
get kubernetesServicesSidecar() {
return this.getStringAttribute('kubernetes_services_sidecar');
}
// metrics_server - computed: true, optional: false, required: false
get metricsServer() {
return this.getStringAttribute('metrics_server');
}
// nginx_proxy - computed: true, optional: false, required: false
get nginxProxy() {
return this.getStringAttribute('nginx_proxy');
}
// nodelocal - computed: true, optional: false, required: false
get nodelocal() {
return this.getStringAttribute('nodelocal');
}
// pod_infra_container - computed: true, optional: false, required: false
get podInfraContainer() {
return this.getStringAttribute('pod_infra_container');
}
// weave_cni - computed: true, optional: false, required: false
get weaveCni() {
return this.getStringAttribute('weave_cni');
}
// weave_node - computed: true, optional: false, required: false
get weaveNode() {
return this.getStringAttribute('weave_node');
}
// windows_pod_infra_container - computed: true, optional: false, required: false
get windowsPodInfraContainer() {
return this.getStringAttribute('windows_pod_infra_container');
}
}
export class ClusterRunningSystemImagesList extends cdktf.ComplexList {
terraformResource;
terraformAttribute;
wrapsSet;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new ClusterRunningSystemImagesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export function clusterWorkerHostsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
export function clusterWorkerHostsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
export class ClusterWorkerHostsOutputReference extends cdktf.ComplexObject {
isEmptyObject = false;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// address - computed: true, optional: false, required: false
get address() {
return this.getStringAttribute('address');
}
// node_name - computed: true, optional: false, required: false
get nodeName() {
return this.getStringAttribute('node_name');
}
}
export class ClusterWorkerHostsList extends cdktf.ComplexList {
terraformResource;
terraformAttribute;
wrapsSet;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new ClusterWorkerHostsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export function clusterAuthenticationWebhookToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
cache_timeout: cdktf.stringToTerraform(struct.cacheTimeout),
config_file: cdktf.stringToTerraform(struct.configFile),
};
}
export function clusterAuthenticationWebhookToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
cache_timeout: {
value: cdktf.stringToHclTerraform(struct.cacheTimeout),
isBlock: false,
type: "simple",
storageClassType: "string",
},
config_file: {
value: cdktf.stringToHclTerraform(struct.configFile),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
export class ClusterAuthenticationWebhookOutputReference extends cdktf.ComplexObject {
isEmptyObject = false;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._cacheTimeout !== undefined) {
hasAnyValues = true;
internalValueResult.cacheTimeout = this._cacheTimeout;
}
if (this._configFile !== undefined) {
hasAnyValues = true;
internalValueResult.configFile = this._configFile;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._cacheTimeout = undefined;
this._configFile = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._cacheTimeout = value.cacheTimeout;
this._configFile = value.configFile;
}
}
// cache_timeout - computed: false, optional: true, required: false
_cacheTimeout;
get cacheTimeout() {
return this.getStringAttribute('cache_timeout');
}
set cacheTimeout(value) {
this._cacheTimeout = value;
}
resetCacheTimeout() {
this._cacheTimeout = undefined;
}
// Temporarily expose input value. Use with caution.
get cacheTimeoutInput() {
return this._cacheTimeout;
}
// config_file - computed: false, optional: true, required: false
_configFile;
get configFile() {
return this.getStringAttribute('config_file');
}
set configFile(value) {
this._configFile = value;
}
resetConfigFile() {
this._configFile = undefined;
}
// Temporarily expose input value. Use with caution.
get configFileInput() {
return this._configFile;
}
}
export function clusterAuthenticationToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
sans: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.sans),
strategy: cdktf.stringToTerraform(struct.strategy),
webhook: clusterAuthenticationWebhookToTerraform(struct.webhook),
};
}
export function clusterAuthenticationToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
sans: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.sans),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
strategy: {
value: cdktf.stringToHclTerraform(struct.strategy),
isBlock: false,
type: "simple",
storageClassType: "string",
},
webhook: {
value: clusterAuthenticationWebhookToHclTerraform(struct.webhook),
isBlock: true,
type: "list",
storageClassType: "ClusterAuthenticationWebhookList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
export class ClusterAuthenticationOutputReference extends cdktf.ComplexObject {
isEmptyObject = false;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._sans !== undefined) {
hasAnyValues = true;
internalValueResult.sans = this._sans;
}
if (this._strategy !== undefined) {
hasAnyValues = true;
internalValueResult.strategy = this._strategy;
}
if (this._webhook?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.webhook = this._webhook?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._sans = undefined;
this._strategy = undefined;
this._webhook.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._sans = value.sans;
this._strategy = value.strategy;
this._webhook.internalValue = value.webhook;
}
}
// sans - computed: true, optional: true, required: false
_sans;
get sans() {
return this.getListAttribute('sans');
}
set sans(value) {
this._sans = value;
}
resetSans() {
this._sans = undefined;
}
// Temporarily expose input value. Use with caution.
get sansInput() {
return this._sans;
}
// strategy - computed: false, optional: true, required: false
_strategy;
get strategy() {
return this.getStringAttribute('strategy');
}
set strategy(value) {
this._strategy = value;
}
resetStrategy() {
this._strategy = undefined;
}
// Temporarily expose input value. Use with caution.
get strategyInput() {
return this._strategy;
}
// webhook - computed: false, optional: true, required: false
_webhook = new ClusterAuthenticationWebhookOutputReference(this, "webhook");
get webhook() {
return this._webhook;
}
putWebhook(value) {
this._webhook.internalValue = value;
}
resetWebhook() {
this._webhook.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get webhookInput() {
return this._webhook.internalValue;
}
}
export function clusterAuthorizationToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
mode: cdktf.stringToTerraform(struct.mode),
options: cdktf.hashMapper(cdktf.stringToTerraform)(struct.options),
};
}
export function clusterAuthorizationToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
mode: {
value: cdktf.stringToHclTerraform(struct.mode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
options: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.options),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
export class ClusterAuthorizationOutputReference extends cdktf.ComplexObject {
isEmptyObject = false;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._mode !== undefined) {
hasAnyValues = true;
internalValueResult.mode = this._mode;
}
if (this._options !== undefined) {
hasAnyValues = true;
internalValueResult.options = this._options;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._mode = undefined;
this._options = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._mode = value.mode;
this._options = value.options;
}
}
// mode - computed: false, optional: true, required: false
_mode;
get mode() {
return this.getStringAttribute('mode');
}
set mode(value) {
this._mode = value;
}
resetMode() {
this._mode = undefined;
}
// Temporarily expose input value. Use with caution.
get modeInput() {
return this._mode;
}
// options - computed: false, optional: true, required: false
_options;
get options() {
return this.getStringMapAttribute('options');
}
set options(value) {
this._options = value;
}
resetOptions() {
this._options = undefined;
}
// Temporarily expose input value. Use with caution.
get optionsInput() {
return this._options;
}
}
export function clusterBastionHostToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
address: cdktf.stringToTerraform(struct.address),
ignore_proxy_env_vars: cdktf.booleanToTerraform(struct.ignoreProxyEnvVars),
port: cdktf.stringToTerraform(struct.port),
ssh_agent_auth: cdktf.booleanToTerraform(struct.sshAgentAuth),
ssh_cert: cdktf.stringToTerraform(struct.sshCert),
ssh_cert_path: cdktf.stringToTerraform(struct.sshCertPath),
ssh_key: cdktf.stringToTerraform(struct.sshKey),
ssh_key_path: cdktf.stringToTerraform(struct.sshKeyPath),
user: cdktf.stringToTerraform(struct.user),
};
}
export function clusterBastionHostToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
address: {
value: cdktf.stringToHclTerraform(struct.address),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ignore_proxy_env_vars: {
value: cdktf.booleanToHclTerraform(struct.ignoreProxyEnvVars),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
port: {
value: cdktf.stringToHclTerraform(struct.port),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ssh_agent_auth: {
value: cdktf.booleanToHclTerraform(struct.sshAgentAuth),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
ssh_cert: {
value: cdktf.stringToHclTerraform(struct.sshCert),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ssh_cert_path: {
value: cdktf.stringToHclTerraform(struct.sshCertPath),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ssh_key: {
value: cdktf.stringToHclTerraform(struct.sshKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ssh_key_path: {
value: cdktf.stringToHclTerraform(struct.sshKeyPath),
isBlock: false,
type: "simple",
storageClassType: "string",
},
user: {
value: cdktf.stringToHclTerraform(struct.user),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
export class ClusterBastionHostOutputReference extends cdktf.ComplexObject {
isEmptyObject = false;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._address !== undefined) {
hasAnyValues = true;
internalValueResult.address = this._address;
}
if (this._ignoreProxyEnvVars !== undefined) {
hasAnyValues = true;
internalValueResult.ignoreProxyEnvVars = this._ignoreProxyEnvVars;
}
if (this._port !== undefined) {
hasAnyValues = true;
internalValueResult.port = this._port;
}
if (this._sshAgentAuth !== undefined) {
hasAnyValues = true;
internalValueResult.sshAgentAuth = this._sshAgentAuth;
}
if (this._sshCert !== undefined) {
hasAnyValues = true;
internalValueResult.sshCert = this._sshCert;
}
if (this._sshCertPath !== undefined) {
hasAnyValues = true;
internalValueResult.sshCertPath = this._sshCertPath;
}
if (this._sshKey !== undefined) {
hasAnyValues = true;
internalValueResult.sshKey = this._sshKey;
}
if (this._sshKeyPath !== undefined) {
hasAnyValues = true;
internalValueResult.sshKeyPath = this._sshKeyPath;
}
if (this._user !== undefined) {
hasAnyValues = true;
internalValueResult.user = this._user;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._address = undefined;
this._ignoreProxyEnvVars = undefined;
this._port = undefined;
this._sshAgentAuth = undefined;
this._sshCert = undefined;
this._sshCertPath = undefined;
this._sshKey = undefined;
this._sshKeyPath = undefined;
this._user = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._address = value.address;
this._ignoreProxyEnvVars = value.ignoreProxyEnvVars;
this._port = value.port;
this._sshAgentAuth = value.sshAgentAuth;
this._sshCert = value.sshCert;
this._sshCertPath = value.sshCertPath;
this._sshKey = value.sshKey;
this._sshKeyPath = value.sshKeyPath;
this._user = value.user;
}
}
// address - computed: false, optional: false, required: true
_address;
get address() {
return this.getStringAttribute('address');
}
set address(value) {
this._address = value;
}
// Temporarily expose input value. Use with caution.
get addressInput() {
return this._address;
}
// ignore_proxy_env_vars - computed: false, optional: true, required: false
_ignoreProxyEnvVars;
get ignoreProxyEnvVars() {
return this.getBooleanAttribute('ignore_proxy_env_vars');
}
set ignoreProxyEnvVars(value) {
this._ignoreProxyEnvVars = value;
}
resetIgnoreProxyEnvVars() {
this._ignoreProxyEnvVars = undefined;
}
// Temporarily expose input value. Use with caution.
get ignoreProxyEnvVarsInput() {
return this._ignoreProxyEnvVars;
}
// port - computed: false, optional: true, required: false
_port;
get port() {
return this.getStringAttribute('port');
}
set port(value) {
this._port = value;
}
resetPort() {
this._port = undefined;
}
// Temporarily expose input value. Use with caution.
get portInput() {
return this._port;
}
// ssh_agent_auth - computed: true, optional: true, required: false
_sshAgentAuth;
get sshAgentAuth() {
return this.getBooleanAttribute('ssh_agent_auth');
}
set sshAgentAuth(value) {
this._sshAgentAuth = value;
}
resetSshAgentAuth() {
this._sshAgentAuth = undefined;
}
// Temporarily expose input value. Use with caution.
get sshAgentAuthInput() {
return this._sshAgentAuth;
}
// ssh_cert - computed: false, optional: true, required: false
_sshCert;
get sshCert() {
return this.getStringAttribute('ssh_cert');
}
set sshCert(value) {
this._sshCert = value;
}
resetSshCert() {
this._sshCert = undefined;
}
// Temporarily expose input value. Use with caution.
get sshCertInput() {
return this._sshCert;
}
// ssh_cert_path - computed: true, optional: true, required: false
_sshCertPath;
get sshCertPath() {
return this.getStringAttribute('ssh_cert_path');
}
set sshCertPath(value) {
this._sshCertPath = value;
}
resetSshCertPath() {
this._sshCertPath = undefined;
}
// Temporarily expose input value. Use with caution.
get sshCertPathInput() {
return this._sshCertPath;
}
// ssh_key - computed: false, optional: true, required: false
_sshKey;
get sshKey() {
return this.getStringAttribute('ssh_key');
}
set sshKey(value) {
this._sshKey = value;
}
resetSshKey() {
this._sshKey = undefined;
}
// Temporarily expose input value. Use with caution.
get sshKeyInput() {
return this._sshKey;
}
// ssh_key_path - computed: true, optional: true, required: false
_sshKeyPath;
get sshKeyPath() {
return this.getStringAttribute('ssh_key_path');
}
set sshKeyPath(value) {
this._sshKeyPath = value;
}
resetSshKeyPath() {
this._sshKeyPath = undefined;
}
// Temporarily expose input value. Use with caution.
get sshKeyPathInput() {
return this._sshKeyPath;
}
// user - computed: false, optional: false, required: true
_user;
get user() {
return this.getStringAttribute('user');
}
set user(value) {
this._user = value;
}
// Temporarily expose input value. Use with caution.
get userInput() {
return this._user;
}
}
export function clusterCloudProviderAwsCloudConfigGlobalToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
disable_security_group_ingress: cdktf.booleanToTerraform(struct.disableSecurityGroupIngress),
disable_strict_zone_check: cdktf.booleanToTerraform(struct.disableStrictZoneCheck),
elb_security_group: cdktf.stringToTerraform(struct.elbSecurityGroup),
kubernetes_cluster_id: cdktf.stringToTerraform(struct.kubernetesClusterId),
kubernetes_cluster_tag: cdktf.stringToTerraform(struct.kubernetesClusterTag),
role_arn: cdktf.stringToTerraform(struct.roleArn),
route_table_id: cdktf.stringToTerraform(struct.routeTableId),
subnet_id: cdktf.stringToTerraform(struct.subnetId),
vpc: cdktf.stringToTerraform(struct.vpc),
zone: cdktf.stringToTerraform(struct.zone),
};
}
export function clusterCloudProviderAwsCloudConfigGlobalToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
disable_security_group_ingress: {
value: cdktf.booleanToHclTerraform(struct.disableSecurityGroupIngress),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
disable_strict_zone_check: {
value: cdktf.booleanToHclTerraform(struct.disableStrictZoneCheck),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
elb_security_group: {
value: cdktf.stringToHclTerraform(struct.elbSecurityGroup),
isBlock: false,
type: "simple",
storageClassType: "string",
},
kubernetes_cluster_id: {
value: cdktf.stringToHclTerraform(struct.kubernetesClusterId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
kubernetes_cluster_tag: {
value: cdktf.stringToHclTerraform(struct.kubernetesClusterTag),
isBlock: false,
type: "simple",
storageClassType: "string",
},
role_arn: {
value: cdktf.stringToHclTerraform(struct.roleArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},