rhizo-co-terraform-provider-oci
Version:
Prebuilt oci Provider for Terraform CDK (cdktf)
951 lines (950 loc) • 224 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CloudMigrationsMigrationPlan = exports.CloudMigrationsMigrationPlanTimeoutsOutputReference = exports.cloudMigrationsMigrationPlanTimeoutsToHclTerraform = exports.cloudMigrationsMigrationPlanTimeoutsToTerraform = exports.CloudMigrationsMigrationPlanTargetEnvironmentsList = exports.CloudMigrationsMigrationPlanTargetEnvironmentsOutputReference = exports.cloudMigrationsMigrationPlanTargetEnvironmentsToHclTerraform = exports.cloudMigrationsMigrationPlanTargetEnvironmentsToTerraform = exports.CloudMigrationsMigrationPlanStrategiesList = exports.CloudMigrationsMigrationPlanStrategiesOutputReference = exports.cloudMigrationsMigrationPlanStrategiesToHclTerraform = exports.cloudMigrationsMigrationPlanStrategiesToTerraform = exports.CloudMigrationsMigrationPlanMigrationPlanStatsList = exports.CloudMigrationsMigrationPlanMigrationPlanStatsOutputReference = exports.cloudMigrationsMigrationPlanMigrationPlanStatsToHclTerraform = exports.cloudMigrationsMigrationPlanMigrationPlanStatsToTerraform = exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostList = exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOutputReference = exports.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostToHclTerraform = exports.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostToTerraform = exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageList = exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageOutputReference = exports.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageToHclTerraform = exports.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageToTerraform = exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesList = exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesOutputReference = exports.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesToHclTerraform = exports.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesToTerraform = exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageList = exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageOutputReference = exports.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageToHclTerraform = exports.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageToTerraform = exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeList = exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeOutputReference = exports.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeToHclTerraform = exports.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeToTerraform(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.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeToTerraform = cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeToTerraform;
function cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeToHclTerraform(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.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeToHclTerraform = cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeToHclTerraform;
class CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeOutputReference 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;
}
}
// gpu_count - computed: true, optional: false, required: false
get gpuCount() {
return this.getNumberAttribute('gpu_count');
}
// gpu_per_hour - computed: true, optional: false, required: false
get gpuPerHour() {
return this.getNumberAttribute('gpu_per_hour');
}
// gpu_per_hour_by_subscription - computed: true, optional: false, required: false
get gpuPerHourBySubscription() {
return this.getNumberAttribute('gpu_per_hour_by_subscription');
}
// memory_amount_gb - computed: true, optional: false, required: false
get memoryAmountGb() {
return this.getNumberAttribute('memory_amount_gb');
}
// memory_gb_per_hour - computed: true, optional: false, required: false
get memoryGbPerHour() {
return this.getNumberAttribute('memory_gb_per_hour');
}
// memory_gb_per_hour_by_subscription - computed: true, optional: false, required: false
get memoryGbPerHourBySubscription() {
return this.getNumberAttribute('memory_gb_per_hour_by_subscription');
}
// ocpu_count - computed: true, optional: false, required: false
get ocpuCount() {
return this.getNumberAttribute('ocpu_count');
}
// ocpu_per_hour - computed: true, optional: false, required: false
get ocpuPerHour() {
return this.getNumberAttribute('ocpu_per_hour');
}
// ocpu_per_hour_by_subscription - computed: true, optional: false, required: false
get ocpuPerHourBySubscription() {
return this.getNumberAttribute('ocpu_per_hour_by_subscription');
}
// total_per_hour - computed: true, optional: false, required: false
get totalPerHour() {
return this.getNumberAttribute('total_per_hour');
}
// total_per_hour_by_subscription - computed: true, optional: false, required: false
get totalPerHourBySubscription() {
return this.getNumberAttribute('total_per_hour_by_subscription');
}
}
exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeOutputReference = CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeOutputReference;
_a = JSII_RTTI_SYMBOL_1;
CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.cloudMigrationsMigrationPlan.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeOutputReference", version: "1.0.0" };
class CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeList 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 CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeList = CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeList;
_b = JSII_RTTI_SYMBOL_1;
CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeList[_b] = { fqn: "rhizo-co-terraform-provider-oci.cloudMigrationsMigrationPlan.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeList", version: "1.0.0" };
function cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageToTerraform(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.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageToTerraform = cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageToTerraform;
function cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageToHclTerraform(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.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageToHclTerraform = cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageToHclTerraform;
class CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageOutputReference 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;
}
}
// total_per_hour - computed: true, optional: false, required: false
get totalPerHour() {
return this.getNumberAttribute('total_per_hour');
}
// total_per_hour_by_subscription - computed: true, optional: false, required: false
get totalPerHourBySubscription() {
return this.getNumberAttribute('total_per_hour_by_subscription');
}
}
exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageOutputReference = CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageOutputReference;
_c = JSII_RTTI_SYMBOL_1;
CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.cloudMigrationsMigrationPlan.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageOutputReference", version: "1.0.0" };
class CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageList 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 CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageList = CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageList;
_d = JSII_RTTI_SYMBOL_1;
CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageList[_d] = { fqn: "rhizo-co-terraform-provider-oci.cloudMigrationsMigrationPlan.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageList", version: "1.0.0" };
function cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesToTerraform(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.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesToTerraform = cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesToTerraform;
function cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesToHclTerraform(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.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesToHclTerraform = cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesToHclTerraform;
class CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesOutputReference 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;
}
}
// capacity_gb - computed: true, optional: false, required: false
get capacityGb() {
return this.getNumberAttribute('capacity_gb');
}
// description - computed: true, optional: false, required: false
get description() {
return this.getStringAttribute('description');
}
// total_gb_per_month - computed: true, optional: false, required: false
get totalGbPerMonth() {
return this.getNumberAttribute('total_gb_per_month');
}
// total_gb_per_month_by_subscription - computed: true, optional: false, required: false
get totalGbPerMonthBySubscription() {
return this.getNumberAttribute('total_gb_per_month_by_subscription');
}
}
exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesOutputReference = CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesOutputReference;
_e = JSII_RTTI_SYMBOL_1;
CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.cloudMigrationsMigrationPlan.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesOutputReference", version: "1.0.0" };
class CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesList 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 CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesList = CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesList;
_f = JSII_RTTI_SYMBOL_1;
CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesList[_f] = { fqn: "rhizo-co-terraform-provider-oci.cloudMigrationsMigrationPlan.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesList", version: "1.0.0" };
function cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageToTerraform(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.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageToTerraform = cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageToTerraform;
function cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageToHclTerraform(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.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageToHclTerraform = cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageToHclTerraform;
class CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageOutputReference 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;
// volumes - computed: true, optional: false, required: false
this._volumes = new CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageVolumesList(this, "volumes", 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;
}
}
// total_gb_per_month - computed: true, optional: false, required: false
get totalGbPerMonth() {
return this.getNumberAttribute('total_gb_per_month');
}
// total_gb_per_month_by_subscription - computed: true, optional: false, required: false
get totalGbPerMonthBySubscription() {
return this.getNumberAttribute('total_gb_per_month_by_subscription');
}
get volumes() {
return this._volumes;
}
}
exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageOutputReference = CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageOutputReference;
_g = JSII_RTTI_SYMBOL_1;
CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.cloudMigrationsMigrationPlan.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageOutputReference", version: "1.0.0" };
class CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageList 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 CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageList = CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageList;
_h = JSII_RTTI_SYMBOL_1;
CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageList[_h] = { fqn: "rhizo-co-terraform-provider-oci.cloudMigrationsMigrationPlan.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageList", version: "1.0.0" };
function cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostToTerraform(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.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostToTerraform = cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostToTerraform;
function cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostToHclTerraform(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.cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostToHclTerraform = cloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostToHclTerraform;
class CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOutputReference 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;
// compute - computed: true, optional: false, required: false
this._compute = new CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostComputeList(this, "compute", false);
// os_image - computed: true, optional: false, required: false
this._osImage = new CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOsImageList(this, "os_image", false);
// storage - computed: true, optional: false, required: false
this._storage = new CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostStorageList(this, "storage", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
get compute() {
return this._compute;
}
// currency_code - computed: true, optional: false, required: false
get currencyCode() {
return this.getStringAttribute('currency_code');
}
get osImage() {
return this._osImage;
}
get storage() {
return this._storage;
}
// subscription_id - computed: true, optional: false, required: false
get subscriptionId() {
return this.getStringAttribute('subscription_id');
}
// total_estimation_per_month - computed: true, optional: false, required: false
get totalEstimationPerMonth() {
return this.getNumberAttribute('total_estimation_per_month');
}
// total_estimation_per_month_by_subscription - computed: true, optional: false, required: false
get totalEstimationPerMonthBySubscription() {
return this.getNumberAttribute('total_estimation_per_month_by_subscription');
}
}
exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOutputReference = CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOutputReference;
_j = JSII_RTTI_SYMBOL_1;
CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.cloudMigrationsMigrationPlan.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOutputReference", version: "1.0.0" };
class CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostList 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 CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostList = CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostList;
_k = JSII_RTTI_SYMBOL_1;
CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostList[_k] = { fqn: "rhizo-co-terraform-provider-oci.cloudMigrationsMigrationPlan.CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostList", version: "1.0.0" };
function cloudMigrationsMigrationPlanMigrationPlanStatsToTerraform(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.cloudMigrationsMigrationPlanMigrationPlanStatsToTerraform = cloudMigrationsMigrationPlanMigrationPlanStatsToTerraform;
function cloudMigrationsMigrationPlanMigrationPlanStatsToHclTerraform(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.cloudMigrationsMigrationPlanMigrationPlanStatsToHclTerraform = cloudMigrationsMigrationPlanMigrationPlanStatsToHclTerraform;
class CloudMigrationsMigrationPlanMigrationPlanStatsOutputReference 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;
// total_estimated_cost - computed: true, optional: false, required: false
this._totalEstimatedCost = new CloudMigrationsMigrationPlanMigrationPlanStatsTotalEstimatedCostList(this, "total_estimated_cost", 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;
}
}
// time_updated - computed: true, optional: false, required: false
get timeUpdated() {
return this.getStringAttribute('time_updated');
}
get totalEstimatedCost() {
return this._totalEstimatedCost;
}
// vm_count - computed: true, optional: false, required: false
get vmCount() {
return this.getNumberAttribute('vm_count');
}
}
exports.CloudMigrationsMigrationPlanMigrationPlanStatsOutputReference = CloudMigrationsMigrationPlanMigrationPlanStatsOutputReference;
_l = JSII_RTTI_SYMBOL_1;
CloudMigrationsMigrationPlanMigrationPlanStatsOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.cloudMigrationsMigrationPlan.CloudMigrationsMigrationPlanMigrationPlanStatsOutputReference", version: "1.0.0" };
class CloudMigrationsMigrationPlanMigrationPlanStatsList 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 CloudMigrationsMigrationPlanMigrationPlanStatsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.CloudMigrationsMigrationPlanMigrationPlanStatsList = CloudMigrationsMigrationPlanMigrationPlanStatsList;
_m = JSII_RTTI_SYMBOL_1;
CloudMigrationsMigrationPlanMigrationPlanStatsList[_m] = { fqn: "rhizo-co-terraform-provider-oci.cloudMigrationsMigrationPlan.CloudMigrationsMigrationPlanMigrationPlanStatsList", version: "1.0.0" };
function cloudMigrationsMigrationPlanStrategiesToTerraform(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 {
adjustment_multiplier: cdktf.numberToTerraform(struct.adjustmentMultiplier),
metric_time_window: cdktf.stringToTerraform(struct.metricTimeWindow),
metric_type: cdktf.stringToTerraform(struct.metricType),
percentile: cdktf.stringToTerraform(struct.percentile),
resource_type: cdktf.stringToTerraform(struct.resourceType),
strategy_type: cdktf.stringToTerraform(struct.strategyType),
};
}
exports.cloudMigrationsMigrationPlanStrategiesToTerraform = cloudMigrationsMigrationPlanStrategiesToTerraform;
function cloudMigrationsMigrationPlanStrategiesToHclTerraform(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 = {
adjustment_multiplier: {
value: cdktf.numberToHclTerraform(struct.adjustmentMultiplier),
isBlock: false,
type: "simple",
storageClassType: "number",
},
metric_time_window: {
value: cdktf.stringToHclTerraform(struct.metricTimeWindow),
isBlock: false,
type: "simple",
storageClassType: "string",
},
metric_type: {
value: cdktf.stringToHclTerraform(struct.metricType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
percentile: {
value: cdktf.stringToHclTerraform(struct.percentile),
isBlock: false,
type: "simple",
storageClassType: "string",
},
resource_type: {
value: cdktf.stringToHclTerraform(struct.resourceType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
strategy_type: {
value: cdktf.stringToHclTerraform(struct.strategyType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.cloudMigrationsMigrationPlanStrategiesToHclTerraform = cloudMigrationsMigrationPlanStrategiesToHclTerraform;
class CloudMigrationsMigrationPlanStrategiesOutputReference 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._adjustmentMultiplier !== undefined) {
hasAnyValues = true;
internalValueResult.adjustmentMultiplier = this._adjustmentMultiplier;
}
if (this._metricTimeWindow !== undefined) {
hasAnyValues = true;
internalValueResult.metricTimeWindow = this._metricTimeWindow;
}
if (this._metricType !== undefined) {
hasAnyValues = true;
internalValueResult.metricType = this._metricType;
}
if (this._percentile !== undefined) {
hasAnyValues = true;
internalValueResult.percentile = this._percentile;
}
if (this._resourceType !== undefined) {
hasAnyValues = true;
internalValueResult.resourceType = this._resourceType;
}
if (this._strategyType !== undefined) {
hasAnyValues = true;
internalValueResult.strategyType = this._strategyType;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._adjustmentMultiplier = undefined;
this._metricTimeWindow = undefined;
this._metricType = undefined;
this._percentile = undefined;
this._resourceType = undefined;
this._strategyType = 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._adjustmentMultiplier = value.adjustmentMultiplier;
this._metricTimeWindow = value.metricTimeWindow;
this._metricType = value.metricType;
this._percentile = value.percentile;
this._resourceType = value.resourceType;
this._strategyType = value.strategyType;
}
}
get adjustmentMultiplier() {
return this.getNumberAttribute('adjustment_multiplier');
}
set adjustmentMultiplier(value) {
this._adjustmentMultiplier = value;
}
resetAdjustmentMultiplier() {
this._adjustmentMultiplier = undefined;
}
// Temporarily expose input value. Use with caution.
get adjustmentMultiplierInput() {
return this._adjustmentMultiplier;
}
get metricTimeWindow() {
return this.getStringAttribute('metric_time_window');
}
set metricTimeWindow(value) {
this._metricTimeWindow = value;
}
resetMetricTimeWindow() {
this._metricTimeWindow = undefined;
}
// Temporarily expose input value. Use with caution.
get metricTimeWindowInput() {
return this._metricTimeWindow;
}
get metricType() {
return this.getStringAttribute('metric_type');
}
set metricType(value) {
this._metricType = value;
}
resetMetricType() {
this._metricType = undefined;
}
// Temporarily expose input value. Use with caution.
get metricTypeInput() {
return this._metricType;
}
get percentile() {
return this.getStringAttribute('percentile');
}
set percentile(value) {
this._percentile = value;
}
resetPercentile() {
this._percentile = undefined;
}
// Temporarily expose input value. Use with caution.
get percentileInput() {
return this._percentile;
}
get resourceType() {
return this.getStringAttribute('resource_type');
}
set resourceType(value) {
this._resourceType = value;
}
// Temporarily expose input value. Use with caution.
get resourceTypeInput() {
return this._resourceType;
}
get strategyType() {
return this.getStringAttribute('strategy_type');
}
set strategyType(value) {
this._strategyType = value;
}
// Temporarily expose input value. Use with caution.
get strategyTypeInput() {
return this._strategyType;
}
}
exports.CloudMigrationsMigrationPlanStrategiesOutputReference = CloudMigrationsMigrationPlanStrategiesOutputReference;
_o = JSII_RTTI_SYMBOL_1;
CloudMigrationsMigrationPlanStrategiesOutputReference[_o] = { fqn: "rhizo-co-terraform-provider-oci.cloudMigrationsMigrationPlan.CloudMigrationsMigrationPlanStrategiesOutputReference", version: "1.0.0" };
class CloudMigrationsMigrationPlanStrategiesList 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 CloudMigrationsMigrationPlanStrategiesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.CloudMigrationsMigrationPlanStrategiesList = CloudMigrationsMigrationPlanStrategiesList;
_p = JSII_RTTI_SYMBOL_1;
CloudMigrationsMigrationPlanStrategiesList[_p] = { fqn: "rhizo-co-terraform-provider-oci.cloudMigrationsMigrationPlan.CloudMigrationsMigrationPlanStrategiesList", version: "1.0.0" };
function cloudMigrationsMigrationPlanTargetEnvironmentsToTerraform(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 {
availability_domain: cdktf.stringToTerraform(struct.availabilityDomain),
dedicated_vm_host: cdktf.stringToTerraform(struct.dedicatedVmHost),
fault_domain: cdktf.stringToTerraform(struct.faultDomain),
ms_license: cdktf.stringToTerraform(struct.msLicense),
preferred_shape_type: cdktf.stringToTerraform(struct.preferredShapeType),
subnet: cdktf.stringToTerraform(struct.subnet),
target_compartment_id: cdktf.stringToTerraform(struct.targetCompartmentId),
target_environment_type: cdktf.stringToTerraform(struct.targetEnvironmentType),
vcn: cdktf.stringToTerraform(struct.vcn),
};
}
exports.cloudMigrationsMigrationPlanTargetEnvironmentsToTerraform = cloudMigrationsMigrationPlanTargetEnvironmentsToTerraform;
function cloudMigrationsMigrationPlanTargetEnvironmentsToHclTerraform(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 = {
availability_domain: {
value: cdktf.stringToHclTerraform(struct.availabilityDomain),
isBlock: false,
type: "simple",
storageClassType: "string",
},
dedicated_vm_host: {
value: cdktf.stringToHclTerraform(struct.dedicatedVmHost),
isBlock: false,
type: "simple",
storageClassType: "string",
},
fault_domain: {
value: cdktf.stringToHclTerraform(struct.faultDomain),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ms_license: {
value: cdktf.stringToHclTerraform(struct.msLicense),
isBlock: false,
type: "simple",
storageClassType: "string",
},
preferred_shape_type: {
value: cdktf.stringToHclTerraform(struct.preferredShapeType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
subnet: {
value: cdktf.stringToHclTerraform(struct.subnet),
isBlock: false,
type: "simple",
storageClassType: "string",
},
target_compartment_id: {
value: cdktf.stringToHclTerraform(struct.targetCompartmentId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
target_environment_type: {
value: cdktf.stringToHclTerraform(struct.targetEnvironmentType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
vcn: {
value: cdktf.stringToHclTerraform(struct.vcn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.cloudMigrationsMigrationPlanTargetEnvironmentsToHclTerraform = cloudMigrationsMigrationPlanTargetEnvironmentsToHclTerraform;
class CloudMigrationsMigrationPlanTargetEnvironmentsOutputReference 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._availabilityDomain !== undefined) {
hasAnyValues = true;
internalValueResult.availabilityDomain = this._availabilityDomain;
}
if (this._dedicatedVmHost !== undefined) {
hasAnyValues = true;
internalValueResult.dedicatedVmHost = this._dedicatedVmHost;
}
if (this._faultDomain !== undefined) {
hasAnyValues = true;
internalValueResult.faultDomain = this._faultDomain;
}
if (this._msLicense !== undefined) {
hasAnyValues = true;
internalValueResult.msLicense = this._msLicense;
}
if (this._preferredShapeType !== undefined) {
hasAnyValues = true;
internalValueResult.preferredShapeType = this._preferredShapeType;
}
if (this._subnet !== undefined) {
hasAnyValues = true;
internalValueResult.subnet = this._subnet;
}
if (this._targetCompartmentId !== undefined) {
hasAnyValues = true;
internalValueResult.targetCompartmentId = this._targetCompartmentId;
}
if (this._targetEnvironmentType !== undefined) {
hasAnyValues = true;
internalValueResult.targetEnvironmentType = this._targetEnvironmentType;
}
if (this._vcn !== undefined) {
hasAnyValues = true;
internalValueResult.vcn = this._vcn;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._availabilityDomain = undefined;
this._dedicatedVmHost = undefined;
this._faultDomain = undefined;
this._msLicense = undefined;
this._preferredShapeType = undefined;
this._subnet = undefined;
this._targetCompartmentId = undefined;
this._targetEnvironmentType = undefined;
this._vcn = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}