@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
1,082 lines (1,081 loc) • 506 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;
Object.defineProperty(exports, "__esModule", { value: true });
exports.siteRecoveryReplicationRecoveryPlanTimeoutsToTerraform = exports.SiteRecoveryReplicationRecoveryPlanShutdownRecoveryGroupOutputReference = exports.siteRecoveryReplicationRecoveryPlanShutdownRecoveryGroupToHclTerraform = exports.siteRecoveryReplicationRecoveryPlanShutdownRecoveryGroupToTerraform = exports.SiteRecoveryReplicationRecoveryPlanShutdownRecoveryGroupPreActionList = exports.SiteRecoveryReplicationRecoveryPlanShutdownRecoveryGroupPreActionOutputReference = exports.siteRecoveryReplicationRecoveryPlanShutdownRecoveryGroupPreActionToHclTerraform = exports.siteRecoveryReplicationRecoveryPlanShutdownRecoveryGroupPreActionToTerraform = exports.SiteRecoveryReplicationRecoveryPlanShutdownRecoveryGroupPostActionList = exports.SiteRecoveryReplicationRecoveryPlanShutdownRecoveryGroupPostActionOutputReference = exports.siteRecoveryReplicationRecoveryPlanShutdownRecoveryGroupPostActionToHclTerraform = exports.siteRecoveryReplicationRecoveryPlanShutdownRecoveryGroupPostActionToTerraform = exports.SiteRecoveryReplicationRecoveryPlanRecoveryGroupList = exports.SiteRecoveryReplicationRecoveryPlanRecoveryGroupOutputReference = exports.siteRecoveryReplicationRecoveryPlanRecoveryGroupToHclTerraform = exports.siteRecoveryReplicationRecoveryPlanRecoveryGroupToTerraform = exports.SiteRecoveryReplicationRecoveryPlanRecoveryGroupPreActionList = exports.SiteRecoveryReplicationRecoveryPlanRecoveryGroupPreActionOutputReference = exports.siteRecoveryReplicationRecoveryPlanRecoveryGroupPreActionToHclTerraform = exports.siteRecoveryReplicationRecoveryPlanRecoveryGroupPreActionToTerraform = exports.SiteRecoveryReplicationRecoveryPlanRecoveryGroupPostActionList = exports.SiteRecoveryReplicationRecoveryPlanRecoveryGroupPostActionOutputReference = exports.siteRecoveryReplicationRecoveryPlanRecoveryGroupPostActionToHclTerraform = exports.siteRecoveryReplicationRecoveryPlanRecoveryGroupPostActionToTerraform = exports.SiteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupOutputReference = exports.siteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupToHclTerraform = exports.siteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupToTerraform = exports.SiteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupPreActionList = exports.SiteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupPreActionOutputReference = exports.siteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupPreActionToHclTerraform = exports.siteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupPreActionToTerraform = exports.SiteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupPostActionList = exports.SiteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupPostActionOutputReference = exports.siteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupPostActionToHclTerraform = exports.siteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupPostActionToTerraform = exports.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupList = exports.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupOutputReference = exports.siteRecoveryReplicationRecoveryPlanBootRecoveryGroupToHclTerraform = exports.siteRecoveryReplicationRecoveryPlanBootRecoveryGroupToTerraform = exports.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionList = exports.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionOutputReference = exports.siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionToHclTerraform = exports.siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionToTerraform = exports.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionList = exports.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionOutputReference = exports.siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionToHclTerraform = exports.siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionToTerraform = exports.SiteRecoveryReplicationRecoveryPlanAzureToAzureSettingsOutputReference = exports.siteRecoveryReplicationRecoveryPlanAzureToAzureSettingsToHclTerraform = exports.siteRecoveryReplicationRecoveryPlanAzureToAzureSettingsToTerraform = void 0;
exports.SiteRecoveryReplicationRecoveryPlan = exports.SiteRecoveryReplicationRecoveryPlanTimeoutsOutputReference = exports.siteRecoveryReplicationRecoveryPlanTimeoutsToHclTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function siteRecoveryReplicationRecoveryPlanAzureToAzureSettingsToTerraform(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 {
primary_edge_zone: cdktf.stringToTerraform(struct.primaryEdgeZone),
primary_zone: cdktf.stringToTerraform(struct.primaryZone),
recovery_edge_zone: cdktf.stringToTerraform(struct.recoveryEdgeZone),
recovery_zone: cdktf.stringToTerraform(struct.recoveryZone),
};
}
exports.siteRecoveryReplicationRecoveryPlanAzureToAzureSettingsToTerraform = siteRecoveryReplicationRecoveryPlanAzureToAzureSettingsToTerraform;
function siteRecoveryReplicationRecoveryPlanAzureToAzureSettingsToHclTerraform(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 = {
primary_edge_zone: {
value: cdktf.stringToHclTerraform(struct.primaryEdgeZone),
isBlock: false,
type: "simple",
storageClassType: "string",
},
primary_zone: {
value: cdktf.stringToHclTerraform(struct.primaryZone),
isBlock: false,
type: "simple",
storageClassType: "string",
},
recovery_edge_zone: {
value: cdktf.stringToHclTerraform(struct.recoveryEdgeZone),
isBlock: false,
type: "simple",
storageClassType: "string",
},
recovery_zone: {
value: cdktf.stringToHclTerraform(struct.recoveryZone),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.siteRecoveryReplicationRecoveryPlanAzureToAzureSettingsToHclTerraform = siteRecoveryReplicationRecoveryPlanAzureToAzureSettingsToHclTerraform;
class SiteRecoveryReplicationRecoveryPlanAzureToAzureSettingsOutputReference 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._primaryEdgeZone !== undefined) {
hasAnyValues = true;
internalValueResult.primaryEdgeZone = this._primaryEdgeZone;
}
if (this._primaryZone !== undefined) {
hasAnyValues = true;
internalValueResult.primaryZone = this._primaryZone;
}
if (this._recoveryEdgeZone !== undefined) {
hasAnyValues = true;
internalValueResult.recoveryEdgeZone = this._recoveryEdgeZone;
}
if (this._recoveryZone !== undefined) {
hasAnyValues = true;
internalValueResult.recoveryZone = this._recoveryZone;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._primaryEdgeZone = undefined;
this._primaryZone = undefined;
this._recoveryEdgeZone = undefined;
this._recoveryZone = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._primaryEdgeZone = value.primaryEdgeZone;
this._primaryZone = value.primaryZone;
this._recoveryEdgeZone = value.recoveryEdgeZone;
this._recoveryZone = value.recoveryZone;
}
}
get primaryEdgeZone() {
return this.getStringAttribute('primary_edge_zone');
}
set primaryEdgeZone(value) {
this._primaryEdgeZone = value;
}
resetPrimaryEdgeZone() {
this._primaryEdgeZone = undefined;
}
// Temporarily expose input value. Use with caution.
get primaryEdgeZoneInput() {
return this._primaryEdgeZone;
}
get primaryZone() {
return this.getStringAttribute('primary_zone');
}
set primaryZone(value) {
this._primaryZone = value;
}
resetPrimaryZone() {
this._primaryZone = undefined;
}
// Temporarily expose input value. Use with caution.
get primaryZoneInput() {
return this._primaryZone;
}
get recoveryEdgeZone() {
return this.getStringAttribute('recovery_edge_zone');
}
set recoveryEdgeZone(value) {
this._recoveryEdgeZone = value;
}
resetRecoveryEdgeZone() {
this._recoveryEdgeZone = undefined;
}
// Temporarily expose input value. Use with caution.
get recoveryEdgeZoneInput() {
return this._recoveryEdgeZone;
}
get recoveryZone() {
return this.getStringAttribute('recovery_zone');
}
set recoveryZone(value) {
this._recoveryZone = value;
}
resetRecoveryZone() {
this._recoveryZone = undefined;
}
// Temporarily expose input value. Use with caution.
get recoveryZoneInput() {
return this._recoveryZone;
}
}
exports.SiteRecoveryReplicationRecoveryPlanAzureToAzureSettingsOutputReference = SiteRecoveryReplicationRecoveryPlanAzureToAzureSettingsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
SiteRecoveryReplicationRecoveryPlanAzureToAzureSettingsOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.siteRecoveryReplicationRecoveryPlan.SiteRecoveryReplicationRecoveryPlanAzureToAzureSettingsOutputReference", version: "12.27.0" };
function siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionToTerraform(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 {
fabric_location: cdktf.stringToTerraform(struct.fabricLocation),
fail_over_directions: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.failOverDirections),
fail_over_types: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.failOverTypes),
manual_action_instruction: cdktf.stringToTerraform(struct.manualActionInstruction),
name: cdktf.stringToTerraform(struct.name),
runbook_id: cdktf.stringToTerraform(struct.runbookId),
script_path: cdktf.stringToTerraform(struct.scriptPath),
type: cdktf.stringToTerraform(struct.type),
};
}
exports.siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionToTerraform = siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionToTerraform;
function siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionToHclTerraform(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 = {
fabric_location: {
value: cdktf.stringToHclTerraform(struct.fabricLocation),
isBlock: false,
type: "simple",
storageClassType: "string",
},
fail_over_directions: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.failOverDirections),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
fail_over_types: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.failOverTypes),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
manual_action_instruction: {
value: cdktf.stringToHclTerraform(struct.manualActionInstruction),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
runbook_id: {
value: cdktf.stringToHclTerraform(struct.runbookId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
script_path: {
value: cdktf.stringToHclTerraform(struct.scriptPath),
isBlock: false,
type: "simple",
storageClassType: "string",
},
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.siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionToHclTerraform = siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionToHclTerraform;
class SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionOutputReference 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._fabricLocation !== undefined) {
hasAnyValues = true;
internalValueResult.fabricLocation = this._fabricLocation;
}
if (this._failOverDirections !== undefined) {
hasAnyValues = true;
internalValueResult.failOverDirections = this._failOverDirections;
}
if (this._failOverTypes !== undefined) {
hasAnyValues = true;
internalValueResult.failOverTypes = this._failOverTypes;
}
if (this._manualActionInstruction !== undefined) {
hasAnyValues = true;
internalValueResult.manualActionInstruction = this._manualActionInstruction;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._runbookId !== undefined) {
hasAnyValues = true;
internalValueResult.runbookId = this._runbookId;
}
if (this._scriptPath !== undefined) {
hasAnyValues = true;
internalValueResult.scriptPath = this._scriptPath;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._fabricLocation = undefined;
this._failOverDirections = undefined;
this._failOverTypes = undefined;
this._manualActionInstruction = undefined;
this._name = undefined;
this._runbookId = undefined;
this._scriptPath = undefined;
this._type = 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._fabricLocation = value.fabricLocation;
this._failOverDirections = value.failOverDirections;
this._failOverTypes = value.failOverTypes;
this._manualActionInstruction = value.manualActionInstruction;
this._name = value.name;
this._runbookId = value.runbookId;
this._scriptPath = value.scriptPath;
this._type = value.type;
}
}
get fabricLocation() {
return this.getStringAttribute('fabric_location');
}
set fabricLocation(value) {
this._fabricLocation = value;
}
resetFabricLocation() {
this._fabricLocation = undefined;
}
// Temporarily expose input value. Use with caution.
get fabricLocationInput() {
return this._fabricLocation;
}
get failOverDirections() {
return cdktf.Fn.tolist(this.getListAttribute('fail_over_directions'));
}
set failOverDirections(value) {
this._failOverDirections = value;
}
// Temporarily expose input value. Use with caution.
get failOverDirectionsInput() {
return this._failOverDirections;
}
get failOverTypes() {
return cdktf.Fn.tolist(this.getListAttribute('fail_over_types'));
}
set failOverTypes(value) {
this._failOverTypes = value;
}
// Temporarily expose input value. Use with caution.
get failOverTypesInput() {
return this._failOverTypes;
}
get manualActionInstruction() {
return this.getStringAttribute('manual_action_instruction');
}
set manualActionInstruction(value) {
this._manualActionInstruction = value;
}
resetManualActionInstruction() {
this._manualActionInstruction = undefined;
}
// Temporarily expose input value. Use with caution.
get manualActionInstructionInput() {
return this._manualActionInstruction;
}
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 runbookId() {
return this.getStringAttribute('runbook_id');
}
set runbookId(value) {
this._runbookId = value;
}
resetRunbookId() {
this._runbookId = undefined;
}
// Temporarily expose input value. Use with caution.
get runbookIdInput() {
return this._runbookId;
}
get scriptPath() {
return this.getStringAttribute('script_path');
}
set scriptPath(value) {
this._scriptPath = value;
}
resetScriptPath() {
this._scriptPath = undefined;
}
// Temporarily expose input value. Use with caution.
get scriptPathInput() {
return this._scriptPath;
}
get type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
}
exports.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionOutputReference = SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionOutputReference;
_b = JSII_RTTI_SYMBOL_1;
SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.siteRecoveryReplicationRecoveryPlan.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionOutputReference", version: "12.27.0" };
class SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionList 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 SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionList = SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionList;
_c = JSII_RTTI_SYMBOL_1;
SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionList[_c] = { fqn: "@cdktf/provider-azurerm.siteRecoveryReplicationRecoveryPlan.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionList", version: "12.27.0" };
function siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionToTerraform(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 {
fabric_location: cdktf.stringToTerraform(struct.fabricLocation),
fail_over_directions: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.failOverDirections),
fail_over_types: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.failOverTypes),
manual_action_instruction: cdktf.stringToTerraform(struct.manualActionInstruction),
name: cdktf.stringToTerraform(struct.name),
runbook_id: cdktf.stringToTerraform(struct.runbookId),
script_path: cdktf.stringToTerraform(struct.scriptPath),
type: cdktf.stringToTerraform(struct.type),
};
}
exports.siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionToTerraform = siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionToTerraform;
function siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionToHclTerraform(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 = {
fabric_location: {
value: cdktf.stringToHclTerraform(struct.fabricLocation),
isBlock: false,
type: "simple",
storageClassType: "string",
},
fail_over_directions: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.failOverDirections),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
fail_over_types: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.failOverTypes),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
manual_action_instruction: {
value: cdktf.stringToHclTerraform(struct.manualActionInstruction),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
runbook_id: {
value: cdktf.stringToHclTerraform(struct.runbookId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
script_path: {
value: cdktf.stringToHclTerraform(struct.scriptPath),
isBlock: false,
type: "simple",
storageClassType: "string",
},
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.siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionToHclTerraform = siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionToHclTerraform;
class SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionOutputReference 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._fabricLocation !== undefined) {
hasAnyValues = true;
internalValueResult.fabricLocation = this._fabricLocation;
}
if (this._failOverDirections !== undefined) {
hasAnyValues = true;
internalValueResult.failOverDirections = this._failOverDirections;
}
if (this._failOverTypes !== undefined) {
hasAnyValues = true;
internalValueResult.failOverTypes = this._failOverTypes;
}
if (this._manualActionInstruction !== undefined) {
hasAnyValues = true;
internalValueResult.manualActionInstruction = this._manualActionInstruction;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._runbookId !== undefined) {
hasAnyValues = true;
internalValueResult.runbookId = this._runbookId;
}
if (this._scriptPath !== undefined) {
hasAnyValues = true;
internalValueResult.scriptPath = this._scriptPath;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._fabricLocation = undefined;
this._failOverDirections = undefined;
this._failOverTypes = undefined;
this._manualActionInstruction = undefined;
this._name = undefined;
this._runbookId = undefined;
this._scriptPath = undefined;
this._type = 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._fabricLocation = value.fabricLocation;
this._failOverDirections = value.failOverDirections;
this._failOverTypes = value.failOverTypes;
this._manualActionInstruction = value.manualActionInstruction;
this._name = value.name;
this._runbookId = value.runbookId;
this._scriptPath = value.scriptPath;
this._type = value.type;
}
}
get fabricLocation() {
return this.getStringAttribute('fabric_location');
}
set fabricLocation(value) {
this._fabricLocation = value;
}
resetFabricLocation() {
this._fabricLocation = undefined;
}
// Temporarily expose input value. Use with caution.
get fabricLocationInput() {
return this._fabricLocation;
}
get failOverDirections() {
return cdktf.Fn.tolist(this.getListAttribute('fail_over_directions'));
}
set failOverDirections(value) {
this._failOverDirections = value;
}
// Temporarily expose input value. Use with caution.
get failOverDirectionsInput() {
return this._failOverDirections;
}
get failOverTypes() {
return cdktf.Fn.tolist(this.getListAttribute('fail_over_types'));
}
set failOverTypes(value) {
this._failOverTypes = value;
}
// Temporarily expose input value. Use with caution.
get failOverTypesInput() {
return this._failOverTypes;
}
get manualActionInstruction() {
return this.getStringAttribute('manual_action_instruction');
}
set manualActionInstruction(value) {
this._manualActionInstruction = value;
}
resetManualActionInstruction() {
this._manualActionInstruction = undefined;
}
// Temporarily expose input value. Use with caution.
get manualActionInstructionInput() {
return this._manualActionInstruction;
}
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 runbookId() {
return this.getStringAttribute('runbook_id');
}
set runbookId(value) {
this._runbookId = value;
}
resetRunbookId() {
this._runbookId = undefined;
}
// Temporarily expose input value. Use with caution.
get runbookIdInput() {
return this._runbookId;
}
get scriptPath() {
return this.getStringAttribute('script_path');
}
set scriptPath(value) {
this._scriptPath = value;
}
resetScriptPath() {
this._scriptPath = undefined;
}
// Temporarily expose input value. Use with caution.
get scriptPathInput() {
return this._scriptPath;
}
get type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
}
exports.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionOutputReference = SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionOutputReference;
_d = JSII_RTTI_SYMBOL_1;
SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.siteRecoveryReplicationRecoveryPlan.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionOutputReference", version: "12.27.0" };
class SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionList 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 SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionList = SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionList;
_e = JSII_RTTI_SYMBOL_1;
SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionList[_e] = { fqn: "@cdktf/provider-azurerm.siteRecoveryReplicationRecoveryPlan.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionList", version: "12.27.0" };
function siteRecoveryReplicationRecoveryPlanBootRecoveryGroupToTerraform(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 {
replicated_protected_items: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.replicatedProtectedItems),
post_action: cdktf.listMapper(siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionToTerraform, true)(struct.postAction),
pre_action: cdktf.listMapper(siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionToTerraform, true)(struct.preAction),
};
}
exports.siteRecoveryReplicationRecoveryPlanBootRecoveryGroupToTerraform = siteRecoveryReplicationRecoveryPlanBootRecoveryGroupToTerraform;
function siteRecoveryReplicationRecoveryPlanBootRecoveryGroupToHclTerraform(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 = {
replicated_protected_items: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.replicatedProtectedItems),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
post_action: {
value: cdktf.listMapperHcl(siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionToHclTerraform, true)(struct.postAction),
isBlock: true,
type: "list",
storageClassType: "SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionList",
},
pre_action: {
value: cdktf.listMapperHcl(siteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionToHclTerraform, true)(struct.preAction),
isBlock: true,
type: "list",
storageClassType: "SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.siteRecoveryReplicationRecoveryPlanBootRecoveryGroupToHclTerraform = siteRecoveryReplicationRecoveryPlanBootRecoveryGroupToHclTerraform;
class SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupOutputReference 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;
// post_action - computed: false, optional: true, required: false
this._postAction = new SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPostActionList(this, "post_action", false);
// pre_action - computed: false, optional: true, required: false
this._preAction = new SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupPreActionList(this, "pre_action", false);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._replicatedProtectedItems !== undefined) {
hasAnyValues = true;
internalValueResult.replicatedProtectedItems = this._replicatedProtectedItems;
}
if (this._postAction?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.postAction = this._postAction?.internalValue;
}
if (this._preAction?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.preAction = this._preAction?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._replicatedProtectedItems = undefined;
this._postAction.internalValue = undefined;
this._preAction.internalValue = 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._replicatedProtectedItems = value.replicatedProtectedItems;
this._postAction.internalValue = value.postAction;
this._preAction.internalValue = value.preAction;
}
}
get replicatedProtectedItems() {
return this.getListAttribute('replicated_protected_items');
}
set replicatedProtectedItems(value) {
this._replicatedProtectedItems = value;
}
resetReplicatedProtectedItems() {
this._replicatedProtectedItems = undefined;
}
// Temporarily expose input value. Use with caution.
get replicatedProtectedItemsInput() {
return this._replicatedProtectedItems;
}
get postAction() {
return this._postAction;
}
putPostAction(value) {
this._postAction.internalValue = value;
}
resetPostAction() {
this._postAction.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get postActionInput() {
return this._postAction.internalValue;
}
get preAction() {
return this._preAction;
}
putPreAction(value) {
this._preAction.internalValue = value;
}
resetPreAction() {
this._preAction.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get preActionInput() {
return this._preAction.internalValue;
}
}
exports.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupOutputReference = SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupOutputReference;
_f = JSII_RTTI_SYMBOL_1;
SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.siteRecoveryReplicationRecoveryPlan.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupOutputReference", version: "12.27.0" };
class SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupList 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 SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupList = SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupList;
_g = JSII_RTTI_SYMBOL_1;
SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupList[_g] = { fqn: "@cdktf/provider-azurerm.siteRecoveryReplicationRecoveryPlan.SiteRecoveryReplicationRecoveryPlanBootRecoveryGroupList", version: "12.27.0" };
function siteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupPostActionToTerraform(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 {
fabric_location: cdktf.stringToTerraform(struct.fabricLocation),
fail_over_directions: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.failOverDirections),
fail_over_types: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.failOverTypes),
manual_action_instruction: cdktf.stringToTerraform(struct.manualActionInstruction),
name: cdktf.stringToTerraform(struct.name),
runbook_id: cdktf.stringToTerraform(struct.runbookId),
script_path: cdktf.stringToTerraform(struct.scriptPath),
type: cdktf.stringToTerraform(struct.type),
};
}
exports.siteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupPostActionToTerraform = siteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupPostActionToTerraform;
function siteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupPostActionToHclTerraform(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 = {
fabric_location: {
value: cdktf.stringToHclTerraform(struct.fabricLocation),
isBlock: false,
type: "simple",
storageClassType: "string",
},
fail_over_directions: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.failOverDirections),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
fail_over_types: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.failOverTypes),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
manual_action_instruction: {
value: cdktf.stringToHclTerraform(struct.manualActionInstruction),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
runbook_id: {
value: cdktf.stringToHclTerraform(struct.runbookId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
script_path: {
value: cdktf.stringToHclTerraform(struct.scriptPath),
isBlock: false,
type: "simple",
storageClassType: "string",
},
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.siteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupPostActionToHclTerraform = siteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupPostActionToHclTerraform;
class SiteRecoveryReplicationRecoveryPlanFailoverRecoveryGroupPostActionOutputReference 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._fabricLocation !== undefined) {
hasAnyValues = true;
internalValueResult.fabricLocation = this._fabricLocation;
}
if (this._failOverDirections !== undefined) {
hasAnyValues = true;
internalValueResult.failOverDirections = this._failOverDirections;
}
if (this._failOverTypes !== undefined) {
hasAnyValues = true;
internalValueResult.failOverTypes = this._failOverTypes;
}
if (this._manualActionInstruction !== undefined) {
hasAnyValues = true;
internalValueResult.manualActionInstruction = this._manualActionInstruction;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._runbookId !== undefined) {
hasAnyValues = true;
internalValueResult.runbookId = this._runbookId;
}
if (this._scriptPath !== undefined) {
hasAnyValues = true;
internalValueResult.scriptPath = this._scriptPath;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._fabricLocation = undefined;
this._failOverDirections = undefined;
this._failOverTypes = undefined;
this._manualActionInstruction = undefined;
this._name = undefined;
this._runbookId = undefined;
this._scriptPath = undefined;
this._type = 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._fabricLocation = value.fabricLocation;
this._failOverDirections = value.failOverDirections;
this._failOverTypes = value.failOverTypes;
this._manualActionInstruction = value.manualActionInstruction;
this._name = value.name;
this._runbookId = value.runbookId;
this._scriptPath = value.scriptPath;
this._type = value.type;
}
}
get fabricLocation() {
return this.getStringAttribute('fabric_location');
}
set fabricLocation(value) {
this._fabricLocation = value;
}
resetFabricLocation() {
this._fabricLocation = undefined;
}
// Temporarily expose input value. Use with caution.
get fabricLocationInput() {
return this._fabricLocation;
}
get failOverDirections() {
return cdktf.Fn.tolist(this.getListAttribute('fail_over_directions'));
}
set failOverDirections(value) {
this._failOverDirections = value;
}
// Temporarily expose input value. Use with caution.
get failOverDirectionsInput() {
return this._failOverDirections;
}
get failOverTypes() {
return cdktf.Fn.tolist(this.getListAttribute('fail_over_types'));
}
set failOverTypes(value) {
this._failOverTypes = value;
}
// Temporarily expose input value. Use with caution.
get failOverTypesInput() {
return this._failOverTypes;
}
get manualActionInstruction() {
return this.getStringAttribute('manual_action_instruction');
}