@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
1,074 lines (1,073 loc) • 838 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, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BatchPoolMountOutputReference = exports.batchPoolMountToHclTerraform = exports.batchPoolMountToTerraform = exports.BatchPoolMountNfsMountList = exports.BatchPoolMountNfsMountOutputReference = exports.batchPoolMountNfsMountToHclTerraform = exports.batchPoolMountNfsMountToTerraform = exports.BatchPoolMountCifsMountList = exports.BatchPoolMountCifsMountOutputReference = exports.batchPoolMountCifsMountToHclTerraform = exports.batchPoolMountCifsMountToTerraform = exports.BatchPoolMountAzureFileShareList = exports.BatchPoolMountAzureFileShareOutputReference = exports.batchPoolMountAzureFileShareToHclTerraform = exports.batchPoolMountAzureFileShareToTerraform = exports.BatchPoolMountAzureBlobFileSystemOutputReference = exports.batchPoolMountAzureBlobFileSystemToHclTerraform = exports.batchPoolMountAzureBlobFileSystemToTerraform = exports.BatchPoolIdentityOutputReference = exports.batchPoolIdentityToHclTerraform = exports.batchPoolIdentityToTerraform = exports.BatchPoolFixedScaleOutputReference = exports.batchPoolFixedScaleToHclTerraform = exports.batchPoolFixedScaleToTerraform = exports.BatchPoolExtensionsList = exports.BatchPoolExtensionsOutputReference = exports.batchPoolExtensionsToHclTerraform = exports.batchPoolExtensionsToTerraform = exports.BatchPoolDiskEncryptionList = exports.BatchPoolDiskEncryptionOutputReference = exports.batchPoolDiskEncryptionToHclTerraform = exports.batchPoolDiskEncryptionToTerraform = exports.BatchPoolDataDisksList = exports.BatchPoolDataDisksOutputReference = exports.batchPoolDataDisksToHclTerraform = exports.batchPoolDataDisksToTerraform = exports.BatchPoolContainerConfigurationOutputReference = exports.batchPoolContainerConfigurationToHclTerraform = exports.batchPoolContainerConfigurationToTerraform = exports.BatchPoolContainerConfigurationContainerRegistriesList = exports.BatchPoolContainerConfigurationContainerRegistriesOutputReference = exports.batchPoolContainerConfigurationContainerRegistriesToHclTerraform = exports.batchPoolContainerConfigurationContainerRegistriesToTerraform = exports.BatchPoolCertificateList = exports.BatchPoolCertificateOutputReference = exports.batchPoolCertificateToHclTerraform = exports.batchPoolCertificateToTerraform = exports.BatchPoolAutoScaleOutputReference = exports.batchPoolAutoScaleToHclTerraform = exports.batchPoolAutoScaleToTerraform = void 0;
exports.BatchPoolUserAccountsLinuxUserConfigurationOutputReference = exports.batchPoolUserAccountsLinuxUserConfigurationToHclTerraform = exports.batchPoolUserAccountsLinuxUserConfigurationToTerraform = exports.BatchPoolTimeoutsOutputReference = exports.batchPoolTimeoutsToHclTerraform = exports.batchPoolTimeoutsToTerraform = exports.BatchPoolTaskSchedulingPolicyList = exports.BatchPoolTaskSchedulingPolicyOutputReference = exports.batchPoolTaskSchedulingPolicyToHclTerraform = exports.batchPoolTaskSchedulingPolicyToTerraform = exports.BatchPoolStorageImageReferenceOutputReference = exports.batchPoolStorageImageReferenceToHclTerraform = exports.batchPoolStorageImageReferenceToTerraform = exports.BatchPoolStartTaskOutputReference = exports.batchPoolStartTaskToHclTerraform = exports.batchPoolStartTaskToTerraform = exports.BatchPoolStartTaskUserIdentityOutputReference = exports.batchPoolStartTaskUserIdentityToHclTerraform = exports.batchPoolStartTaskUserIdentityToTerraform = exports.BatchPoolStartTaskUserIdentityAutoUserOutputReference = exports.batchPoolStartTaskUserIdentityAutoUserToHclTerraform = exports.batchPoolStartTaskUserIdentityAutoUserToTerraform = exports.BatchPoolStartTaskResourceFileList = exports.BatchPoolStartTaskResourceFileOutputReference = exports.batchPoolStartTaskResourceFileToHclTerraform = exports.batchPoolStartTaskResourceFileToTerraform = exports.BatchPoolStartTaskContainerList = exports.BatchPoolStartTaskContainerOutputReference = exports.batchPoolStartTaskContainerToHclTerraform = exports.batchPoolStartTaskContainerToTerraform = exports.BatchPoolStartTaskContainerRegistryList = exports.BatchPoolStartTaskContainerRegistryOutputReference = exports.batchPoolStartTaskContainerRegistryToHclTerraform = exports.batchPoolStartTaskContainerRegistryToTerraform = exports.BatchPoolNodePlacementList = exports.BatchPoolNodePlacementOutputReference = exports.batchPoolNodePlacementToHclTerraform = exports.batchPoolNodePlacementToTerraform = exports.BatchPoolNetworkConfigurationOutputReference = exports.batchPoolNetworkConfigurationToHclTerraform = exports.batchPoolNetworkConfigurationToTerraform = exports.BatchPoolNetworkConfigurationEndpointConfigurationList = exports.BatchPoolNetworkConfigurationEndpointConfigurationOutputReference = exports.batchPoolNetworkConfigurationEndpointConfigurationToHclTerraform = exports.batchPoolNetworkConfigurationEndpointConfigurationToTerraform = exports.BatchPoolNetworkConfigurationEndpointConfigurationNetworkSecurityGroupRulesList = exports.BatchPoolNetworkConfigurationEndpointConfigurationNetworkSecurityGroupRulesOutputReference = exports.batchPoolNetworkConfigurationEndpointConfigurationNetworkSecurityGroupRulesToHclTerraform = exports.batchPoolNetworkConfigurationEndpointConfigurationNetworkSecurityGroupRulesToTerraform = exports.BatchPoolMountList = void 0;
exports.BatchPool = exports.BatchPoolWindowsList = exports.BatchPoolWindowsOutputReference = exports.batchPoolWindowsToHclTerraform = exports.batchPoolWindowsToTerraform = exports.BatchPoolUserAccountsList = exports.BatchPoolUserAccountsOutputReference = exports.batchPoolUserAccountsToHclTerraform = exports.batchPoolUserAccountsToTerraform = exports.BatchPoolUserAccountsWindowsUserConfigurationList = exports.BatchPoolUserAccountsWindowsUserConfigurationOutputReference = exports.batchPoolUserAccountsWindowsUserConfigurationToHclTerraform = exports.batchPoolUserAccountsWindowsUserConfigurationToTerraform = exports.BatchPoolUserAccountsLinuxUserConfigurationList = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function batchPoolAutoScaleToTerraform(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 {
evaluation_interval: cdktf.stringToTerraform(struct.evaluationInterval),
formula: cdktf.stringToTerraform(struct.formula),
};
}
exports.batchPoolAutoScaleToTerraform = batchPoolAutoScaleToTerraform;
function batchPoolAutoScaleToHclTerraform(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 = {
evaluation_interval: {
value: cdktf.stringToHclTerraform(struct.evaluationInterval),
isBlock: false,
type: "simple",
storageClassType: "string",
},
formula: {
value: cdktf.stringToHclTerraform(struct.formula),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.batchPoolAutoScaleToHclTerraform = batchPoolAutoScaleToHclTerraform;
class BatchPoolAutoScaleOutputReference 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._evaluationInterval !== undefined) {
hasAnyValues = true;
internalValueResult.evaluationInterval = this._evaluationInterval;
}
if (this._formula !== undefined) {
hasAnyValues = true;
internalValueResult.formula = this._formula;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._evaluationInterval = undefined;
this._formula = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._evaluationInterval = value.evaluationInterval;
this._formula = value.formula;
}
}
get evaluationInterval() {
return this.getStringAttribute('evaluation_interval');
}
set evaluationInterval(value) {
this._evaluationInterval = value;
}
resetEvaluationInterval() {
this._evaluationInterval = undefined;
}
// Temporarily expose input value. Use with caution.
get evaluationIntervalInput() {
return this._evaluationInterval;
}
get formula() {
return this.getStringAttribute('formula');
}
set formula(value) {
this._formula = value;
}
// Temporarily expose input value. Use with caution.
get formulaInput() {
return this._formula;
}
}
exports.BatchPoolAutoScaleOutputReference = BatchPoolAutoScaleOutputReference;
_a = JSII_RTTI_SYMBOL_1;
BatchPoolAutoScaleOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.batchPool.BatchPoolAutoScaleOutputReference", version: "12.27.0" };
function batchPoolCertificateToTerraform(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 {
id: cdktf.stringToTerraform(struct.id),
store_location: cdktf.stringToTerraform(struct.storeLocation),
store_name: cdktf.stringToTerraform(struct.storeName),
visibility: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.visibility),
};
}
exports.batchPoolCertificateToTerraform = batchPoolCertificateToTerraform;
function batchPoolCertificateToHclTerraform(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 = {
id: {
value: cdktf.stringToHclTerraform(struct.id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
store_location: {
value: cdktf.stringToHclTerraform(struct.storeLocation),
isBlock: false,
type: "simple",
storageClassType: "string",
},
store_name: {
value: cdktf.stringToHclTerraform(struct.storeName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
visibility: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.visibility),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.batchPoolCertificateToHclTerraform = batchPoolCertificateToHclTerraform;
class BatchPoolCertificateOutputReference 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._id !== undefined) {
hasAnyValues = true;
internalValueResult.id = this._id;
}
if (this._storeLocation !== undefined) {
hasAnyValues = true;
internalValueResult.storeLocation = this._storeLocation;
}
if (this._storeName !== undefined) {
hasAnyValues = true;
internalValueResult.storeName = this._storeName;
}
if (this._visibility !== undefined) {
hasAnyValues = true;
internalValueResult.visibility = this._visibility;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._id = undefined;
this._storeLocation = undefined;
this._storeName = undefined;
this._visibility = 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._id = value.id;
this._storeLocation = value.storeLocation;
this._storeName = value.storeName;
this._visibility = value.visibility;
}
}
get id() {
return this.getStringAttribute('id');
}
set id(value) {
this._id = value;
}
// Temporarily expose input value. Use with caution.
get idInput() {
return this._id;
}
get storeLocation() {
return this.getStringAttribute('store_location');
}
set storeLocation(value) {
this._storeLocation = value;
}
// Temporarily expose input value. Use with caution.
get storeLocationInput() {
return this._storeLocation;
}
get storeName() {
return this.getStringAttribute('store_name');
}
set storeName(value) {
this._storeName = value;
}
resetStoreName() {
this._storeName = undefined;
}
// Temporarily expose input value. Use with caution.
get storeNameInput() {
return this._storeName;
}
get visibility() {
return cdktf.Fn.tolist(this.getListAttribute('visibility'));
}
set visibility(value) {
this._visibility = value;
}
resetVisibility() {
this._visibility = undefined;
}
// Temporarily expose input value. Use with caution.
get visibilityInput() {
return this._visibility;
}
}
exports.BatchPoolCertificateOutputReference = BatchPoolCertificateOutputReference;
_b = JSII_RTTI_SYMBOL_1;
BatchPoolCertificateOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.batchPool.BatchPoolCertificateOutputReference", version: "12.27.0" };
class BatchPoolCertificateList 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 BatchPoolCertificateOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.BatchPoolCertificateList = BatchPoolCertificateList;
_c = JSII_RTTI_SYMBOL_1;
BatchPoolCertificateList[_c] = { fqn: "@cdktf/provider-azurerm.batchPool.BatchPoolCertificateList", version: "12.27.0" };
function batchPoolContainerConfigurationContainerRegistriesToTerraform(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 {
password: cdktf.stringToTerraform(struct.password),
registry_server: cdktf.stringToTerraform(struct.registryServer),
user_assigned_identity_id: cdktf.stringToTerraform(struct.userAssignedIdentityId),
user_name: cdktf.stringToTerraform(struct.userName),
};
}
exports.batchPoolContainerConfigurationContainerRegistriesToTerraform = batchPoolContainerConfigurationContainerRegistriesToTerraform;
function batchPoolContainerConfigurationContainerRegistriesToHclTerraform(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 = {
password: {
value: cdktf.stringToHclTerraform(struct.password),
isBlock: false,
type: "simple",
storageClassType: "string",
},
registry_server: {
value: cdktf.stringToHclTerraform(struct.registryServer),
isBlock: false,
type: "simple",
storageClassType: "string",
},
user_assigned_identity_id: {
value: cdktf.stringToHclTerraform(struct.userAssignedIdentityId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
user_name: {
value: cdktf.stringToHclTerraform(struct.userName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.batchPoolContainerConfigurationContainerRegistriesToHclTerraform = batchPoolContainerConfigurationContainerRegistriesToHclTerraform;
class BatchPoolContainerConfigurationContainerRegistriesOutputReference 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._password !== undefined) {
hasAnyValues = true;
internalValueResult.password = this._password;
}
if (this._registryServer !== undefined) {
hasAnyValues = true;
internalValueResult.registryServer = this._registryServer;
}
if (this._userAssignedIdentityId !== undefined) {
hasAnyValues = true;
internalValueResult.userAssignedIdentityId = this._userAssignedIdentityId;
}
if (this._userName !== undefined) {
hasAnyValues = true;
internalValueResult.userName = this._userName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._password = undefined;
this._registryServer = undefined;
this._userAssignedIdentityId = undefined;
this._userName = 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._password = value.password;
this._registryServer = value.registryServer;
this._userAssignedIdentityId = value.userAssignedIdentityId;
this._userName = value.userName;
}
}
get password() {
return this.getStringAttribute('password');
}
set password(value) {
this._password = value;
}
resetPassword() {
this._password = undefined;
}
// Temporarily expose input value. Use with caution.
get passwordInput() {
return this._password;
}
get registryServer() {
return this.getStringAttribute('registry_server');
}
set registryServer(value) {
this._registryServer = value;
}
resetRegistryServer() {
this._registryServer = undefined;
}
// Temporarily expose input value. Use with caution.
get registryServerInput() {
return this._registryServer;
}
get userAssignedIdentityId() {
return this.getStringAttribute('user_assigned_identity_id');
}
set userAssignedIdentityId(value) {
this._userAssignedIdentityId = value;
}
resetUserAssignedIdentityId() {
this._userAssignedIdentityId = undefined;
}
// Temporarily expose input value. Use with caution.
get userAssignedIdentityIdInput() {
return this._userAssignedIdentityId;
}
get userName() {
return this.getStringAttribute('user_name');
}
set userName(value) {
this._userName = value;
}
resetUserName() {
this._userName = undefined;
}
// Temporarily expose input value. Use with caution.
get userNameInput() {
return this._userName;
}
}
exports.BatchPoolContainerConfigurationContainerRegistriesOutputReference = BatchPoolContainerConfigurationContainerRegistriesOutputReference;
_d = JSII_RTTI_SYMBOL_1;
BatchPoolContainerConfigurationContainerRegistriesOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.batchPool.BatchPoolContainerConfigurationContainerRegistriesOutputReference", version: "12.27.0" };
class BatchPoolContainerConfigurationContainerRegistriesList 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 BatchPoolContainerConfigurationContainerRegistriesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.BatchPoolContainerConfigurationContainerRegistriesList = BatchPoolContainerConfigurationContainerRegistriesList;
_e = JSII_RTTI_SYMBOL_1;
BatchPoolContainerConfigurationContainerRegistriesList[_e] = { fqn: "@cdktf/provider-azurerm.batchPool.BatchPoolContainerConfigurationContainerRegistriesList", version: "12.27.0" };
function batchPoolContainerConfigurationToTerraform(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 {
container_image_names: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.containerImageNames),
container_registries: cdktf.listMapper(batchPoolContainerConfigurationContainerRegistriesToTerraform, false)(struct.containerRegistries),
type: cdktf.stringToTerraform(struct.type),
};
}
exports.batchPoolContainerConfigurationToTerraform = batchPoolContainerConfigurationToTerraform;
function batchPoolContainerConfigurationToHclTerraform(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 = {
container_image_names: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.containerImageNames),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
container_registries: {
value: cdktf.listMapperHcl(batchPoolContainerConfigurationContainerRegistriesToHclTerraform, false)(struct.containerRegistries),
isBlock: true,
type: "list",
storageClassType: "BatchPoolContainerConfigurationContainerRegistriesList",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.batchPoolContainerConfigurationToHclTerraform = batchPoolContainerConfigurationToHclTerraform;
class BatchPoolContainerConfigurationOutputReference 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;
// container_registries - computed: false, optional: true, required: false
this._containerRegistries = new BatchPoolContainerConfigurationContainerRegistriesList(this, "container_registries", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._containerImageNames !== undefined) {
hasAnyValues = true;
internalValueResult.containerImageNames = this._containerImageNames;
}
if (this._containerRegistries?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.containerRegistries = this._containerRegistries?.internalValue;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._containerImageNames = undefined;
this._containerRegistries.internalValue = undefined;
this._type = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._containerImageNames = value.containerImageNames;
this._containerRegistries.internalValue = value.containerRegistries;
this._type = value.type;
}
}
get containerImageNames() {
return cdktf.Fn.tolist(this.getListAttribute('container_image_names'));
}
set containerImageNames(value) {
this._containerImageNames = value;
}
resetContainerImageNames() {
this._containerImageNames = undefined;
}
// Temporarily expose input value. Use with caution.
get containerImageNamesInput() {
return this._containerImageNames;
}
get containerRegistries() {
return this._containerRegistries;
}
putContainerRegistries(value) {
this._containerRegistries.internalValue = value;
}
resetContainerRegistries() {
this._containerRegistries.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get containerRegistriesInput() {
return this._containerRegistries.internalValue;
}
get type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
resetType() {
this._type = undefined;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
}
exports.BatchPoolContainerConfigurationOutputReference = BatchPoolContainerConfigurationOutputReference;
_f = JSII_RTTI_SYMBOL_1;
BatchPoolContainerConfigurationOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.batchPool.BatchPoolContainerConfigurationOutputReference", version: "12.27.0" };
function batchPoolDataDisksToTerraform(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 {
caching: cdktf.stringToTerraform(struct.caching),
disk_size_gb: cdktf.numberToTerraform(struct.diskSizeGb),
lun: cdktf.numberToTerraform(struct.lun),
storage_account_type: cdktf.stringToTerraform(struct.storageAccountType),
};
}
exports.batchPoolDataDisksToTerraform = batchPoolDataDisksToTerraform;
function batchPoolDataDisksToHclTerraform(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 = {
caching: {
value: cdktf.stringToHclTerraform(struct.caching),
isBlock: false,
type: "simple",
storageClassType: "string",
},
disk_size_gb: {
value: cdktf.numberToHclTerraform(struct.diskSizeGb),
isBlock: false,
type: "simple",
storageClassType: "number",
},
lun: {
value: cdktf.numberToHclTerraform(struct.lun),
isBlock: false,
type: "simple",
storageClassType: "number",
},
storage_account_type: {
value: cdktf.stringToHclTerraform(struct.storageAccountType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.batchPoolDataDisksToHclTerraform = batchPoolDataDisksToHclTerraform;
class BatchPoolDataDisksOutputReference 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._caching !== undefined) {
hasAnyValues = true;
internalValueResult.caching = this._caching;
}
if (this._diskSizeGb !== undefined) {
hasAnyValues = true;
internalValueResult.diskSizeGb = this._diskSizeGb;
}
if (this._lun !== undefined) {
hasAnyValues = true;
internalValueResult.lun = this._lun;
}
if (this._storageAccountType !== undefined) {
hasAnyValues = true;
internalValueResult.storageAccountType = this._storageAccountType;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._caching = undefined;
this._diskSizeGb = undefined;
this._lun = undefined;
this._storageAccountType = 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._caching = value.caching;
this._diskSizeGb = value.diskSizeGb;
this._lun = value.lun;
this._storageAccountType = value.storageAccountType;
}
}
get caching() {
return this.getStringAttribute('caching');
}
set caching(value) {
this._caching = value;
}
resetCaching() {
this._caching = undefined;
}
// Temporarily expose input value. Use with caution.
get cachingInput() {
return this._caching;
}
get diskSizeGb() {
return this.getNumberAttribute('disk_size_gb');
}
set diskSizeGb(value) {
this._diskSizeGb = value;
}
// Temporarily expose input value. Use with caution.
get diskSizeGbInput() {
return this._diskSizeGb;
}
get lun() {
return this.getNumberAttribute('lun');
}
set lun(value) {
this._lun = value;
}
// Temporarily expose input value. Use with caution.
get lunInput() {
return this._lun;
}
get storageAccountType() {
return this.getStringAttribute('storage_account_type');
}
set storageAccountType(value) {
this._storageAccountType = value;
}
resetStorageAccountType() {
this._storageAccountType = undefined;
}
// Temporarily expose input value. Use with caution.
get storageAccountTypeInput() {
return this._storageAccountType;
}
}
exports.BatchPoolDataDisksOutputReference = BatchPoolDataDisksOutputReference;
_g = JSII_RTTI_SYMBOL_1;
BatchPoolDataDisksOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.batchPool.BatchPoolDataDisksOutputReference", version: "12.27.0" };
class BatchPoolDataDisksList 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 BatchPoolDataDisksOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.BatchPoolDataDisksList = BatchPoolDataDisksList;
_h = JSII_RTTI_SYMBOL_1;
BatchPoolDataDisksList[_h] = { fqn: "@cdktf/provider-azurerm.batchPool.BatchPoolDataDisksList", version: "12.27.0" };
function batchPoolDiskEncryptionToTerraform(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 {
disk_encryption_target: cdktf.stringToTerraform(struct.diskEncryptionTarget),
};
}
exports.batchPoolDiskEncryptionToTerraform = batchPoolDiskEncryptionToTerraform;
function batchPoolDiskEncryptionToHclTerraform(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 = {
disk_encryption_target: {
value: cdktf.stringToHclTerraform(struct.diskEncryptionTarget),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.batchPoolDiskEncryptionToHclTerraform = batchPoolDiskEncryptionToHclTerraform;
class BatchPoolDiskEncryptionOutputReference 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._diskEncryptionTarget !== undefined) {
hasAnyValues = true;
internalValueResult.diskEncryptionTarget = this._diskEncryptionTarget;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._diskEncryptionTarget = 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._diskEncryptionTarget = value.diskEncryptionTarget;
}
}
get diskEncryptionTarget() {
return this.getStringAttribute('disk_encryption_target');
}
set diskEncryptionTarget(value) {
this._diskEncryptionTarget = value;
}
// Temporarily expose input value. Use with caution.
get diskEncryptionTargetInput() {
return this._diskEncryptionTarget;
}
}
exports.BatchPoolDiskEncryptionOutputReference = BatchPoolDiskEncryptionOutputReference;
_j = JSII_RTTI_SYMBOL_1;
BatchPoolDiskEncryptionOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.batchPool.BatchPoolDiskEncryptionOutputReference", version: "12.27.0" };
class BatchPoolDiskEncryptionList 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 BatchPoolDiskEncryptionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.BatchPoolDiskEncryptionList = BatchPoolDiskEncryptionList;
_k = JSII_RTTI_SYMBOL_1;
BatchPoolDiskEncryptionList[_k] = { fqn: "@cdktf/provider-azurerm.batchPool.BatchPoolDiskEncryptionList", version: "12.27.0" };
function batchPoolExtensionsToTerraform(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 {
auto_upgrade_minor_version: cdktf.booleanToTerraform(struct.autoUpgradeMinorVersion),
automatic_upgrade_enabled: cdktf.booleanToTerraform(struct.automaticUpgradeEnabled),
name: cdktf.stringToTerraform(struct.name),
protected_settings: cdktf.stringToTerraform(struct.protectedSettings),
provision_after_extensions: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.provisionAfterExtensions),
publisher: cdktf.stringToTerraform(struct.publisher),
settings_json: cdktf.stringToTerraform(struct.settingsJson),
type: cdktf.stringToTerraform(struct.type),
type_handler_version: cdktf.stringToTerraform(struct.typeHandlerVersion),
};
}
exports.batchPoolExtensionsToTerraform = batchPoolExtensionsToTerraform;
function batchPoolExtensionsToHclTerraform(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 = {
auto_upgrade_minor_version: {
value: cdktf.booleanToHclTerraform(struct.autoUpgradeMinorVersion),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
automatic_upgrade_enabled: {
value: cdktf.booleanToHclTerraform(struct.automaticUpgradeEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
protected_settings: {
value: cdktf.stringToHclTerraform(struct.protectedSettings),
isBlock: false,
type: "simple",
storageClassType: "string",
},
provision_after_extensions: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.provisionAfterExtensions),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
publisher: {
value: cdktf.stringToHclTerraform(struct.publisher),
isBlock: false,
type: "simple",
storageClassType: "string",
},
settings_json: {
value: cdktf.stringToHclTerraform(struct.settingsJson),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type_handler_version: {
value: cdktf.stringToHclTerraform(struct.typeHandlerVersion),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.batchPoolExtensionsToHclTerraform = batchPoolExtensionsToHclTerraform;
class BatchPoolExtensionsOutputReference 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._autoUpgradeMinorVersion !== undefined) {
hasAnyValues = true;
internalValueResult.autoUpgradeMinorVersion = this._autoUpgradeMinorVersion;
}
if (this._automaticUpgradeEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.automaticUpgradeEnabled = this._automaticUpgradeEnabled;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._protectedSettings !== undefined) {
hasAnyValues = true;
internalValueResult.protectedSettings = this._protectedSettings;
}
if (this._provisionAfterExtensions !== undefined) {
hasAnyValues = true;
internalValueResult.provisionAfterExtensions = this._provisionAfterExtensions;
}
if (this._publisher !== undefined) {
hasAnyValues = true;
internalValueResult.publisher = this._publisher;
}
if (this._settingsJson !== undefined) {
hasAnyValues = true;
internalValueResult.settingsJson = this._settingsJson;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
if (this._typeHandlerVersion !== undefined) {
hasAnyValues = true;
internalValueResult.typeHandlerVersion = this._typeHandlerVersion;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._autoUpgradeMinorVersion = undefined;
this._automaticUpgradeEnabled = undefined;
this._name = undefined;
this._protectedSettings = undefined;
this._provisionAfterExtensions = undefined;
this._publisher = undefined;
this._settingsJson = undefined;
this._type = undefined;
this._typeHandlerVersion = 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._autoUpgradeMinorVersion = value.autoUpgradeMinorVersion;
this._automaticUpgradeEnabled = value.automaticUpgradeEnabled;
this._name = value.name;
this._protectedSettings = value.protectedSettings;
this._provisionAfterExtensions = value.provisionAfterExtensions;
this._publisher = value.publisher;
this._settingsJson = value.settingsJson;
this._type = value.type;
this._typeHandlerVersion = value.typeHandlerVersion;
}
}
get autoUpgradeMinorVersion() {
return this.getBooleanAttribute('auto_upgrade_minor_version');
}
set autoUpgradeMinorVersion(value) {
this._autoUpgradeMinorVersion = value;
}
resetAutoUpgradeMinorVersion() {