UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

938 lines 135 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataOciOptimizerProfiles = exports.DataOciOptimizerProfilesFilterList = exports.DataOciOptimizerProfilesFilterOutputReference = exports.dataOciOptimizerProfilesFilterToHclTerraform = exports.dataOciOptimizerProfilesFilterToTerraform = exports.DataOciOptimizerProfilesProfileCollectionList = exports.DataOciOptimizerProfilesProfileCollectionOutputReference = exports.dataOciOptimizerProfilesProfileCollectionToHclTerraform = exports.dataOciOptimizerProfilesProfileCollectionToTerraform = exports.DataOciOptimizerProfilesProfileCollectionItemsList = exports.DataOciOptimizerProfilesProfileCollectionItemsOutputReference = exports.dataOciOptimizerProfilesProfileCollectionItemsToHclTerraform = exports.dataOciOptimizerProfilesProfileCollectionItemsToTerraform = exports.DataOciOptimizerProfilesProfileCollectionItemsTargetTagsList = exports.DataOciOptimizerProfilesProfileCollectionItemsTargetTagsOutputReference = exports.dataOciOptimizerProfilesProfileCollectionItemsTargetTagsToHclTerraform = exports.dataOciOptimizerProfilesProfileCollectionItemsTargetTagsToTerraform = exports.DataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsList = exports.DataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsOutputReference = exports.dataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsToHclTerraform = exports.dataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsToTerraform = exports.DataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsList = exports.DataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsOutputReference = exports.dataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsToHclTerraform = exports.dataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsToTerraform = exports.DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationList = exports.DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationOutputReference = exports.dataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationToHclTerraform = exports.dataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationToTerraform = exports.DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsList = exports.DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsOutputReference = exports.dataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsToHclTerraform = exports.dataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsToTerraform(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.dataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsToTerraform = dataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsToTerraform; function dataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsToHclTerraform(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.dataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsToHclTerraform = dataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsToHclTerraform; class DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsOutputReference 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; } } // level - computed: true, optional: false, required: false get level() { return this.getStringAttribute('level'); } // recommendation_id - computed: true, optional: false, required: false get recommendationId() { return this.getStringAttribute('recommendation_id'); } } exports.DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsOutputReference = DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsOutputReference; _a = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsOutputReference", version: "1.0.0" }; class DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsList 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 DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsList = DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsList; _b = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsList[_b] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsList", version: "1.0.0" }; function dataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationToTerraform(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.dataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationToTerraform = dataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationToTerraform; function dataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationToHclTerraform(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.dataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationToHclTerraform = dataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationToHclTerraform; class DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationOutputReference 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; // items - computed: true, optional: false, required: false this._items = new DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationItemsList(this, "items", 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 items() { return this._items; } } exports.DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationOutputReference = DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationOutputReference; _c = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationOutputReference", version: "1.0.0" }; class DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationList 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 DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationList = DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationList; _d = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationList[_d] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationList", version: "1.0.0" }; function dataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsToTerraform(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.dataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsToTerraform = dataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsToTerraform; function dataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsToHclTerraform(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.dataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsToHclTerraform = dataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsToHclTerraform; class DataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsOutputReference 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; } } // items - computed: true, optional: false, required: false get items() { return this.getListAttribute('items'); } } exports.DataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsOutputReference = DataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsOutputReference; _e = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsOutputReference", version: "1.0.0" }; class DataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsList 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 DataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsList = DataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsList; _f = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsList[_f] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsList", version: "1.0.0" }; function dataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsToTerraform(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.dataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsToTerraform = dataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsToTerraform; function dataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsToHclTerraform(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.dataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsToHclTerraform = dataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsToHclTerraform; class DataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsOutputReference 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; } } // tag_definition_name - computed: true, optional: false, required: false get tagDefinitionName() { return this.getStringAttribute('tag_definition_name'); } // tag_namespace_name - computed: true, optional: false, required: false get tagNamespaceName() { return this.getStringAttribute('tag_namespace_name'); } // tag_value_type - computed: true, optional: false, required: false get tagValueType() { return this.getStringAttribute('tag_value_type'); } // tag_values - computed: true, optional: false, required: false get tagValues() { return this.getListAttribute('tag_values'); } } exports.DataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsOutputReference = DataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsOutputReference; _g = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsOutputReference", version: "1.0.0" }; class DataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsList 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 DataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsList = DataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsList; _h = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsList[_h] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsList", version: "1.0.0" }; function dataOciOptimizerProfilesProfileCollectionItemsTargetTagsToTerraform(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.dataOciOptimizerProfilesProfileCollectionItemsTargetTagsToTerraform = dataOciOptimizerProfilesProfileCollectionItemsTargetTagsToTerraform; function dataOciOptimizerProfilesProfileCollectionItemsTargetTagsToHclTerraform(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.dataOciOptimizerProfilesProfileCollectionItemsTargetTagsToHclTerraform = dataOciOptimizerProfilesProfileCollectionItemsTargetTagsToHclTerraform; class DataOciOptimizerProfilesProfileCollectionItemsTargetTagsOutputReference 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; // items - computed: true, optional: false, required: false this._items = new DataOciOptimizerProfilesProfileCollectionItemsTargetTagsItemsList(this, "items", 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 items() { return this._items; } } exports.DataOciOptimizerProfilesProfileCollectionItemsTargetTagsOutputReference = DataOciOptimizerProfilesProfileCollectionItemsTargetTagsOutputReference; _j = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfilesProfileCollectionItemsTargetTagsOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfilesProfileCollectionItemsTargetTagsOutputReference", version: "1.0.0" }; class DataOciOptimizerProfilesProfileCollectionItemsTargetTagsList 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 DataOciOptimizerProfilesProfileCollectionItemsTargetTagsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataOciOptimizerProfilesProfileCollectionItemsTargetTagsList = DataOciOptimizerProfilesProfileCollectionItemsTargetTagsList; _k = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfilesProfileCollectionItemsTargetTagsList[_k] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfilesProfileCollectionItemsTargetTagsList", version: "1.0.0" }; function dataOciOptimizerProfilesProfileCollectionItemsToTerraform(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.dataOciOptimizerProfilesProfileCollectionItemsToTerraform = dataOciOptimizerProfilesProfileCollectionItemsToTerraform; function dataOciOptimizerProfilesProfileCollectionItemsToHclTerraform(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.dataOciOptimizerProfilesProfileCollectionItemsToHclTerraform = dataOciOptimizerProfilesProfileCollectionItemsToHclTerraform; class DataOciOptimizerProfilesProfileCollectionItemsOutputReference 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; // defined_tags - computed: true, optional: false, required: false this._definedTags = new cdktf.StringMap(this, "defined_tags"); // freeform_tags - computed: true, optional: false, required: false this._freeformTags = new cdktf.StringMap(this, "freeform_tags"); // levels_configuration - computed: true, optional: false, required: false this._levelsConfiguration = new DataOciOptimizerProfilesProfileCollectionItemsLevelsConfigurationList(this, "levels_configuration", false); // system_tags - computed: true, optional: false, required: false this._systemTags = new cdktf.StringMap(this, "system_tags"); // target_compartments - computed: true, optional: false, required: false this._targetCompartments = new DataOciOptimizerProfilesProfileCollectionItemsTargetCompartmentsList(this, "target_compartments", false); // target_tags - computed: true, optional: false, required: false this._targetTags = new DataOciOptimizerProfilesProfileCollectionItemsTargetTagsList(this, "target_tags", 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; } } // aggregation_interval_in_days - computed: true, optional: false, required: false get aggregationIntervalInDays() { return this.getNumberAttribute('aggregation_interval_in_days'); } // compartment_id - computed: true, optional: false, required: false get compartmentId() { return this.getStringAttribute('compartment_id'); } get definedTags() { return this._definedTags; } // description - computed: true, optional: false, required: false get description() { return this.getStringAttribute('description'); } get freeformTags() { return this._freeformTags; } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } get levelsConfiguration() { return this._levelsConfiguration; } // name - computed: true, optional: false, required: false get name() { return this.getStringAttribute('name'); } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } get systemTags() { return this._systemTags; } get targetCompartments() { return this._targetCompartments; } get targetTags() { return this._targetTags; } // time_created - computed: true, optional: false, required: false get timeCreated() { return this.getStringAttribute('time_created'); } // time_updated - computed: true, optional: false, required: false get timeUpdated() { return this.getStringAttribute('time_updated'); } } exports.DataOciOptimizerProfilesProfileCollectionItemsOutputReference = DataOciOptimizerProfilesProfileCollectionItemsOutputReference; _l = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfilesProfileCollectionItemsOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfilesProfileCollectionItemsOutputReference", version: "1.0.0" }; class DataOciOptimizerProfilesProfileCollectionItemsList 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 DataOciOptimizerProfilesProfileCollectionItemsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataOciOptimizerProfilesProfileCollectionItemsList = DataOciOptimizerProfilesProfileCollectionItemsList; _m = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfilesProfileCollectionItemsList[_m] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfilesProfileCollectionItemsList", version: "1.0.0" }; function dataOciOptimizerProfilesProfileCollectionToTerraform(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.dataOciOptimizerProfilesProfileCollectionToTerraform = dataOciOptimizerProfilesProfileCollectionToTerraform; function dataOciOptimizerProfilesProfileCollectionToHclTerraform(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.dataOciOptimizerProfilesProfileCollectionToHclTerraform = dataOciOptimizerProfilesProfileCollectionToHclTerraform; class DataOciOptimizerProfilesProfileCollectionOutputReference 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; // items - computed: true, optional: false, required: false this._items = new DataOciOptimizerProfilesProfileCollectionItemsList(this, "items", 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 items() { return this._items; } } exports.DataOciOptimizerProfilesProfileCollectionOutputReference = DataOciOptimizerProfilesProfileCollectionOutputReference; _o = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfilesProfileCollectionOutputReference[_o] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfilesProfileCollectionOutputReference", version: "1.0.0" }; class DataOciOptimizerProfilesProfileCollectionList 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 DataOciOptimizerProfilesProfileCollectionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataOciOptimizerProfilesProfileCollectionList = DataOciOptimizerProfilesProfileCollectionList; _p = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfilesProfileCollectionList[_p] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfilesProfileCollectionList", version: "1.0.0" }; function dataOciOptimizerProfilesFilterToTerraform(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), regex: cdktf.booleanToTerraform(struct.regex), values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values), }; } exports.dataOciOptimizerProfilesFilterToTerraform = dataOciOptimizerProfilesFilterToTerraform; function dataOciOptimizerProfilesFilterToHclTerraform(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", }, regex: { value: cdktf.booleanToHclTerraform(struct.regex), isBlock: false, type: "simple", storageClassType: "boolean", }, values: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataOciOptimizerProfilesFilterToHclTerraform = dataOciOptimizerProfilesFilterToHclTerraform; class DataOciOptimizerProfilesFilterOutputReference 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._regex !== undefined) { hasAnyValues = true; internalValueResult.regex = this._regex; } if (this._values !== undefined) { hasAnyValues = true; internalValueResult.values = this._values; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._regex = undefined; this._values = 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._regex = value.regex; this._values = value.values; } } 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 regex() { return this.getBooleanAttribute('regex'); } set regex(value) { this._regex = value; } resetRegex() { this._regex = undefined; } // Temporarily expose input value. Use with caution. get regexInput() { return this._regex; } get values() { return this.getListAttribute('values'); } set values(value) { this._values = value; } // Temporarily expose input value. Use with caution. get valuesInput() { return this._values; } } exports.DataOciOptimizerProfilesFilterOutputReference = DataOciOptimizerProfilesFilterOutputReference; _q = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfilesFilterOutputReference[_q] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfilesFilterOutputReference", version: "1.0.0" }; class DataOciOptimizerProfilesFilterList 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 DataOciOptimizerProfilesFilterOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataOciOptimizerProfilesFilterList = DataOciOptimizerProfilesFilterList; _r = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfilesFilterList[_r] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfilesFilterList", version: "1.0.0" }; /** * Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/data-sources/optimizer_profiles oci_optimizer_profiles} */ class DataOciOptimizerProfiles extends cdktf.TerraformDataSource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DataOciOptimizerProfiles 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 DataOciOptimizerProfiles to import * @param importFromId The id of the existing DataOciOptimizerProfiles that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/data-sources/optimizer_profiles#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DataOciOptimizerProfiles to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_optimizer_profiles", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/data-sources/optimizer_profiles oci_optimizer_profiles} Data Source * * @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 DataOciOptimizerProfilesConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'oci_optimizer_profiles', terraformGeneratorMetadata: { providerName: 'oci', providerVersion: '6.18.0', providerVersionConstraint: '~> 6.18.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // profile_collection - computed: true, optional: false, required: false this._profileCollection = new DataOciOptimizerProfilesProfileCollectionList(this, "profile_collection", false); // filter - computed: false, optional: true, required: false this._filter = new DataOciOptimizerProfilesFilterList(this, "filter", true); this._compartmentId = config.compartmentId; this._id = config.id; this._name = config.name; this._state = config.state; this._filter.internalValue = config.filter; } get compartmentId() { return this.getStringAttribute('compartment_id'); } set compartmentId(value) { this._compartmentId = value; } // Temporarily expose input value. Use with caution. get compartmentIdInput() { return this._compartmentId; } 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 name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get profileCollection() { return this._profileCollection; } get state() { return this.getStringAttribute('state'); } set state(value) { this._state = value; } resetState() { this._state = undefined; } // Temporarily expose input value. Use with caution. get stateInput() { return this._state; } get filter() { return this._filter; } putFilter(value) { this._filter.internalValue = value; } resetFilter() { this._filter.internalValue = undefined; } // Temporarily expose input value. Use with caution. get filterInput() { return this._filter.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { compartment_id: cdktf.stringToTerraform(this._compartmentId), id: cdktf.stringToTerraform(this._id), name: cdktf.stringToTerraform(this._name), state: cdktf.stringToTerraform(this._state), filter: cdktf.listMapper(dataOciOptimizerProfilesFilterToTerraform, true)(this._filter.internalValue), }; } synthesizeHclAttributes() { const attrs = { compartment_id: { value: cdktf.stringToHclTerraform(this._compartmentId), isBlock: false, type: "simple", storageClassType: "string", }, id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(this._name), isBlock: false, type: "simple", storageClassType: "string", }, state: { value: cdktf.stringToHclTerraform(this._state), isBlock: false, type: "simple", storageClassType: "string", }, filter: { value: cdktf.listMapperHcl(dataOciOptimizerProfilesFilterToHclTerraform, true)(this._filter.internalValue), isBlock: true, type: "set", storageClassType: "DataOciOptimizerProfilesFilterList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.DataOciOptimizerProfiles = DataOciOptimizerProfiles; _s = JSII_RTTI_SYMBOL_1; DataOciOptimizerProfiles[_s] = { fqn: "rhizo-co-terraform-provider-oci.dataOciOptimizerProfiles.DataOciOptimizerProfiles", version: "1.0.0" }; // ================= // STATIC PROPERTIES // ================= DataOciOptimizerProfiles.tfResourceType = "oci_optimizer_profiles"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGF0YS1vY2ktb3B0aW1pemVyLXByb2ZpbGVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBSUEsK0JBQStCO0FBa0MvQixTQUFnQixpRkFBaUYsQ0FBQyxNQUErRTtJQUMvSyxJQUFJLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxLQUFLLENBQUMsWUFBWSxDQUFDLFlBQVksQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQUMsT0FBTyxNQUFNLENBQUM7SUFBQyxDQUFDO0lBQzVGLElBQUksS0FBSyxDQUFDLGdCQUFnQixDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFDbkMsTUFBTSxJQUFJLEtBQUssQ0FBQyxvSEFBb0gsQ0FBQyxDQUFDO0lBQ3hJLENBQUM7SUFDRCxPQUFPLEVBQ04sQ0FBQTtBQUNILENBQUM7QUFQRCw4S0FPQztBQUdELFNBQWdCLG9GQUFvRixDQUFDLE1BQStFO0lBQ2xMLElBQUksQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEtBQUssQ0FBQyxZQUFZLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFBQyxPQUFPLE1BQU0sQ0FBQztJQUFDLENBQUM7SUFDNUYsSUFBSSxLQUFLLENBQUMsZ0JBQWdCLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUNuQyxNQUFNLElBQUksS0FBSyxDQUFDLG9IQUFvSCxDQUFDLENBQUM7SUFDeEksQ0FBQztJQUNELE1BQU0sS0FBSyxHQUFHLEVBQ2IsQ0FBQztJQUNGLE9BQU8sS0FBSyxDQUFDO0FBQ2YsQ0FBQztBQVJELG9MQVFDO0FBRUQsTUFBYSxxRkFBc0YsU0FBUSxLQUFLLENBQUMsYUFBYTtJQUc1SDs7Ozs7TUFLRTtJQUNGLFlBQW1CLGlCQUE2QyxFQUFFLGtCQUEwQixFQUFFLGtCQUEwQixFQUFFLHNCQUErQjtRQUN2SixLQUFLLENBQUMsaUJBQWlCLEVBQUUsa0JBQWtCLEVBQUUsc0JBQXNCLEVBQUUsa0JBQWtCLENBQUMsQ0FBQztRQVRuRixrQkFBYSxHQUFHLEtBQUssQ0FBQztJQVU5QixDQUFDO0lBRUQsSUFBVyxhQUFhO1FBQ3RCLElBQUksWUFBWSxHQUFHLElBQUksQ0FBQyxhQUFhLENBQUM7UUFDdEMsTUFBTSxtQkFBbUIsR0FBUSxFQUFFLENBQUM7UUFDcEMsT0FBTyxZQUFZLENBQUMsQ0FBQyxDQUFDLG1CQUFtQixDQUFDLENBQUMsQ0FBQyxTQUFTLENBQUM7SUFDeEQsQ0FBQztJQUVELElBQVcsYUFBYSxDQUFDLEtBQXlGO1FBQ2hILElBQUksS0FBSyxLQUFLLFNBQVMsRUFBRSxDQUFDO1lBQ3hCLElBQUksQ0FBQyxhQUFhLEdBQUcsS0FBSyxDQUFDO1FBQzdCLENBQUM7YUFDSSxDQUFDO1lBQ0osSUFBSSxDQUFDLGFBQWEsR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLE1BQU0sS0FBSyxDQUFDLENBQUM7UUFDdkQsQ0FBQztJQUNILENBQUM7SUFFRCwyREFBMkQ7SUFDM0QsSUFBVyxLQUFLO1FBQ2QsT0FBTyxJQUFJLENBQUMsa0JBQWtCLENBQUMsT0FBTyxDQUFDLENBQUM7SUFDMUMsQ0FBQztJQUVELHVFQUF1RTtJQUN2RSxJQUFXLGdCQUFnQjtRQUN6QixPQUFPLElBQUksQ0FBQyxrQkFBa0IsQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDO0lBQ3RELENBQUM7O0FBcENILHNMQXFDQzs7O0FBRUQsTU