@cdktf/provider-kubernetes
Version:
Prebuilt kubernetes Provider for Terraform CDK (cdktf)
1,128 lines • 358 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, _y, _z;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PodSecurityPolicyV1Beta1 = exports.PodSecurityPolicyV1Beta1SpecOutputReference = exports.PodSecurityPolicyV1Beta1SpecSupplementalGroupsOutputReference = exports.PodSecurityPolicyV1Beta1SpecSupplementalGroupsRangeList = exports.PodSecurityPolicyV1Beta1SpecSupplementalGroupsRangeOutputReference = exports.PodSecurityPolicyV1Beta1SpecSeLinuxOutputReference = exports.PodSecurityPolicyV1Beta1SpecSeLinuxSeLinuxOptionsList = exports.PodSecurityPolicyV1Beta1SpecSeLinuxSeLinuxOptionsOutputReference = exports.PodSecurityPolicyV1Beta1SpecRunAsUserOutputReference = exports.PodSecurityPolicyV1Beta1SpecRunAsUserRangeList = exports.PodSecurityPolicyV1Beta1SpecRunAsUserRangeOutputReference = exports.PodSecurityPolicyV1Beta1SpecRunAsGroupOutputReference = exports.PodSecurityPolicyV1Beta1SpecRunAsGroupRangeList = exports.PodSecurityPolicyV1Beta1SpecRunAsGroupRangeOutputReference = exports.PodSecurityPolicyV1Beta1SpecHostPortsList = exports.PodSecurityPolicyV1Beta1SpecHostPortsOutputReference = exports.PodSecurityPolicyV1Beta1SpecFsGroupOutputReference = exports.PodSecurityPolicyV1Beta1SpecFsGroupRangeList = exports.PodSecurityPolicyV1Beta1SpecFsGroupRangeOutputReference = exports.PodSecurityPolicyV1Beta1SpecAllowedHostPathsList = exports.PodSecurityPolicyV1Beta1SpecAllowedHostPathsOutputReference = exports.PodSecurityPolicyV1Beta1SpecAllowedFlexVolumesList = exports.PodSecurityPolicyV1Beta1SpecAllowedFlexVolumesOutputReference = exports.PodSecurityPolicyV1Beta1MetadataOutputReference = void 0;
exports.podSecurityPolicyV1Beta1MetadataToTerraform = podSecurityPolicyV1Beta1MetadataToTerraform;
exports.podSecurityPolicyV1Beta1MetadataToHclTerraform = podSecurityPolicyV1Beta1MetadataToHclTerraform;
exports.podSecurityPolicyV1Beta1SpecAllowedFlexVolumesToTerraform = podSecurityPolicyV1Beta1SpecAllowedFlexVolumesToTerraform;
exports.podSecurityPolicyV1Beta1SpecAllowedFlexVolumesToHclTerraform = podSecurityPolicyV1Beta1SpecAllowedFlexVolumesToHclTerraform;
exports.podSecurityPolicyV1Beta1SpecAllowedHostPathsToTerraform = podSecurityPolicyV1Beta1SpecAllowedHostPathsToTerraform;
exports.podSecurityPolicyV1Beta1SpecAllowedHostPathsToHclTerraform = podSecurityPolicyV1Beta1SpecAllowedHostPathsToHclTerraform;
exports.podSecurityPolicyV1Beta1SpecFsGroupRangeToTerraform = podSecurityPolicyV1Beta1SpecFsGroupRangeToTerraform;
exports.podSecurityPolicyV1Beta1SpecFsGroupRangeToHclTerraform = podSecurityPolicyV1Beta1SpecFsGroupRangeToHclTerraform;
exports.podSecurityPolicyV1Beta1SpecFsGroupToTerraform = podSecurityPolicyV1Beta1SpecFsGroupToTerraform;
exports.podSecurityPolicyV1Beta1SpecFsGroupToHclTerraform = podSecurityPolicyV1Beta1SpecFsGroupToHclTerraform;
exports.podSecurityPolicyV1Beta1SpecHostPortsToTerraform = podSecurityPolicyV1Beta1SpecHostPortsToTerraform;
exports.podSecurityPolicyV1Beta1SpecHostPortsToHclTerraform = podSecurityPolicyV1Beta1SpecHostPortsToHclTerraform;
exports.podSecurityPolicyV1Beta1SpecRunAsGroupRangeToTerraform = podSecurityPolicyV1Beta1SpecRunAsGroupRangeToTerraform;
exports.podSecurityPolicyV1Beta1SpecRunAsGroupRangeToHclTerraform = podSecurityPolicyV1Beta1SpecRunAsGroupRangeToHclTerraform;
exports.podSecurityPolicyV1Beta1SpecRunAsGroupToTerraform = podSecurityPolicyV1Beta1SpecRunAsGroupToTerraform;
exports.podSecurityPolicyV1Beta1SpecRunAsGroupToHclTerraform = podSecurityPolicyV1Beta1SpecRunAsGroupToHclTerraform;
exports.podSecurityPolicyV1Beta1SpecRunAsUserRangeToTerraform = podSecurityPolicyV1Beta1SpecRunAsUserRangeToTerraform;
exports.podSecurityPolicyV1Beta1SpecRunAsUserRangeToHclTerraform = podSecurityPolicyV1Beta1SpecRunAsUserRangeToHclTerraform;
exports.podSecurityPolicyV1Beta1SpecRunAsUserToTerraform = podSecurityPolicyV1Beta1SpecRunAsUserToTerraform;
exports.podSecurityPolicyV1Beta1SpecRunAsUserToHclTerraform = podSecurityPolicyV1Beta1SpecRunAsUserToHclTerraform;
exports.podSecurityPolicyV1Beta1SpecSeLinuxSeLinuxOptionsToTerraform = podSecurityPolicyV1Beta1SpecSeLinuxSeLinuxOptionsToTerraform;
exports.podSecurityPolicyV1Beta1SpecSeLinuxSeLinuxOptionsToHclTerraform = podSecurityPolicyV1Beta1SpecSeLinuxSeLinuxOptionsToHclTerraform;
exports.podSecurityPolicyV1Beta1SpecSeLinuxToTerraform = podSecurityPolicyV1Beta1SpecSeLinuxToTerraform;
exports.podSecurityPolicyV1Beta1SpecSeLinuxToHclTerraform = podSecurityPolicyV1Beta1SpecSeLinuxToHclTerraform;
exports.podSecurityPolicyV1Beta1SpecSupplementalGroupsRangeToTerraform = podSecurityPolicyV1Beta1SpecSupplementalGroupsRangeToTerraform;
exports.podSecurityPolicyV1Beta1SpecSupplementalGroupsRangeToHclTerraform = podSecurityPolicyV1Beta1SpecSupplementalGroupsRangeToHclTerraform;
exports.podSecurityPolicyV1Beta1SpecSupplementalGroupsToTerraform = podSecurityPolicyV1Beta1SpecSupplementalGroupsToTerraform;
exports.podSecurityPolicyV1Beta1SpecSupplementalGroupsToHclTerraform = podSecurityPolicyV1Beta1SpecSupplementalGroupsToHclTerraform;
exports.podSecurityPolicyV1Beta1SpecToTerraform = podSecurityPolicyV1Beta1SpecToTerraform;
exports.podSecurityPolicyV1Beta1SpecToHclTerraform = podSecurityPolicyV1Beta1SpecToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function podSecurityPolicyV1Beta1MetadataToTerraform(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),
};
}
function podSecurityPolicyV1Beta1MetadataToHclTerraform(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",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class PodSecurityPolicyV1Beta1MetadataOutputReference 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;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._annotations = undefined;
this._labels = undefined;
this._name = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._annotations = value.annotations;
this._labels = value.labels;
this._name = value.name;
}
}
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;
}
// 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.PodSecurityPolicyV1Beta1MetadataOutputReference = PodSecurityPolicyV1Beta1MetadataOutputReference;
_a = JSII_RTTI_SYMBOL_1;
PodSecurityPolicyV1Beta1MetadataOutputReference[_a] = { fqn: "@cdktf/provider-kubernetes.podSecurityPolicyV1Beta1.PodSecurityPolicyV1Beta1MetadataOutputReference", version: "12.0.0" };
function podSecurityPolicyV1Beta1SpecAllowedFlexVolumesToTerraform(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 {
driver: cdktf.stringToTerraform(struct.driver),
};
}
function podSecurityPolicyV1Beta1SpecAllowedFlexVolumesToHclTerraform(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 = {
driver: {
value: cdktf.stringToHclTerraform(struct.driver),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class PodSecurityPolicyV1Beta1SpecAllowedFlexVolumesOutputReference 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() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._driver !== undefined) {
hasAnyValues = true;
internalValueResult.driver = this._driver;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._driver = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._driver = value.driver;
}
}
get driver() {
return this.getStringAttribute('driver');
}
set driver(value) {
this._driver = value;
}
// Temporarily expose input value. Use with caution.
get driverInput() {
return this._driver;
}
}
exports.PodSecurityPolicyV1Beta1SpecAllowedFlexVolumesOutputReference = PodSecurityPolicyV1Beta1SpecAllowedFlexVolumesOutputReference;
_b = JSII_RTTI_SYMBOL_1;
PodSecurityPolicyV1Beta1SpecAllowedFlexVolumesOutputReference[_b] = { fqn: "@cdktf/provider-kubernetes.podSecurityPolicyV1Beta1.PodSecurityPolicyV1Beta1SpecAllowedFlexVolumesOutputReference", version: "12.0.0" };
class PodSecurityPolicyV1Beta1SpecAllowedFlexVolumesList 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 PodSecurityPolicyV1Beta1SpecAllowedFlexVolumesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.PodSecurityPolicyV1Beta1SpecAllowedFlexVolumesList = PodSecurityPolicyV1Beta1SpecAllowedFlexVolumesList;
_c = JSII_RTTI_SYMBOL_1;
PodSecurityPolicyV1Beta1SpecAllowedFlexVolumesList[_c] = { fqn: "@cdktf/provider-kubernetes.podSecurityPolicyV1Beta1.PodSecurityPolicyV1Beta1SpecAllowedFlexVolumesList", version: "12.0.0" };
function podSecurityPolicyV1Beta1SpecAllowedHostPathsToTerraform(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 {
path_prefix: cdktf.stringToTerraform(struct.pathPrefix),
read_only: cdktf.booleanToTerraform(struct.readOnly),
};
}
function podSecurityPolicyV1Beta1SpecAllowedHostPathsToHclTerraform(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 = {
path_prefix: {
value: cdktf.stringToHclTerraform(struct.pathPrefix),
isBlock: false,
type: "simple",
storageClassType: "string",
},
read_only: {
value: cdktf.booleanToHclTerraform(struct.readOnly),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class PodSecurityPolicyV1Beta1SpecAllowedHostPathsOutputReference 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() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._pathPrefix !== undefined) {
hasAnyValues = true;
internalValueResult.pathPrefix = this._pathPrefix;
}
if (this._readOnly !== undefined) {
hasAnyValues = true;
internalValueResult.readOnly = this._readOnly;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._pathPrefix = undefined;
this._readOnly = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._pathPrefix = value.pathPrefix;
this._readOnly = value.readOnly;
}
}
get pathPrefix() {
return this.getStringAttribute('path_prefix');
}
set pathPrefix(value) {
this._pathPrefix = value;
}
// Temporarily expose input value. Use with caution.
get pathPrefixInput() {
return this._pathPrefix;
}
get readOnly() {
return this.getBooleanAttribute('read_only');
}
set readOnly(value) {
this._readOnly = value;
}
resetReadOnly() {
this._readOnly = undefined;
}
// Temporarily expose input value. Use with caution.
get readOnlyInput() {
return this._readOnly;
}
}
exports.PodSecurityPolicyV1Beta1SpecAllowedHostPathsOutputReference = PodSecurityPolicyV1Beta1SpecAllowedHostPathsOutputReference;
_d = JSII_RTTI_SYMBOL_1;
PodSecurityPolicyV1Beta1SpecAllowedHostPathsOutputReference[_d] = { fqn: "@cdktf/provider-kubernetes.podSecurityPolicyV1Beta1.PodSecurityPolicyV1Beta1SpecAllowedHostPathsOutputReference", version: "12.0.0" };
class PodSecurityPolicyV1Beta1SpecAllowedHostPathsList 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 PodSecurityPolicyV1Beta1SpecAllowedHostPathsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.PodSecurityPolicyV1Beta1SpecAllowedHostPathsList = PodSecurityPolicyV1Beta1SpecAllowedHostPathsList;
_e = JSII_RTTI_SYMBOL_1;
PodSecurityPolicyV1Beta1SpecAllowedHostPathsList[_e] = { fqn: "@cdktf/provider-kubernetes.podSecurityPolicyV1Beta1.PodSecurityPolicyV1Beta1SpecAllowedHostPathsList", version: "12.0.0" };
function podSecurityPolicyV1Beta1SpecFsGroupRangeToTerraform(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 {
max: cdktf.numberToTerraform(struct.max),
min: cdktf.numberToTerraform(struct.min),
};
}
function podSecurityPolicyV1Beta1SpecFsGroupRangeToHclTerraform(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 = {
max: {
value: cdktf.numberToHclTerraform(struct.max),
isBlock: false,
type: "simple",
storageClassType: "number",
},
min: {
value: cdktf.numberToHclTerraform(struct.min),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class PodSecurityPolicyV1Beta1SpecFsGroupRangeOutputReference 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() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._max !== undefined) {
hasAnyValues = true;
internalValueResult.max = this._max;
}
if (this._min !== undefined) {
hasAnyValues = true;
internalValueResult.min = this._min;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._max = undefined;
this._min = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._max = value.max;
this._min = value.min;
}
}
get max() {
return this.getNumberAttribute('max');
}
set max(value) {
this._max = value;
}
// Temporarily expose input value. Use with caution.
get maxInput() {
return this._max;
}
get min() {
return this.getNumberAttribute('min');
}
set min(value) {
this._min = value;
}
// Temporarily expose input value. Use with caution.
get minInput() {
return this._min;
}
}
exports.PodSecurityPolicyV1Beta1SpecFsGroupRangeOutputReference = PodSecurityPolicyV1Beta1SpecFsGroupRangeOutputReference;
_f = JSII_RTTI_SYMBOL_1;
PodSecurityPolicyV1Beta1SpecFsGroupRangeOutputReference[_f] = { fqn: "@cdktf/provider-kubernetes.podSecurityPolicyV1Beta1.PodSecurityPolicyV1Beta1SpecFsGroupRangeOutputReference", version: "12.0.0" };
class PodSecurityPolicyV1Beta1SpecFsGroupRangeList 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 PodSecurityPolicyV1Beta1SpecFsGroupRangeOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.PodSecurityPolicyV1Beta1SpecFsGroupRangeList = PodSecurityPolicyV1Beta1SpecFsGroupRangeList;
_g = JSII_RTTI_SYMBOL_1;
PodSecurityPolicyV1Beta1SpecFsGroupRangeList[_g] = { fqn: "@cdktf/provider-kubernetes.podSecurityPolicyV1Beta1.PodSecurityPolicyV1Beta1SpecFsGroupRangeList", version: "12.0.0" };
function podSecurityPolicyV1Beta1SpecFsGroupToTerraform(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 {
rule: cdktf.stringToTerraform(struct.rule),
range: cdktf.listMapper(podSecurityPolicyV1Beta1SpecFsGroupRangeToTerraform, true)(struct.range),
};
}
function podSecurityPolicyV1Beta1SpecFsGroupToHclTerraform(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 = {
rule: {
value: cdktf.stringToHclTerraform(struct.rule),
isBlock: false,
type: "simple",
storageClassType: "string",
},
range: {
value: cdktf.listMapperHcl(podSecurityPolicyV1Beta1SpecFsGroupRangeToHclTerraform, true)(struct.range),
isBlock: true,
type: "list",
storageClassType: "PodSecurityPolicyV1Beta1SpecFsGroupRangeList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class PodSecurityPolicyV1Beta1SpecFsGroupOutputReference 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;
// range - computed: false, optional: true, required: false
this._range = new PodSecurityPolicyV1Beta1SpecFsGroupRangeList(this, "range", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._rule !== undefined) {
hasAnyValues = true;
internalValueResult.rule = this._rule;
}
if (this._range?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.range = this._range?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._rule = undefined;
this._range.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._rule = value.rule;
this._range.internalValue = value.range;
}
}
get rule() {
return this.getStringAttribute('rule');
}
set rule(value) {
this._rule = value;
}
// Temporarily expose input value. Use with caution.
get ruleInput() {
return this._rule;
}
get range() {
return this._range;
}
putRange(value) {
this._range.internalValue = value;
}
resetRange() {
this._range.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get rangeInput() {
return this._range.internalValue;
}
}
exports.PodSecurityPolicyV1Beta1SpecFsGroupOutputReference = PodSecurityPolicyV1Beta1SpecFsGroupOutputReference;
_h = JSII_RTTI_SYMBOL_1;
PodSecurityPolicyV1Beta1SpecFsGroupOutputReference[_h] = { fqn: "@cdktf/provider-kubernetes.podSecurityPolicyV1Beta1.PodSecurityPolicyV1Beta1SpecFsGroupOutputReference", version: "12.0.0" };
function podSecurityPolicyV1Beta1SpecHostPortsToTerraform(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 {
max: cdktf.numberToTerraform(struct.max),
min: cdktf.numberToTerraform(struct.min),
};
}
function podSecurityPolicyV1Beta1SpecHostPortsToHclTerraform(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 = {
max: {
value: cdktf.numberToHclTerraform(struct.max),
isBlock: false,
type: "simple",
storageClassType: "number",
},
min: {
value: cdktf.numberToHclTerraform(struct.min),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class PodSecurityPolicyV1Beta1SpecHostPortsOutputReference 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() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._max !== undefined) {
hasAnyValues = true;
internalValueResult.max = this._max;
}
if (this._min !== undefined) {
hasAnyValues = true;
internalValueResult.min = this._min;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._max = undefined;
this._min = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._max = value.max;
this._min = value.min;
}
}
get max() {
return this.getNumberAttribute('max');
}
set max(value) {
this._max = value;
}
// Temporarily expose input value. Use with caution.
get maxInput() {
return this._max;
}
get min() {
return this.getNumberAttribute('min');
}
set min(value) {
this._min = value;
}
// Temporarily expose input value. Use with caution.
get minInput() {
return this._min;
}
}
exports.PodSecurityPolicyV1Beta1SpecHostPortsOutputReference = PodSecurityPolicyV1Beta1SpecHostPortsOutputReference;
_j = JSII_RTTI_SYMBOL_1;
PodSecurityPolicyV1Beta1SpecHostPortsOutputReference[_j] = { fqn: "@cdktf/provider-kubernetes.podSecurityPolicyV1Beta1.PodSecurityPolicyV1Beta1SpecHostPortsOutputReference", version: "12.0.0" };
class PodSecurityPolicyV1Beta1SpecHostPortsList 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 PodSecurityPolicyV1Beta1SpecHostPortsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.PodSecurityPolicyV1Beta1SpecHostPortsList = PodSecurityPolicyV1Beta1SpecHostPortsList;
_k = JSII_RTTI_SYMBOL_1;
PodSecurityPolicyV1Beta1SpecHostPortsList[_k] = { fqn: "@cdktf/provider-kubernetes.podSecurityPolicyV1Beta1.PodSecurityPolicyV1Beta1SpecHostPortsList", version: "12.0.0" };
function podSecurityPolicyV1Beta1SpecRunAsGroupRangeToTerraform(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 {
max: cdktf.numberToTerraform(struct.max),
min: cdktf.numberToTerraform(struct.min),
};
}
function podSecurityPolicyV1Beta1SpecRunAsGroupRangeToHclTerraform(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 = {
max: {
value: cdktf.numberToHclTerraform(struct.max),
isBlock: false,
type: "simple",
storageClassType: "number",
},
min: {
value: cdktf.numberToHclTerraform(struct.min),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class PodSecurityPolicyV1Beta1SpecRunAsGroupRangeOutputReference 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() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._max !== undefined) {
hasAnyValues = true;
internalValueResult.max = this._max;
}
if (this._min !== undefined) {
hasAnyValues = true;
internalValueResult.min = this._min;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._max = undefined;
this._min = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._max = value.max;
this._min = value.min;
}
}
get max() {
return this.getNumberAttribute('max');
}
set max(value) {
this._max = value;
}
// Temporarily expose input value. Use with caution.
get maxInput() {
return this._max;
}
get min() {
return this.getNumberAttribute('min');
}
set min(value) {
this._min = value;
}
// Temporarily expose input value. Use with caution.
get minInput() {
return this._min;
}
}
exports.PodSecurityPolicyV1Beta1SpecRunAsGroupRangeOutputReference = PodSecurityPolicyV1Beta1SpecRunAsGroupRangeOutputReference;
_l = JSII_RTTI_SYMBOL_1;
PodSecurityPolicyV1Beta1SpecRunAsGroupRangeOutputReference[_l] = { fqn: "@cdktf/provider-kubernetes.podSecurityPolicyV1Beta1.PodSecurityPolicyV1Beta1SpecRunAsGroupRangeOutputReference", version: "12.0.0" };
class PodSecurityPolicyV1Beta1SpecRunAsGroupRangeList 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 PodSecurityPolicyV1Beta1SpecRunAsGroupRangeOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.PodSecurityPolicyV1Beta1SpecRunAsGroupRangeList = PodSecurityPolicyV1Beta1SpecRunAsGroupRangeList;
_m = JSII_RTTI_SYMBOL_1;
PodSecurityPolicyV1Beta1SpecRunAsGroupRangeList[_m] = { fqn: "@cdktf/provider-kubernetes.podSecurityPolicyV1Beta1.PodSecurityPolicyV1Beta1SpecRunAsGroupRangeList", version: "12.0.0" };
function podSecurityPolicyV1Beta1SpecRunAsGroupToTerraform(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 {
rule: cdktf.stringToTerraform(struct.rule),
range: cdktf.listMapper(podSecurityPolicyV1Beta1SpecRunAsGroupRangeToTerraform, true)(struct.range),
};
}
function podSecurityPolicyV1Beta1SpecRunAsGroupToHclTerraform(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 = {
rule: {
value: cdktf.stringToHclTerraform(struct.rule),
isBlock: false,
type: "simple",
storageClassType: "string",
},
range: {
value: cdktf.listMapperHcl(podSecurityPolicyV1Beta1SpecRunAsGroupRangeToHclTerraform, true)(struct.range),
isBlock: true,
type: "list",
storageClassType: "PodSecurityPolicyV1Beta1SpecRunAsGroupRangeList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class PodSecurityPolicyV1Beta1SpecRunAsGroupOutputReference 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;
// range - computed: false, optional: true, required: false
this._range = new PodSecurityPolicyV1Beta1SpecRunAsGroupRangeList(this, "range", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._rule !== undefined) {
hasAnyValues = true;
internalValueResult.rule = this._rule;
}
if (this._range?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.range = this._range?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._rule = undefined;
this._range.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._rule = value.rule;
this._range.internalValue = value.range;
}
}
get rule() {
return this.getStringAttribute('rule');
}
set rule(value) {
this._rule = value;
}
// Temporarily expose input value. Use with caution.
get ruleInput() {
return this._rule;
}
get range() {
return this._range;
}
putRange(value) {
this._range.internalValue = value;
}
resetRange() {
this._range.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get rangeInput() {
return this._range.internalValue;
}
}
exports.PodSecurityPolicyV1Beta1SpecRunAsGroupOutputReference = PodSecurityPolicyV1Beta1SpecRunAsGroupOutputReference;
_o = JSII_RTTI_SYMBOL_1;
PodSecurityPolicyV1Beta1SpecRunAsGroupOutputReference[_o] = { fqn: "@cdktf/provider-kubernetes.podSecurityPolicyV1Beta1.PodSecurityPolicyV1Beta1SpecRunAsGroupOutputReference", version: "12.0.0" };
function podSecurityPolicyV1Beta1SpecRunAsUserRangeToTerraform(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 {
max: cdktf.numberToTerraform(struct.max),
min: cdktf.numberToTerraform(struct.min),
};
}
function podSecurityPolicyV1Beta1SpecRunAsUserRangeToHclTerraform(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 = {
max: {
value: cdktf.numberToHclTerraform(struct.max),
isBlock: false,
type: "simple",
storageClassType: "number",
},
min: {
value: cdktf.numberToHclTerraform(struct.min),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class PodSecurityPolicyV1Beta1SpecRunAsUserRangeOutputReference 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() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._max !== undefined) {
hasAnyValues = true;
internalValueResult.max = this._max;
}
if (this._min !== undefined) {
hasAnyValues = true;
internalValueResult.min = this._min;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._max = undefined;
this._min = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._max = value.max;
this._min = value.min;
}
}
get max() {
return this.getNumberAttribute('max');
}
set max(value) {
this._max = value;
}
// Temporarily expose input value. Use with caution.
get maxInput() {
return this._max;
}
get min() {
return this.getNumberAttribute('min');
}
set min(value) {
this._min = value;
}
// Temporarily expose input value. Use with caution.
get minInput() {
return this._min;
}
}
exports.PodSecurityPolicyV1Beta1SpecRunAsUserRangeOutputReference = PodSecurityPolicyV1Beta1SpecRunAsUserRangeOutputReference;
_p = JSII_RTTI_SYMBOL_1;
PodSecurityPolicyV1Beta1SpecRunAsUserRangeOutputReference[_p] = { fqn: "@cdktf/provider-kubernetes.podSecurityPolicyV1Beta1.PodSecurityPolicyV1Beta1SpecRunAsUserRangeOutputReference", version: "12.0.0" };
class PodSecurityPolicyV1Beta1SpecRunAsUserRangeList 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 PodSecurityPolicyV1Beta1SpecRunAsUserRangeOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.PodSecurityPolicyV1Beta1SpecRunAsUserRangeList = PodSecurityPolicyV1Beta1SpecRunAsUserRangeList;
_q = JSII_RTTI_SYMBOL_1;
PodSecurityPolicyV1Beta1SpecRunAsUserRangeList[_q] = { fqn: "@cdktf/provider-kubernetes.podSecurityPolicyV1Beta1.PodSecurityPolicyV1Beta1SpecRunAsUserRangeList", version: "12.0.0" };
function podSecurityPolicyV1Beta1SpecRunAsUserToTerraform(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 {
rule: cdktf.stringToTerraform(struct.rule),
range: cdktf.listMapper(podSecurityPolicyV1Beta1SpecRunAsUserRangeToTerraform, true)(struct.range),
};
}
function podSecurityPolicyV1Beta1SpecRunAsUserToHclTerraform(struct) {
if (!cdktf.canI