@cdktf/provider-kubernetes
Version:
Prebuilt kubernetes Provider for Terraform CDK (cdktf)
1,057 lines • 149 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataKubernetesIngress = exports.DataKubernetesIngressMetadataOutputReference = exports.DataKubernetesIngressStatusList = exports.DataKubernetesIngressStatusOutputReference = exports.DataKubernetesIngressStatusLoadBalancerList = exports.DataKubernetesIngressStatusLoadBalancerOutputReference = exports.DataKubernetesIngressStatusLoadBalancerIngressList = exports.DataKubernetesIngressStatusLoadBalancerIngressOutputReference = exports.DataKubernetesIngressSpecList = exports.DataKubernetesIngressSpecOutputReference = exports.DataKubernetesIngressSpecTlsList = exports.DataKubernetesIngressSpecTlsOutputReference = exports.DataKubernetesIngressSpecRuleList = exports.DataKubernetesIngressSpecRuleOutputReference = exports.DataKubernetesIngressSpecRuleHttpList = exports.DataKubernetesIngressSpecRuleHttpOutputReference = exports.DataKubernetesIngressSpecRuleHttpPathList = exports.DataKubernetesIngressSpecRuleHttpPathOutputReference = exports.DataKubernetesIngressSpecRuleHttpPathBackendList = exports.DataKubernetesIngressSpecRuleHttpPathBackendOutputReference = exports.DataKubernetesIngressSpecBackendList = exports.DataKubernetesIngressSpecBackendOutputReference = void 0;
exports.dataKubernetesIngressSpecBackendToTerraform = dataKubernetesIngressSpecBackendToTerraform;
exports.dataKubernetesIngressSpecBackendToHclTerraform = dataKubernetesIngressSpecBackendToHclTerraform;
exports.dataKubernetesIngressSpecRuleHttpPathBackendToTerraform = dataKubernetesIngressSpecRuleHttpPathBackendToTerraform;
exports.dataKubernetesIngressSpecRuleHttpPathBackendToHclTerraform = dataKubernetesIngressSpecRuleHttpPathBackendToHclTerraform;
exports.dataKubernetesIngressSpecRuleHttpPathToTerraform = dataKubernetesIngressSpecRuleHttpPathToTerraform;
exports.dataKubernetesIngressSpecRuleHttpPathToHclTerraform = dataKubernetesIngressSpecRuleHttpPathToHclTerraform;
exports.dataKubernetesIngressSpecRuleHttpToTerraform = dataKubernetesIngressSpecRuleHttpToTerraform;
exports.dataKubernetesIngressSpecRuleHttpToHclTerraform = dataKubernetesIngressSpecRuleHttpToHclTerraform;
exports.dataKubernetesIngressSpecRuleToTerraform = dataKubernetesIngressSpecRuleToTerraform;
exports.dataKubernetesIngressSpecRuleToHclTerraform = dataKubernetesIngressSpecRuleToHclTerraform;
exports.dataKubernetesIngressSpecTlsToTerraform = dataKubernetesIngressSpecTlsToTerraform;
exports.dataKubernetesIngressSpecTlsToHclTerraform = dataKubernetesIngressSpecTlsToHclTerraform;
exports.dataKubernetesIngressSpecToTerraform = dataKubernetesIngressSpecToTerraform;
exports.dataKubernetesIngressSpecToHclTerraform = dataKubernetesIngressSpecToHclTerraform;
exports.dataKubernetesIngressStatusLoadBalancerIngressToTerraform = dataKubernetesIngressStatusLoadBalancerIngressToTerraform;
exports.dataKubernetesIngressStatusLoadBalancerIngressToHclTerraform = dataKubernetesIngressStatusLoadBalancerIngressToHclTerraform;
exports.dataKubernetesIngressStatusLoadBalancerToTerraform = dataKubernetesIngressStatusLoadBalancerToTerraform;
exports.dataKubernetesIngressStatusLoadBalancerToHclTerraform = dataKubernetesIngressStatusLoadBalancerToHclTerraform;
exports.dataKubernetesIngressStatusToTerraform = dataKubernetesIngressStatusToTerraform;
exports.dataKubernetesIngressStatusToHclTerraform = dataKubernetesIngressStatusToHclTerraform;
exports.dataKubernetesIngressMetadataToTerraform = dataKubernetesIngressMetadataToTerraform;
exports.dataKubernetesIngressMetadataToHclTerraform = dataKubernetesIngressMetadataToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataKubernetesIngressSpecBackendToTerraform(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 {};
}
function dataKubernetesIngressSpecBackendToHclTerraform(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;
}
class DataKubernetesIngressSpecBackendOutputReference extends cdktf.ComplexObject {
/**
* @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);
this.isEmptyObject = false;
}
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;
}
}
// service_name - computed: true, optional: false, required: false
get serviceName() {
return this.getStringAttribute('service_name');
}
// service_port - computed: true, optional: false, required: false
get servicePort() {
return this.getStringAttribute('service_port');
}
}
exports.DataKubernetesIngressSpecBackendOutputReference = DataKubernetesIngressSpecBackendOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressSpecBackendOutputReference[_a] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressSpecBackendOutputReference", version: "12.0.0" };
class DataKubernetesIngressSpecBackendList extends cdktf.ComplexList {
/**
* @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 DataKubernetesIngressSpecBackendOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataKubernetesIngressSpecBackendList = DataKubernetesIngressSpecBackendList;
_b = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressSpecBackendList[_b] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressSpecBackendList", version: "12.0.0" };
function dataKubernetesIngressSpecRuleHttpPathBackendToTerraform(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 {};
}
function dataKubernetesIngressSpecRuleHttpPathBackendToHclTerraform(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;
}
class DataKubernetesIngressSpecRuleHttpPathBackendOutputReference extends cdktf.ComplexObject {
/**
* @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);
this.isEmptyObject = false;
}
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;
}
}
// service_name - computed: true, optional: false, required: false
get serviceName() {
return this.getStringAttribute('service_name');
}
// service_port - computed: true, optional: false, required: false
get servicePort() {
return this.getStringAttribute('service_port');
}
}
exports.DataKubernetesIngressSpecRuleHttpPathBackendOutputReference = DataKubernetesIngressSpecRuleHttpPathBackendOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressSpecRuleHttpPathBackendOutputReference[_c] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressSpecRuleHttpPathBackendOutputReference", version: "12.0.0" };
class DataKubernetesIngressSpecRuleHttpPathBackendList extends cdktf.ComplexList {
/**
* @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 DataKubernetesIngressSpecRuleHttpPathBackendOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataKubernetesIngressSpecRuleHttpPathBackendList = DataKubernetesIngressSpecRuleHttpPathBackendList;
_d = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressSpecRuleHttpPathBackendList[_d] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressSpecRuleHttpPathBackendList", version: "12.0.0" };
function dataKubernetesIngressSpecRuleHttpPathToTerraform(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 {};
}
function dataKubernetesIngressSpecRuleHttpPathToHclTerraform(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;
}
class DataKubernetesIngressSpecRuleHttpPathOutputReference extends cdktf.ComplexObject {
/**
* @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);
this.isEmptyObject = false;
// backend - computed: true, optional: false, required: false
this._backend = new DataKubernetesIngressSpecRuleHttpPathBackendList(this, "backend", false);
}
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;
}
}
get backend() {
return this._backend;
}
// path - computed: true, optional: false, required: false
get path() {
return this.getStringAttribute('path');
}
}
exports.DataKubernetesIngressSpecRuleHttpPathOutputReference = DataKubernetesIngressSpecRuleHttpPathOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressSpecRuleHttpPathOutputReference[_e] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressSpecRuleHttpPathOutputReference", version: "12.0.0" };
class DataKubernetesIngressSpecRuleHttpPathList extends cdktf.ComplexList {
/**
* @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 DataKubernetesIngressSpecRuleHttpPathOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataKubernetesIngressSpecRuleHttpPathList = DataKubernetesIngressSpecRuleHttpPathList;
_f = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressSpecRuleHttpPathList[_f] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressSpecRuleHttpPathList", version: "12.0.0" };
function dataKubernetesIngressSpecRuleHttpToTerraform(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 {};
}
function dataKubernetesIngressSpecRuleHttpToHclTerraform(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;
}
class DataKubernetesIngressSpecRuleHttpOutputReference extends cdktf.ComplexObject {
/**
* @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);
this.isEmptyObject = false;
// path - computed: true, optional: false, required: false
this._path = new DataKubernetesIngressSpecRuleHttpPathList(this, "path", false);
}
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;
}
}
get path() {
return this._path;
}
}
exports.DataKubernetesIngressSpecRuleHttpOutputReference = DataKubernetesIngressSpecRuleHttpOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressSpecRuleHttpOutputReference[_g] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressSpecRuleHttpOutputReference", version: "12.0.0" };
class DataKubernetesIngressSpecRuleHttpList extends cdktf.ComplexList {
/**
* @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 DataKubernetesIngressSpecRuleHttpOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataKubernetesIngressSpecRuleHttpList = DataKubernetesIngressSpecRuleHttpList;
_h = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressSpecRuleHttpList[_h] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressSpecRuleHttpList", version: "12.0.0" };
function dataKubernetesIngressSpecRuleToTerraform(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 {};
}
function dataKubernetesIngressSpecRuleToHclTerraform(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;
}
class DataKubernetesIngressSpecRuleOutputReference extends cdktf.ComplexObject {
/**
* @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);
this.isEmptyObject = false;
// http - computed: true, optional: false, required: false
this._http = new DataKubernetesIngressSpecRuleHttpList(this, "http", false);
}
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;
}
}
// host - computed: true, optional: false, required: false
get host() {
return this.getStringAttribute('host');
}
get http() {
return this._http;
}
}
exports.DataKubernetesIngressSpecRuleOutputReference = DataKubernetesIngressSpecRuleOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressSpecRuleOutputReference[_j] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressSpecRuleOutputReference", version: "12.0.0" };
class DataKubernetesIngressSpecRuleList extends cdktf.ComplexList {
/**
* @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 DataKubernetesIngressSpecRuleOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataKubernetesIngressSpecRuleList = DataKubernetesIngressSpecRuleList;
_k = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressSpecRuleList[_k] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressSpecRuleList", version: "12.0.0" };
function dataKubernetesIngressSpecTlsToTerraform(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 {};
}
function dataKubernetesIngressSpecTlsToHclTerraform(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;
}
class DataKubernetesIngressSpecTlsOutputReference extends cdktf.ComplexObject {
/**
* @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);
this.isEmptyObject = false;
}
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;
}
}
// hosts - computed: true, optional: false, required: false
get hosts() {
return this.getListAttribute('hosts');
}
// secret_name - computed: true, optional: false, required: false
get secretName() {
return this.getStringAttribute('secret_name');
}
}
exports.DataKubernetesIngressSpecTlsOutputReference = DataKubernetesIngressSpecTlsOutputReference;
_l = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressSpecTlsOutputReference[_l] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressSpecTlsOutputReference", version: "12.0.0" };
class DataKubernetesIngressSpecTlsList extends cdktf.ComplexList {
/**
* @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 DataKubernetesIngressSpecTlsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataKubernetesIngressSpecTlsList = DataKubernetesIngressSpecTlsList;
_m = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressSpecTlsList[_m] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressSpecTlsList", version: "12.0.0" };
function dataKubernetesIngressSpecToTerraform(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 {};
}
function dataKubernetesIngressSpecToHclTerraform(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;
}
class DataKubernetesIngressSpecOutputReference extends cdktf.ComplexObject {
/**
* @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);
this.isEmptyObject = false;
// backend - computed: true, optional: false, required: false
this._backend = new DataKubernetesIngressSpecBackendList(this, "backend", false);
// rule - computed: true, optional: false, required: false
this._rule = new DataKubernetesIngressSpecRuleList(this, "rule", false);
// tls - computed: true, optional: false, required: false
this._tls = new DataKubernetesIngressSpecTlsList(this, "tls", false);
}
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;
}
}
get backend() {
return this._backend;
}
// ingress_class_name - computed: true, optional: false, required: false
get ingressClassName() {
return this.getStringAttribute('ingress_class_name');
}
get rule() {
return this._rule;
}
get tls() {
return this._tls;
}
}
exports.DataKubernetesIngressSpecOutputReference = DataKubernetesIngressSpecOutputReference;
_o = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressSpecOutputReference[_o] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressSpecOutputReference", version: "12.0.0" };
class DataKubernetesIngressSpecList extends cdktf.ComplexList {
/**
* @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 DataKubernetesIngressSpecOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataKubernetesIngressSpecList = DataKubernetesIngressSpecList;
_p = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressSpecList[_p] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressSpecList", version: "12.0.0" };
function dataKubernetesIngressStatusLoadBalancerIngressToTerraform(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 {};
}
function dataKubernetesIngressStatusLoadBalancerIngressToHclTerraform(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;
}
class DataKubernetesIngressStatusLoadBalancerIngressOutputReference extends cdktf.ComplexObject {
/**
* @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);
this.isEmptyObject = false;
}
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;
}
}
// hostname - computed: true, optional: false, required: false
get hostname() {
return this.getStringAttribute('hostname');
}
// ip - computed: true, optional: false, required: false
get ip() {
return this.getStringAttribute('ip');
}
}
exports.DataKubernetesIngressStatusLoadBalancerIngressOutputReference = DataKubernetesIngressStatusLoadBalancerIngressOutputReference;
_q = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressStatusLoadBalancerIngressOutputReference[_q] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressStatusLoadBalancerIngressOutputReference", version: "12.0.0" };
class DataKubernetesIngressStatusLoadBalancerIngressList extends cdktf.ComplexList {
/**
* @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 DataKubernetesIngressStatusLoadBalancerIngressOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataKubernetesIngressStatusLoadBalancerIngressList = DataKubernetesIngressStatusLoadBalancerIngressList;
_r = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressStatusLoadBalancerIngressList[_r] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressStatusLoadBalancerIngressList", version: "12.0.0" };
function dataKubernetesIngressStatusLoadBalancerToTerraform(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 {};
}
function dataKubernetesIngressStatusLoadBalancerToHclTerraform(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;
}
class DataKubernetesIngressStatusLoadBalancerOutputReference extends cdktf.ComplexObject {
/**
* @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);
this.isEmptyObject = false;
// ingress - computed: true, optional: false, required: false
this._ingress = new DataKubernetesIngressStatusLoadBalancerIngressList(this, "ingress", false);
}
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;
}
}
get ingress() {
return this._ingress;
}
}
exports.DataKubernetesIngressStatusLoadBalancerOutputReference = DataKubernetesIngressStatusLoadBalancerOutputReference;
_s = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressStatusLoadBalancerOutputReference[_s] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressStatusLoadBalancerOutputReference", version: "12.0.0" };
class DataKubernetesIngressStatusLoadBalancerList extends cdktf.ComplexList {
/**
* @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 DataKubernetesIngressStatusLoadBalancerOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataKubernetesIngressStatusLoadBalancerList = DataKubernetesIngressStatusLoadBalancerList;
_t = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressStatusLoadBalancerList[_t] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressStatusLoadBalancerList", version: "12.0.0" };
function dataKubernetesIngressStatusToTerraform(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 {};
}
function dataKubernetesIngressStatusToHclTerraform(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;
}
class DataKubernetesIngressStatusOutputReference extends cdktf.ComplexObject {
/**
* @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);
this.isEmptyObject = false;
// load_balancer - computed: true, optional: false, required: false
this._loadBalancer = new DataKubernetesIngressStatusLoadBalancerList(this, "load_balancer", false);
}
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;
}
}
get loadBalancer() {
return this._loadBalancer;
}
}
exports.DataKubernetesIngressStatusOutputReference = DataKubernetesIngressStatusOutputReference;
_u = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressStatusOutputReference[_u] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressStatusOutputReference", version: "12.0.0" };
class DataKubernetesIngressStatusList extends cdktf.ComplexList {
/**
* @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 DataKubernetesIngressStatusOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataKubernetesIngressStatusList = DataKubernetesIngressStatusList;
_v = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressStatusList[_v] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressStatusList", version: "12.0.0" };
function dataKubernetesIngressMetadataToTerraform(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 {
annotations: cdktf.hashMapper(cdktf.stringToTerraform)(struct.annotations),
labels: cdktf.hashMapper(cdktf.stringToTerraform)(struct.labels),
name: cdktf.stringToTerraform(struct.name),
namespace: cdktf.stringToTerraform(struct.namespace),
};
}
function dataKubernetesIngressMetadataToHclTerraform(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 = {
annotations: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.annotations),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
labels: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.labels),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
namespace: {
value: cdktf.stringToHclTerraform(struct.namespace),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataKubernetesIngressMetadataOutputReference extends cdktf.ComplexObject {
/**
* @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);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._annotations !== undefined) {
hasAnyValues = true;
internalValueResult.annotations = this._annotations;
}
if (this._labels !== undefined) {
hasAnyValues = true;
internalValueResult.labels = this._labels;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._namespace !== undefined) {
hasAnyValues = true;
internalValueResult.namespace = this._namespace;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._annotations = undefined;
this._labels = undefined;
this._name = undefined;
this._namespace = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._annotations = value.annotations;
this._labels = value.labels;
this._name = value.name;
this._namespace = value.namespace;
}
}
get annotations() {
return this.getStringMapAttribute('annotations');
}
set annotations(value) {
this._annotations = value;
}
resetAnnotations() {
this._annotations = undefined;
}
// Temporarily expose input value. Use with caution.
get annotationsInput() {
return this._annotations;
}
// generation - computed: true, optional: false, required: false
get generation() {
return this.getNumberAttribute('generation');
}
get labels() {
return this.getStringMapAttribute('labels');
}
set labels(value) {
this._labels = value;
}
resetLabels() {
this._labels = undefined;
}
// Temporarily expose input value. Use with caution.
get labelsInput() {
return this._labels;
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
resetName() {
this._name = undefined;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get namespace() {
return this.getStringAttribute('namespace');
}
set namespace(value) {
this._namespace = value;
}
resetNamespace() {
this._namespace = undefined;
}
// Temporarily expose input value. Use with caution.
get namespaceInput() {
return this._namespace;
}
// resource_version - computed: true, optional: false, required: false
get resourceVersion() {
return this.getStringAttribute('resource_version');
}
// uid - computed: true, optional: false, required: false
get uid() {
return this.getStringAttribute('uid');
}
}
exports.DataKubernetesIngressMetadataOutputReference = DataKubernetesIngressMetadataOutputReference;
_w = JSII_RTTI_SYMBOL_1;
DataKubernetesIngressMetadataOutputReference[_w] = { fqn: "@cdktf/provider-kubernetes.dataKubernetesIngress.DataKubernetesIngressMetadataOutputReference", version: "12.0.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/data-sources/ingress kubernetes_ingress}
*/
class DataKubernetesIngress extends cdktf.TerraformDataSource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a DataKubernetesIngress resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the DataKubernetesIngress to import
* @param importFromId The id of the existing DataKubernetesIngress that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/data-sources/ingress#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the DataKubernetesIngress to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "kubernetes_ingress", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/data-sources/ingress kubernetes_ingress} Data Source
*
* @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 DataKubernetesIngressConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'kubernetes_ingress',
terraformGeneratorMetadata: {
providerName: 'kubernetes',
providerVersion: '2.37.1',
providerVersionConstraint: '~> 2.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle,
provisioners: config.provisioners,
connection: config.connection,
forEach: config.forEach
});
// spec - computed: true, optional: false, required: false
this._spec = new DataKubernetesIngressSpecList(this, "spec", false);
// status - computed: true, optional: false, required: false
this._status = new DataKubernetesIngressStatusList(this, "status", false);
// metadata - computed: false, optional: false, required: true
this._metadata = new DataKubernetesIngressMetadataOutputReference(this, "metadata");
this._id = config.id;
this._metadata.internalValue = config.metadata;
}
get id() {
return this.getStringAttribute('id');
}
set id(value) {
this._id = value;
}
resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
get idInput() {
return this._id;
}
get spec() {
return this._spec;
}
get status() {
return this._status;
}
get metadata() {
return this._metadata;
}
putMetadata(value) {
this._metadata.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get metadataInput() {
return this._metadata.internalValue;
}
// =========
// SYNTHESIS
// =========
synthesizeAttributes() {
return {
id: cdktf.stringToTerraform(this._id),
metadata: dataKubernetesIngressMetadataToTerraform(this._metadata.internalValue),
};
}
synthesizeHclAtt