rhizo-co-terraform-provider-oci
Version:
Prebuilt oci Provider for Terraform CDK (cdktf)
1,070 lines (1,069 loc) • 210 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OsManagementHubSoftwareSource = exports.OsManagementHubSoftwareSourceVendorSoftwareSourcesList = exports.OsManagementHubSoftwareSourceVendorSoftwareSourcesOutputReference = exports.osManagementHubSoftwareSourceVendorSoftwareSourcesToHclTerraform = exports.osManagementHubSoftwareSourceVendorSoftwareSourcesToTerraform = exports.OsManagementHubSoftwareSourceTimeoutsOutputReference = exports.osManagementHubSoftwareSourceTimeoutsToHclTerraform = exports.osManagementHubSoftwareSourceTimeoutsToTerraform = exports.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterOutputReference = exports.osManagementHubSoftwareSourceCustomSoftwareSourceFilterToHclTerraform = exports.osManagementHubSoftwareSourceCustomSoftwareSourceFilterToTerraform = exports.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersList = exports.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersOutputReference = exports.osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersToHclTerraform = exports.osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersToTerraform = exports.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersList = exports.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersOutputReference = exports.osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersToHclTerraform = exports.osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersToTerraform = exports.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersList = exports.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersOutputReference = exports.osManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersToHclTerraform = exports.osManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function osManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersToTerraform(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 {
filter_type: cdktf.stringToTerraform(struct.filterType),
module_name: cdktf.stringToTerraform(struct.moduleName),
profile_name: cdktf.stringToTerraform(struct.profileName),
stream_name: cdktf.stringToTerraform(struct.streamName),
};
}
exports.osManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersToTerraform = osManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersToTerraform;
function osManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersToHclTerraform(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 = {
filter_type: {
value: cdktf.stringToHclTerraform(struct.filterType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
module_name: {
value: cdktf.stringToHclTerraform(struct.moduleName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
profile_name: {
value: cdktf.stringToHclTerraform(struct.profileName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
stream_name: {
value: cdktf.stringToHclTerraform(struct.streamName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.osManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersToHclTerraform = osManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersToHclTerraform;
class OsManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersOutputReference 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._filterType !== undefined) {
hasAnyValues = true;
internalValueResult.filterType = this._filterType;
}
if (this._moduleName !== undefined) {
hasAnyValues = true;
internalValueResult.moduleName = this._moduleName;
}
if (this._profileName !== undefined) {
hasAnyValues = true;
internalValueResult.profileName = this._profileName;
}
if (this._streamName !== undefined) {
hasAnyValues = true;
internalValueResult.streamName = this._streamName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._filterType = undefined;
this._moduleName = undefined;
this._profileName = undefined;
this._streamName = 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._filterType = value.filterType;
this._moduleName = value.moduleName;
this._profileName = value.profileName;
this._streamName = value.streamName;
}
}
get filterType() {
return this.getStringAttribute('filter_type');
}
set filterType(value) {
this._filterType = value;
}
resetFilterType() {
this._filterType = undefined;
}
// Temporarily expose input value. Use with caution.
get filterTypeInput() {
return this._filterType;
}
get moduleName() {
return this.getStringAttribute('module_name');
}
set moduleName(value) {
this._moduleName = value;
}
resetModuleName() {
this._moduleName = undefined;
}
// Temporarily expose input value. Use with caution.
get moduleNameInput() {
return this._moduleName;
}
get profileName() {
return this.getStringAttribute('profile_name');
}
set profileName(value) {
this._profileName = value;
}
resetProfileName() {
this._profileName = undefined;
}
// Temporarily expose input value. Use with caution.
get profileNameInput() {
return this._profileName;
}
get streamName() {
return this.getStringAttribute('stream_name');
}
set streamName(value) {
this._streamName = value;
}
resetStreamName() {
this._streamName = undefined;
}
// Temporarily expose input value. Use with caution.
get streamNameInput() {
return this._streamName;
}
}
exports.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersOutputReference = OsManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersOutputReference;
_a = JSII_RTTI_SYMBOL_1;
OsManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.osManagementHubSoftwareSource.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersOutputReference", version: "1.0.0" };
class OsManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersList 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 OsManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersList = OsManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersList;
_b = JSII_RTTI_SYMBOL_1;
OsManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersList[_b] = { fqn: "rhizo-co-terraform-provider-oci.osManagementHubSoftwareSource.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersList", version: "1.0.0" };
function osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersToTerraform(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 {
filter_type: cdktf.stringToTerraform(struct.filterType),
package_name: cdktf.stringToTerraform(struct.packageName),
package_name_pattern: cdktf.stringToTerraform(struct.packageNamePattern),
package_version: cdktf.stringToTerraform(struct.packageVersion),
};
}
exports.osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersToTerraform = osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersToTerraform;
function osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersToHclTerraform(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 = {
filter_type: {
value: cdktf.stringToHclTerraform(struct.filterType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
package_name: {
value: cdktf.stringToHclTerraform(struct.packageName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
package_name_pattern: {
value: cdktf.stringToHclTerraform(struct.packageNamePattern),
isBlock: false,
type: "simple",
storageClassType: "string",
},
package_version: {
value: cdktf.stringToHclTerraform(struct.packageVersion),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersToHclTerraform = osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersToHclTerraform;
class OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersOutputReference 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._filterType !== undefined) {
hasAnyValues = true;
internalValueResult.filterType = this._filterType;
}
if (this._packageName !== undefined) {
hasAnyValues = true;
internalValueResult.packageName = this._packageName;
}
if (this._packageNamePattern !== undefined) {
hasAnyValues = true;
internalValueResult.packageNamePattern = this._packageNamePattern;
}
if (this._packageVersion !== undefined) {
hasAnyValues = true;
internalValueResult.packageVersion = this._packageVersion;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._filterType = undefined;
this._packageName = undefined;
this._packageNamePattern = undefined;
this._packageVersion = 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._filterType = value.filterType;
this._packageName = value.packageName;
this._packageNamePattern = value.packageNamePattern;
this._packageVersion = value.packageVersion;
}
}
get filterType() {
return this.getStringAttribute('filter_type');
}
set filterType(value) {
this._filterType = value;
}
resetFilterType() {
this._filterType = undefined;
}
// Temporarily expose input value. Use with caution.
get filterTypeInput() {
return this._filterType;
}
get packageName() {
return this.getStringAttribute('package_name');
}
set packageName(value) {
this._packageName = value;
}
resetPackageName() {
this._packageName = undefined;
}
// Temporarily expose input value. Use with caution.
get packageNameInput() {
return this._packageName;
}
get packageNamePattern() {
return this.getStringAttribute('package_name_pattern');
}
set packageNamePattern(value) {
this._packageNamePattern = value;
}
resetPackageNamePattern() {
this._packageNamePattern = undefined;
}
// Temporarily expose input value. Use with caution.
get packageNamePatternInput() {
return this._packageNamePattern;
}
get packageVersion() {
return this.getStringAttribute('package_version');
}
set packageVersion(value) {
this._packageVersion = value;
}
resetPackageVersion() {
this._packageVersion = undefined;
}
// Temporarily expose input value. Use with caution.
get packageVersionInput() {
return this._packageVersion;
}
}
exports.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersOutputReference = OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersOutputReference;
_c = JSII_RTTI_SYMBOL_1;
OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.osManagementHubSoftwareSource.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersOutputReference", version: "1.0.0" };
class OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersList 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 OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersList = OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersList;
_d = JSII_RTTI_SYMBOL_1;
OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersList[_d] = { fqn: "rhizo-co-terraform-provider-oci.osManagementHubSoftwareSource.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersList", version: "1.0.0" };
function osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersToTerraform(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 {
filter_type: cdktf.stringToTerraform(struct.filterType),
package_groups: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.packageGroups),
};
}
exports.osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersToTerraform = osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersToTerraform;
function osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersToHclTerraform(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 = {
filter_type: {
value: cdktf.stringToHclTerraform(struct.filterType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
package_groups: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.packageGroups),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersToHclTerraform = osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersToHclTerraform;
class OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersOutputReference 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._filterType !== undefined) {
hasAnyValues = true;
internalValueResult.filterType = this._filterType;
}
if (this._packageGroups !== undefined) {
hasAnyValues = true;
internalValueResult.packageGroups = this._packageGroups;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._filterType = undefined;
this._packageGroups = 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._filterType = value.filterType;
this._packageGroups = value.packageGroups;
}
}
get filterType() {
return this.getStringAttribute('filter_type');
}
set filterType(value) {
this._filterType = value;
}
resetFilterType() {
this._filterType = undefined;
}
// Temporarily expose input value. Use with caution.
get filterTypeInput() {
return this._filterType;
}
get packageGroups() {
return this.getListAttribute('package_groups');
}
set packageGroups(value) {
this._packageGroups = value;
}
resetPackageGroups() {
this._packageGroups = undefined;
}
// Temporarily expose input value. Use with caution.
get packageGroupsInput() {
return this._packageGroups;
}
}
exports.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersOutputReference = OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersOutputReference;
_e = JSII_RTTI_SYMBOL_1;
OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.osManagementHubSoftwareSource.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersOutputReference", version: "1.0.0" };
class OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersList 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 OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersList = OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersList;
_f = JSII_RTTI_SYMBOL_1;
OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersList[_f] = { fqn: "rhizo-co-terraform-provider-oci.osManagementHubSoftwareSource.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersList", version: "1.0.0" };
function osManagementHubSoftwareSourceCustomSoftwareSourceFilterToTerraform(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 {
module_stream_profile_filters: cdktf.listMapper(osManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersToTerraform, true)(struct.moduleStreamProfileFilters),
package_filters: cdktf.listMapper(osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersToTerraform, true)(struct.packageFilters),
package_group_filters: cdktf.listMapper(osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersToTerraform, true)(struct.packageGroupFilters),
};
}
exports.osManagementHubSoftwareSourceCustomSoftwareSourceFilterToTerraform = osManagementHubSoftwareSourceCustomSoftwareSourceFilterToTerraform;
function osManagementHubSoftwareSourceCustomSoftwareSourceFilterToHclTerraform(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 = {
module_stream_profile_filters: {
value: cdktf.listMapperHcl(osManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersToHclTerraform, true)(struct.moduleStreamProfileFilters),
isBlock: true,
type: "list",
storageClassType: "OsManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersList",
},
package_filters: {
value: cdktf.listMapperHcl(osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersToHclTerraform, true)(struct.packageFilters),
isBlock: true,
type: "list",
storageClassType: "OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersList",
},
package_group_filters: {
value: cdktf.listMapperHcl(osManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersToHclTerraform, true)(struct.packageGroupFilters),
isBlock: true,
type: "list",
storageClassType: "OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.osManagementHubSoftwareSourceCustomSoftwareSourceFilterToHclTerraform = osManagementHubSoftwareSourceCustomSoftwareSourceFilterToHclTerraform;
class OsManagementHubSoftwareSourceCustomSoftwareSourceFilterOutputReference 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;
// module_stream_profile_filters - computed: false, optional: true, required: false
this._moduleStreamProfileFilters = new OsManagementHubSoftwareSourceCustomSoftwareSourceFilterModuleStreamProfileFiltersList(this, "module_stream_profile_filters", false);
// package_filters - computed: false, optional: true, required: false
this._packageFilters = new OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageFiltersList(this, "package_filters", false);
// package_group_filters - computed: false, optional: true, required: false
this._packageGroupFilters = new OsManagementHubSoftwareSourceCustomSoftwareSourceFilterPackageGroupFiltersList(this, "package_group_filters", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._moduleStreamProfileFilters?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.moduleStreamProfileFilters = this._moduleStreamProfileFilters?.internalValue;
}
if (this._packageFilters?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.packageFilters = this._packageFilters?.internalValue;
}
if (this._packageGroupFilters?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.packageGroupFilters = this._packageGroupFilters?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._moduleStreamProfileFilters.internalValue = undefined;
this._packageFilters.internalValue = undefined;
this._packageGroupFilters.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._moduleStreamProfileFilters.internalValue = value.moduleStreamProfileFilters;
this._packageFilters.internalValue = value.packageFilters;
this._packageGroupFilters.internalValue = value.packageGroupFilters;
}
}
get moduleStreamProfileFilters() {
return this._moduleStreamProfileFilters;
}
putModuleStreamProfileFilters(value) {
this._moduleStreamProfileFilters.internalValue = value;
}
resetModuleStreamProfileFilters() {
this._moduleStreamProfileFilters.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get moduleStreamProfileFiltersInput() {
return this._moduleStreamProfileFilters.internalValue;
}
get packageFilters() {
return this._packageFilters;
}
putPackageFilters(value) {
this._packageFilters.internalValue = value;
}
resetPackageFilters() {
this._packageFilters.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get packageFiltersInput() {
return this._packageFilters.internalValue;
}
get packageGroupFilters() {
return this._packageGroupFilters;
}
putPackageGroupFilters(value) {
this._packageGroupFilters.internalValue = value;
}
resetPackageGroupFilters() {
this._packageGroupFilters.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get packageGroupFiltersInput() {
return this._packageGroupFilters.internalValue;
}
}
exports.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterOutputReference = OsManagementHubSoftwareSourceCustomSoftwareSourceFilterOutputReference;
_g = JSII_RTTI_SYMBOL_1;
OsManagementHubSoftwareSourceCustomSoftwareSourceFilterOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.osManagementHubSoftwareSource.OsManagementHubSoftwareSourceCustomSoftwareSourceFilterOutputReference", version: "1.0.0" };
function osManagementHubSoftwareSourceTimeoutsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
create: cdktf.stringToTerraform(struct.create),
delete: cdktf.stringToTerraform(struct.delete),
update: cdktf.stringToTerraform(struct.update),
};
}
exports.osManagementHubSoftwareSourceTimeoutsToTerraform = osManagementHubSoftwareSourceTimeoutsToTerraform;
function osManagementHubSoftwareSourceTimeoutsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
create: {
value: cdktf.stringToHclTerraform(struct.create),
isBlock: false,
type: "simple",
storageClassType: "string",
},
delete: {
value: cdktf.stringToHclTerraform(struct.delete),
isBlock: false,
type: "simple",
storageClassType: "string",
},
update: {
value: cdktf.stringToHclTerraform(struct.update),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.osManagementHubSoftwareSourceTimeoutsToHclTerraform = osManagementHubSoftwareSourceTimeoutsToHclTerraform;
class OsManagementHubSoftwareSourceTimeoutsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._create !== undefined) {
hasAnyValues = true;
internalValueResult.create = this._create;
}
if (this._delete !== undefined) {
hasAnyValues = true;
internalValueResult.delete = this._delete;
}
if (this._update !== undefined) {
hasAnyValues = true;
internalValueResult.update = this._update;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._create = undefined;
this._delete = undefined;
this._update = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._create = value.create;
this._delete = value.delete;
this._update = value.update;
}
}
get create() {
return this.getStringAttribute('create');
}
set create(value) {
this._create = value;
}
resetCreate() {
this._create = undefined;
}
// Temporarily expose input value. Use with caution.
get createInput() {
return this._create;
}
get delete() {
return this.getStringAttribute('delete');
}
set delete(value) {
this._delete = value;
}
resetDelete() {
this._delete = undefined;
}
// Temporarily expose input value. Use with caution.
get deleteInput() {
return this._delete;
}
get update() {
return this.getStringAttribute('update');
}
set update(value) {
this._update = value;
}
resetUpdate() {
this._update = undefined;
}
// Temporarily expose input value. Use with caution.
get updateInput() {
return this._update;
}
}
exports.OsManagementHubSoftwareSourceTimeoutsOutputReference = OsManagementHubSoftwareSourceTimeoutsOutputReference;
_h = JSII_RTTI_SYMBOL_1;
OsManagementHubSoftwareSourceTimeoutsOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.osManagementHubSoftwareSource.OsManagementHubSoftwareSourceTimeoutsOutputReference", version: "1.0.0" };
function osManagementHubSoftwareSourceVendorSoftwareSourcesToTerraform(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 {
display_name: cdktf.stringToTerraform(struct.displayName),
id: cdktf.stringToTerraform(struct.id),
};
}
exports.osManagementHubSoftwareSourceVendorSoftwareSourcesToTerraform = osManagementHubSoftwareSourceVendorSoftwareSourcesToTerraform;
function osManagementHubSoftwareSourceVendorSoftwareSourcesToHclTerraform(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 = {
display_name: {
value: cdktf.stringToHclTerraform(struct.displayName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
id: {
value: cdktf.stringToHclTerraform(struct.id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.osManagementHubSoftwareSourceVendorSoftwareSourcesToHclTerraform = osManagementHubSoftwareSourceVendorSoftwareSourcesToHclTerraform;
class OsManagementHubSoftwareSourceVendorSoftwareSourcesOutputReference 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._displayName !== undefined) {
hasAnyValues = true;
internalValueResult.displayName = this._displayName;
}
if (this._id !== undefined) {
hasAnyValues = true;
internalValueResult.id = this._id;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._displayName = undefined;
this._id = 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._displayName = value.displayName;
this._id = value.id;
}
}
get displayName() {
return this.getStringAttribute('display_name');
}
set displayName(value) {
this._displayName = value;
}
resetDisplayName() {
this._displayName = undefined;
}
// Temporarily expose input value. Use with caution.
get displayNameInput() {
return this._displayName;
}
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;
}
}
exports.OsManagementHubSoftwareSourceVendorSoftwareSourcesOutputReference = OsManagementHubSoftwareSourceVendorSoftwareSourcesOutputReference;
_j = JSII_RTTI_SYMBOL_1;
OsManagementHubSoftwareSourceVendorSoftwareSourcesOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.osManagementHubSoftwareSource.OsManagementHubSoftwareSourceVendorSoftwareSourcesOutputReference", version: "1.0.0" };
class OsManagementHubSoftwareSourceVendorSoftwareSourcesList 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 OsManagementHubSoftwareSourceVendorSoftwareSourcesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OsManagementHubSoftwareSourceVendorSoftwareSourcesList = OsManagementHubSoftwareSourceVendorSoftwareSourcesList;
_k = JSII_RTTI_SYMBOL_1;
OsManagementHubSoftwareSourceVendorSoftwareSourcesList[_k] = { fqn: "rhizo-co-terraform-provider-oci.osManagementHubSoftwareSource.OsManagementHubSoftwareSourceVendorSoftwareSourcesList", version: "1.0.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/os_management_hub_software_source oci_os_management_hub_software_source}
*/
class OsManagementHubSoftwareSource extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a OsManagementHubSoftwareSource 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 OsManagementHubSoftwareSource to import
* @param importFromId The id of the existing OsManagementHubSoftwareSource that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/os_management_hub_software_source#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the OsManagementHubSoftwareSource to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_os_management_hub_software_source", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/os_management_hub_software_source oci_os_management_hub_software_source} Resource
*
* @param scope The scope in which to define this construct
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
* @param options OsManagementHubSoftwareSourceConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'oci_os_management_hub_software_source',
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
});
// system_tags - computed: true, optional: false, required: false
this._systemTags = new cdktf.StringMap(this, "system_tags");
// custom_software_source_filter - computed: false, optional: true, required: false
this._customSoftwareSourceFilter = new OsManagementHubSoftwareSourceCustomSoftwareSourceFilterOutputReference(this, "custom_software_source_filter");
// timeouts - computed: false, optional: true, required: false
this._timeouts = new OsManagementHubSoftwareSourceTimeoutsOutputReference(this, "timeouts");
// vendor_software_sources - computed: false, optional: true, required: false
this._vendorSoftwareSources = new OsManagementHubSoftwareSourceVendorSoftwareSourcesList(this, "vendor_software_sources", false);
this._compartmentId = config.compartmentId;
this._definedTags = config.definedTags;
this._description = config.description;
this._displayName = config.displayName;
this._freeformTags = config.freeformTags;
this._id = config.id;
this._isAutoResolveDependencies = config.isAutoResolveDependencies;
this._isAutomaticallyUpdated = config.isAutomaticallyUpdated;
this._isCreatedFromPackageList = config.isCreatedFromPackageList;
this._isLatestContentOnly = config.isLatestContentOnly;
this._originSoftwareSourceId = config.originSoftwareSourceId;
this._packages = config.packages;
this._softwareSourceType = config.softwareSourceType;
this._softwareSourceVersion = config.softwareSourceVersion;
this._customSoftwareSourceFilter.internalValue = config.customSoftwareSourceFilter;
this._timeouts.internalValue = config.timeouts;
this._vendorSoftwareSources.internalValue = config.vendorSoftwareSources;
}
// ==========
// ATTRIBUTES
// ==========
// arch_type - computed: true, optional: false, required: false
get archType() {
return this.getStringAttribute('arch_type');
}
// availability - computed: true, optional: false, required: false
get availability() {
return this.getStringAttribute('availability');
}
// availability_at_oci - computed: true, optional: false, required: false
get availabilityAtOci() {
return this.getStringAttribute('availability_at_oci');
}
// checksum_type - computed: true, optional: false, required: false
get checksumType() {
return this.getStringAttribute('checksum_type');
}
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 definedTags() {
return this.getStringMapAttribute('defined_tags');
}
set definedTags(value) {
this._definedTags = value;
}
resetDefinedTags() {
this._definedTags = undefined;
}
// Temporarily expose input value. Use with caution.
get definedTagsInput() {
return this._definedTags;
}
get description() {
return this.getStringAttribute('description');
}
set description(value) {
this._description = value;
}
resetDescription() {
this._description = undefined;
}
// Temporarily expose input value. Use with caution.
get descriptionInput() {
return this._description;
}
get displayName() {
return this.getStringAttribute('display_name');
}
set displayName(value) {
this._displayName = value;
}
resetDisplayName() {
this._displayName = undefined;
}
// Temporarily expose input value. Use with caution.
get displayNameInput() {
return this._displayName;
}
get freeformTags() {
return this.getStringMapAttribute('freeform_tags');
}
set freeformTags(value) {
this._freeformTags = value;
}
resetFreeformTags() {
this._freeformTags = undefined;
}
// Temporarily expose input value. Use with caution.
get freeformTagsInput() {