UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,195 lines 192 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; Object.defineProperty(exports, "__esModule", { value: true }); exports.VirtualMachineRunCommand = exports.VirtualMachineRunCommandTimeoutsOutputReference = exports.virtualMachineRunCommandTimeoutsToHclTerraform = exports.virtualMachineRunCommandTimeoutsToTerraform = exports.VirtualMachineRunCommandSourceOutputReference = exports.virtualMachineRunCommandSourceToHclTerraform = exports.virtualMachineRunCommandSourceToTerraform = exports.VirtualMachineRunCommandSourceScriptUriManagedIdentityOutputReference = exports.virtualMachineRunCommandSourceScriptUriManagedIdentityToHclTerraform = exports.virtualMachineRunCommandSourceScriptUriManagedIdentityToTerraform = exports.VirtualMachineRunCommandProtectedParameterList = exports.VirtualMachineRunCommandProtectedParameterOutputReference = exports.virtualMachineRunCommandProtectedParameterToHclTerraform = exports.virtualMachineRunCommandProtectedParameterToTerraform = exports.VirtualMachineRunCommandParameterList = exports.VirtualMachineRunCommandParameterOutputReference = exports.virtualMachineRunCommandParameterToHclTerraform = exports.virtualMachineRunCommandParameterToTerraform = exports.VirtualMachineRunCommandOutputBlobManagedIdentityOutputReference = exports.virtualMachineRunCommandOutputBlobManagedIdentityToHclTerraform = exports.virtualMachineRunCommandOutputBlobManagedIdentityToTerraform = exports.VirtualMachineRunCommandErrorBlobManagedIdentityOutputReference = exports.virtualMachineRunCommandErrorBlobManagedIdentityToHclTerraform = exports.virtualMachineRunCommandErrorBlobManagedIdentityToTerraform = exports.VirtualMachineRunCommandInstanceViewList = exports.VirtualMachineRunCommandInstanceViewOutputReference = exports.virtualMachineRunCommandInstanceViewToHclTerraform = exports.virtualMachineRunCommandInstanceViewToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function virtualMachineRunCommandInstanceViewToTerraform(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 {}; } exports.virtualMachineRunCommandInstanceViewToTerraform = virtualMachineRunCommandInstanceViewToTerraform; function virtualMachineRunCommandInstanceViewToHclTerraform(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; } exports.virtualMachineRunCommandInstanceViewToHclTerraform = virtualMachineRunCommandInstanceViewToHclTerraform; class VirtualMachineRunCommandInstanceViewOutputReference 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; } } // end_time - computed: true, optional: false, required: false get endTime() { return this.getStringAttribute('end_time'); } // error_message - computed: true, optional: false, required: false get errorMessage() { return this.getStringAttribute('error_message'); } // execution_message - computed: true, optional: false, required: false get executionMessage() { return this.getStringAttribute('execution_message'); } // execution_state - computed: true, optional: false, required: false get executionState() { return this.getStringAttribute('execution_state'); } // exit_code - computed: true, optional: false, required: false get exitCode() { return this.getNumberAttribute('exit_code'); } // output - computed: true, optional: false, required: false get output() { return this.getStringAttribute('output'); } // start_time - computed: true, optional: false, required: false get startTime() { return this.getStringAttribute('start_time'); } } exports.VirtualMachineRunCommandInstanceViewOutputReference = VirtualMachineRunCommandInstanceViewOutputReference; _a = JSII_RTTI_SYMBOL_1; VirtualMachineRunCommandInstanceViewOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.virtualMachineRunCommand.VirtualMachineRunCommandInstanceViewOutputReference", version: "12.27.0" }; class VirtualMachineRunCommandInstanceViewList 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 VirtualMachineRunCommandInstanceViewOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VirtualMachineRunCommandInstanceViewList = VirtualMachineRunCommandInstanceViewList; _b = JSII_RTTI_SYMBOL_1; VirtualMachineRunCommandInstanceViewList[_b] = { fqn: "@cdktf/provider-azurerm.virtualMachineRunCommand.VirtualMachineRunCommandInstanceViewList", version: "12.27.0" }; function virtualMachineRunCommandErrorBlobManagedIdentityToTerraform(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 { client_id: cdktf.stringToTerraform(struct.clientId), object_id: cdktf.stringToTerraform(struct.objectId), }; } exports.virtualMachineRunCommandErrorBlobManagedIdentityToTerraform = virtualMachineRunCommandErrorBlobManagedIdentityToTerraform; function virtualMachineRunCommandErrorBlobManagedIdentityToHclTerraform(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 = { client_id: { value: cdktf.stringToHclTerraform(struct.clientId), isBlock: false, type: "simple", storageClassType: "string", }, object_id: { value: cdktf.stringToHclTerraform(struct.objectId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualMachineRunCommandErrorBlobManagedIdentityToHclTerraform = virtualMachineRunCommandErrorBlobManagedIdentityToHclTerraform; class VirtualMachineRunCommandErrorBlobManagedIdentityOutputReference 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._clientId !== undefined) { hasAnyValues = true; internalValueResult.clientId = this._clientId; } if (this._objectId !== undefined) { hasAnyValues = true; internalValueResult.objectId = this._objectId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._clientId = undefined; this._objectId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._clientId = value.clientId; this._objectId = value.objectId; } } get clientId() { return this.getStringAttribute('client_id'); } set clientId(value) { this._clientId = value; } resetClientId() { this._clientId = undefined; } // Temporarily expose input value. Use with caution. get clientIdInput() { return this._clientId; } get objectId() { return this.getStringAttribute('object_id'); } set objectId(value) { this._objectId = value; } resetObjectId() { this._objectId = undefined; } // Temporarily expose input value. Use with caution. get objectIdInput() { return this._objectId; } } exports.VirtualMachineRunCommandErrorBlobManagedIdentityOutputReference = VirtualMachineRunCommandErrorBlobManagedIdentityOutputReference; _c = JSII_RTTI_SYMBOL_1; VirtualMachineRunCommandErrorBlobManagedIdentityOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.virtualMachineRunCommand.VirtualMachineRunCommandErrorBlobManagedIdentityOutputReference", version: "12.27.0" }; function virtualMachineRunCommandOutputBlobManagedIdentityToTerraform(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 { client_id: cdktf.stringToTerraform(struct.clientId), object_id: cdktf.stringToTerraform(struct.objectId), }; } exports.virtualMachineRunCommandOutputBlobManagedIdentityToTerraform = virtualMachineRunCommandOutputBlobManagedIdentityToTerraform; function virtualMachineRunCommandOutputBlobManagedIdentityToHclTerraform(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 = { client_id: { value: cdktf.stringToHclTerraform(struct.clientId), isBlock: false, type: "simple", storageClassType: "string", }, object_id: { value: cdktf.stringToHclTerraform(struct.objectId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualMachineRunCommandOutputBlobManagedIdentityToHclTerraform = virtualMachineRunCommandOutputBlobManagedIdentityToHclTerraform; class VirtualMachineRunCommandOutputBlobManagedIdentityOutputReference 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._clientId !== undefined) { hasAnyValues = true; internalValueResult.clientId = this._clientId; } if (this._objectId !== undefined) { hasAnyValues = true; internalValueResult.objectId = this._objectId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._clientId = undefined; this._objectId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._clientId = value.clientId; this._objectId = value.objectId; } } get clientId() { return this.getStringAttribute('client_id'); } set clientId(value) { this._clientId = value; } resetClientId() { this._clientId = undefined; } // Temporarily expose input value. Use with caution. get clientIdInput() { return this._clientId; } get objectId() { return this.getStringAttribute('object_id'); } set objectId(value) { this._objectId = value; } resetObjectId() { this._objectId = undefined; } // Temporarily expose input value. Use with caution. get objectIdInput() { return this._objectId; } } exports.VirtualMachineRunCommandOutputBlobManagedIdentityOutputReference = VirtualMachineRunCommandOutputBlobManagedIdentityOutputReference; _d = JSII_RTTI_SYMBOL_1; VirtualMachineRunCommandOutputBlobManagedIdentityOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.virtualMachineRunCommand.VirtualMachineRunCommandOutputBlobManagedIdentityOutputReference", version: "12.27.0" }; function virtualMachineRunCommandParameterToTerraform(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 { name: cdktf.stringToTerraform(struct.name), value: cdktf.stringToTerraform(struct.value), }; } exports.virtualMachineRunCommandParameterToTerraform = virtualMachineRunCommandParameterToTerraform; function virtualMachineRunCommandParameterToHclTerraform(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 = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualMachineRunCommandParameterToHclTerraform = virtualMachineRunCommandParameterToHclTerraform; class VirtualMachineRunCommandParameterOutputReference 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._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._value = 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._name = value.name; this._value = value.value; } } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.VirtualMachineRunCommandParameterOutputReference = VirtualMachineRunCommandParameterOutputReference; _e = JSII_RTTI_SYMBOL_1; VirtualMachineRunCommandParameterOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.virtualMachineRunCommand.VirtualMachineRunCommandParameterOutputReference", version: "12.27.0" }; class VirtualMachineRunCommandParameterList 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 VirtualMachineRunCommandParameterOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VirtualMachineRunCommandParameterList = VirtualMachineRunCommandParameterList; _f = JSII_RTTI_SYMBOL_1; VirtualMachineRunCommandParameterList[_f] = { fqn: "@cdktf/provider-azurerm.virtualMachineRunCommand.VirtualMachineRunCommandParameterList", version: "12.27.0" }; function virtualMachineRunCommandProtectedParameterToTerraform(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 { name: cdktf.stringToTerraform(struct.name), value: cdktf.stringToTerraform(struct.value), }; } exports.virtualMachineRunCommandProtectedParameterToTerraform = virtualMachineRunCommandProtectedParameterToTerraform; function virtualMachineRunCommandProtectedParameterToHclTerraform(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 = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualMachineRunCommandProtectedParameterToHclTerraform = virtualMachineRunCommandProtectedParameterToHclTerraform; class VirtualMachineRunCommandProtectedParameterOutputReference 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._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._value = 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._name = value.name; this._value = value.value; } } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.VirtualMachineRunCommandProtectedParameterOutputReference = VirtualMachineRunCommandProtectedParameterOutputReference; _g = JSII_RTTI_SYMBOL_1; VirtualMachineRunCommandProtectedParameterOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.virtualMachineRunCommand.VirtualMachineRunCommandProtectedParameterOutputReference", version: "12.27.0" }; class VirtualMachineRunCommandProtectedParameterList 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 VirtualMachineRunCommandProtectedParameterOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VirtualMachineRunCommandProtectedParameterList = VirtualMachineRunCommandProtectedParameterList; _h = JSII_RTTI_SYMBOL_1; VirtualMachineRunCommandProtectedParameterList[_h] = { fqn: "@cdktf/provider-azurerm.virtualMachineRunCommand.VirtualMachineRunCommandProtectedParameterList", version: "12.27.0" }; function virtualMachineRunCommandSourceScriptUriManagedIdentityToTerraform(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 { client_id: cdktf.stringToTerraform(struct.clientId), object_id: cdktf.stringToTerraform(struct.objectId), }; } exports.virtualMachineRunCommandSourceScriptUriManagedIdentityToTerraform = virtualMachineRunCommandSourceScriptUriManagedIdentityToTerraform; function virtualMachineRunCommandSourceScriptUriManagedIdentityToHclTerraform(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 = { client_id: { value: cdktf.stringToHclTerraform(struct.clientId), isBlock: false, type: "simple", storageClassType: "string", }, object_id: { value: cdktf.stringToHclTerraform(struct.objectId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualMachineRunCommandSourceScriptUriManagedIdentityToHclTerraform = virtualMachineRunCommandSourceScriptUriManagedIdentityToHclTerraform; class VirtualMachineRunCommandSourceScriptUriManagedIdentityOutputReference 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._clientId !== undefined) { hasAnyValues = true; internalValueResult.clientId = this._clientId; } if (this._objectId !== undefined) { hasAnyValues = true; internalValueResult.objectId = this._objectId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._clientId = undefined; this._objectId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._clientId = value.clientId; this._objectId = value.objectId; } } get clientId() { return this.getStringAttribute('client_id'); } set clientId(value) { this._clientId = value; } resetClientId() { this._clientId = undefined; } // Temporarily expose input value. Use with caution. get clientIdInput() { return this._clientId; } get objectId() { return this.getStringAttribute('object_id'); } set objectId(value) { this._objectId = value; } resetObjectId() { this._objectId = undefined; } // Temporarily expose input value. Use with caution. get objectIdInput() { return this._objectId; } } exports.VirtualMachineRunCommandSourceScriptUriManagedIdentityOutputReference = VirtualMachineRunCommandSourceScriptUriManagedIdentityOutputReference; _j = JSII_RTTI_SYMBOL_1; VirtualMachineRunCommandSourceScriptUriManagedIdentityOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.virtualMachineRunCommand.VirtualMachineRunCommandSourceScriptUriManagedIdentityOutputReference", version: "12.27.0" }; function virtualMachineRunCommandSourceToTerraform(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 { command_id: cdktf.stringToTerraform(struct.commandId), script: cdktf.stringToTerraform(struct.script), script_uri: cdktf.stringToTerraform(struct.scriptUri), script_uri_managed_identity: virtualMachineRunCommandSourceScriptUriManagedIdentityToTerraform(struct.scriptUriManagedIdentity), }; } exports.virtualMachineRunCommandSourceToTerraform = virtualMachineRunCommandSourceToTerraform; function virtualMachineRunCommandSourceToHclTerraform(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 = { command_id: { value: cdktf.stringToHclTerraform(struct.commandId), isBlock: false, type: "simple", storageClassType: "string", }, script: { value: cdktf.stringToHclTerraform(struct.script), isBlock: false, type: "simple", storageClassType: "string", }, script_uri: { value: cdktf.stringToHclTerraform(struct.scriptUri), isBlock: false, type: "simple", storageClassType: "string", }, script_uri_managed_identity: { value: virtualMachineRunCommandSourceScriptUriManagedIdentityToHclTerraform(struct.scriptUriManagedIdentity), isBlock: true, type: "list", storageClassType: "VirtualMachineRunCommandSourceScriptUriManagedIdentityList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualMachineRunCommandSourceToHclTerraform = virtualMachineRunCommandSourceToHclTerraform; class VirtualMachineRunCommandSourceOutputReference 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; // script_uri_managed_identity - computed: false, optional: true, required: false this._scriptUriManagedIdentity = new VirtualMachineRunCommandSourceScriptUriManagedIdentityOutputReference(this, "script_uri_managed_identity"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._commandId !== undefined) { hasAnyValues = true; internalValueResult.commandId = this._commandId; } if (this._script !== undefined) { hasAnyValues = true; internalValueResult.script = this._script; } if (this._scriptUri !== undefined) { hasAnyValues = true; internalValueResult.scriptUri = this._scriptUri; } if (this._scriptUriManagedIdentity?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.scriptUriManagedIdentity = this._scriptUriManagedIdentity?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._commandId = undefined; this._script = undefined; this._scriptUri = undefined; this._scriptUriManagedIdentity.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._commandId = value.commandId; this._script = value.script; this._scriptUri = value.scriptUri; this._scriptUriManagedIdentity.internalValue = value.scriptUriManagedIdentity; } } get commandId() { return this.getStringAttribute('command_id'); } set commandId(value) { this._commandId = value; } resetCommandId() { this._commandId = undefined; } // Temporarily expose input value. Use with caution. get commandIdInput() { return this._commandId; } get script() { return this.getStringAttribute('script'); } set script(value) { this._script = value; } resetScript() { this._script = undefined; } // Temporarily expose input value. Use with caution. get scriptInput() { return this._script; } get scriptUri() { return this.getStringAttribute('script_uri'); } set scriptUri(value) { this._scriptUri = value; } resetScriptUri() { this._scriptUri = undefined; } // Temporarily expose input value. Use with caution. get scriptUriInput() { return this._scriptUri; } get scriptUriManagedIdentity() { return this._scriptUriManagedIdentity; } putScriptUriManagedIdentity(value) { this._scriptUriManagedIdentity.internalValue = value; } resetScriptUriManagedIdentity() { this._scriptUriManagedIdentity.internalValue = undefined; } // Temporarily expose input value. Use with caution. get scriptUriManagedIdentityInput() { return this._scriptUriManagedIdentity.internalValue; } } exports.VirtualMachineRunCommandSourceOutputReference = VirtualMachineRunCommandSourceOutputReference; _k = JSII_RTTI_SYMBOL_1; VirtualMachineRunCommandSourceOutputReference[_k] = { fqn: "@cdktf/provider-azurerm.virtualMachineRunCommand.VirtualMachineRunCommandSourceOutputReference", version: "12.27.0" }; function virtualMachineRunCommandTimeoutsToTerraform(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 { create: cdktf.stringToTerraform(struct.create), delete: cdktf.stringToTerraform(struct.delete), read: cdktf.stringToTerraform(struct.read), update: cdktf.stringToTerraform(struct.update), }; } exports.virtualMachineRunCommandTimeoutsToTerraform = virtualMachineRunCommandTimeoutsToTerraform; function virtualMachineRunCommandTimeoutsToHclTerraform(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 = { create: { value: cdktf.stringToHclTerraform(struct.create), isBlock: false, type: "simple", storageClassType: "string", }, delete: { value: cdktf.stringToHclTerraform(struct.delete), isBlock: false, type: "simple", storageClassType: "string", }, read: { value: cdktf.stringToHclTerraform(struct.read), isBlock: false, type: "simple", storageClassType: "string", }, update: { value: cdktf.stringToHclTerraform(struct.update), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualMachineRunCommandTimeoutsToHclTerraform = virtualMachineRunCommandTimeoutsToHclTerraform; class VirtualMachineRunCommandTimeoutsOutputReference 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); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } if (this._read !== undefined) { hasAnyValues = true; internalValueResult.read = this._read; } if (this._update !== undefined) { hasAnyValues = true; internalValueResult.update = this._update; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._create = undefined; this._delete = undefined; this._read = undefined; this._update = 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._create = value.create; this._delete = value.delete; this._read = value.read; this._update = value.update; } } get create() { return this.getStringAttribute('create'); } set create(value) { this._create = value; } resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. get createInput() { return this._create; } get delete() { return this.getStringAttribute('delete'); } set delete(value) { this._delete = value; } resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. get deleteInput() { return this._delete; } get read() { return this.getStringAttribute('read'); } set read(value) { this._read = value; } resetRead() { this._read = undefined; } // Temporarily expose input value. Use with caution. get readInput() { return this._read; } get update() { return this.getStringAttribute('update'); } set update(value) { this._update = value; } resetUpdate() { this._update = undefined; } // Temporarily expose input value. Use with caution. get updateInput() { return this._update; } } exports.VirtualMachineRunCommandTimeoutsOutputReference = VirtualMachineRunCommandTimeoutsOutputReference; _l = JSII_RTTI_SYMBOL_1; VirtualMachineRunCommandTimeoutsOutputReference[_l] = { fqn: "@cdktf/provider-azurerm.virtualMachineRunCommand.VirtualMachineRunCommandTimeoutsOutputReference", version: "12.27.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/virtual_machine_run_command azurerm_virtual_machine_run_command} */ class VirtualMachineRunCommand extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a VirtualMachineRunCommand 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 VirtualMachineRunCommand to import * @param importFromId The id of the existing VirtualMachineRunCommand that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/virtual_machine_run_command#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the VirtualMachineRunCommand to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "azurerm_virtual_machine_run_command", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/virtual_machine_run_command azurerm_virtual_machine_run_command} Resource * * @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 VirtualMachineRunCommandConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'azurerm_virtual_machine_run_command', terraformGeneratorMetadata: { providerName: 'azurerm', providerVersion: '3.116.0', providerVersionConstraint: '~> 3.10' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // instance_view - computed: true, optional: false, required: false this._instanceView = new VirtualMachineRunCommandInstanceViewList(this, "instance_view", false); // error_blob_managed_identity - computed: false, optional: true, required: false this._errorBlobManagedIdentity = new VirtualMachineRunCommandErrorBlobManagedIdentityOutputReference(this, "error_blob_managed_identity"); // output_blob_managed_identity - computed: false, optional: true, required: false this._outputBlobManagedIdentity = new VirtualMachineRunCommandOutputBlobManagedIdentityOutputReference(this, "output_blob_managed_identity"); // parameter - computed: false, optional: true, required: false this._parameter = new VirtualMachineRunCommandParameterList(this, "parameter", false); // protected_parameter - computed: false, optional: true, required: false this._protectedParameter = new VirtualMachineRunCommandProtectedParameterList(this, "protected_parameter", false); // source - computed: false, optional: false, required: true this._source = new VirtualMachineRunCommandSourceOutputReference(this, "source"); // timeouts - computed: false, optional: true, required: false this._timeouts = new VirtualMachineRunCommandTimeoutsOutputReference(this, "timeouts"); this._errorBlobUri = config.errorBlobUri; this._id = config.id; this._location = config.location; this._name = config.name; this._outputBlobUri = config.outputBlobUri; this._runAsPassword = config.runAsPassword; this._runAsUser = config.runAsUser; this._tags = config.tags; this._virtualMachineId = config.virtualMachineId; this._errorBlobManagedIdentity.internalValue = config.errorBlobManagedIdentity; this._outputBlobManagedIdentity.internalValue = config.outputBlobManagedIdentity; this._parameter.internalValue = config.parameter; this._protectedParameter.internalValue = config.protectedParameter; this._source.internalValue = config.source; this._timeouts.internalValue = config.timeouts; } get errorBlobUri() { return this.getStringAttribute('error_blob_uri'); } set errorBlobUri(value) { this._errorBlobUri = value; } resetErrorBlobUri() { this._errorBlobUri = undefined; } // Temporarily expose input value. Use with caution. get errorBlobUriInput() { return this._errorBlobUri; } 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 instanceView() { return this._instanceView; } get location() { return this.getStringAttribute('location'); } set location(value) { this._location = value; } // Temporarily expose input value. Use with caution. get locationInput() { return this._location; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get outputBlobUri() { return this.getStringAttribute('output_blob_uri'); } set outputBlobUri(value) { this._outputBlobUri = value; } resetOutputBlobUri() { this._outputBlobUri = undefined; } // Temporarily expose input value. Use with caution. get outputBlobUriInput() { return this._outputBlobUri; } get runAsPassword() { return this.getStringAttribute('run_as_password'); } set runAsPassword(value) { this._runAsPassword = value; } resetRunAsPassword() { this._runAsPassword = undefined; } // Temporarily expose input value. Use with caution. get runAsPasswordInput() { return this._runAsPassword; } get runAsUser() { return this.getStringAttribute('run_as_user'); } set runAsUser(value) { this._runAsUser = value; } resetRunAsUser() { this._runAsUser = undefined; } // Temporarily expose input value. Use with caution. get runAsUserInput() { return this._runAsUser; } get tags() { return this.getStringMapAttribute('tags'); } set tags(value) { this._tags = value; } resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. get tagsInput() { return this._tags; } get virtualMachineId() { return this.getStringAttribute('virtual_machine_id'); } set virtualMachineId(value) { this._virtualMachineId = value; } // Temporarily expose input value. Use with caution. get virtualMachineIdInput() { return this._virtualMachineId; } get errorBlobManagedIdentity() { return this._errorBlobManagedIdentity; } putErrorBlobManagedIdentity(value) { this._errorBlobManagedIdentity.internalValue = value; } resetErrorBlobManagedIdentity() { this._errorBlobManagedIdentity.internalValue = undefined; } // Temporarily expose input value. Use with caution. get errorBlobManagedIdentityInput() { return this._errorBlobManagedIdentity.internalValue; } get outputBlobManagedIdentity() { return this._outputBlobManagedIdentity; } putOutputBlobManagedIdentity(value) { this._outputBlobManagedIdentity.internalValue = value; } resetOutputBlobManagedIdentity() { this._outputBlobManagedIdentity.internalValue = undefined; } // Temporarily exp