UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,158 lines 180 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; Object.defineProperty(exports, "__esModule", { value: true }); exports.OdbCloudExadataInfrastructure = exports.OdbCloudExadataInfrastructureTimeoutsOutputReference = exports.OdbCloudExadataInfrastructureMaintenanceWindowList = exports.OdbCloudExadataInfrastructureMaintenanceWindowOutputReference = exports.OdbCloudExadataInfrastructureMaintenanceWindowMonthsList = exports.OdbCloudExadataInfrastructureMaintenanceWindowMonthsOutputReference = exports.OdbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekList = exports.OdbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference = exports.OdbCloudExadataInfrastructureCustomerContactsToSendToOciList = exports.OdbCloudExadataInfrastructureCustomerContactsToSendToOciOutputReference = void 0; exports.odbCloudExadataInfrastructureCustomerContactsToSendToOciToTerraform = odbCloudExadataInfrastructureCustomerContactsToSendToOciToTerraform; exports.odbCloudExadataInfrastructureCustomerContactsToSendToOciToHclTerraform = odbCloudExadataInfrastructureCustomerContactsToSendToOciToHclTerraform; exports.odbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform = odbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform; exports.odbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform = odbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform; exports.odbCloudExadataInfrastructureMaintenanceWindowMonthsToTerraform = odbCloudExadataInfrastructureMaintenanceWindowMonthsToTerraform; exports.odbCloudExadataInfrastructureMaintenanceWindowMonthsToHclTerraform = odbCloudExadataInfrastructureMaintenanceWindowMonthsToHclTerraform; exports.odbCloudExadataInfrastructureMaintenanceWindowToTerraform = odbCloudExadataInfrastructureMaintenanceWindowToTerraform; exports.odbCloudExadataInfrastructureMaintenanceWindowToHclTerraform = odbCloudExadataInfrastructureMaintenanceWindowToHclTerraform; exports.odbCloudExadataInfrastructureTimeoutsToTerraform = odbCloudExadataInfrastructureTimeoutsToTerraform; exports.odbCloudExadataInfrastructureTimeoutsToHclTerraform = odbCloudExadataInfrastructureTimeoutsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function odbCloudExadataInfrastructureCustomerContactsToSendToOciToTerraform(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 { email: cdktf.stringToTerraform(struct.email), }; } function odbCloudExadataInfrastructureCustomerContactsToSendToOciToHclTerraform(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 = { email: { value: cdktf.stringToHclTerraform(struct.email), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class OdbCloudExadataInfrastructureCustomerContactsToSendToOciOutputReference 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._email !== undefined) { hasAnyValues = true; internalValueResult.email = this._email; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._email = 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._email = value.email; } } get email() { return this.getStringAttribute('email'); } set email(value) { this._email = value; } resetEmail() { this._email = undefined; } // Temporarily expose input value. Use with caution. get emailInput() { return this._email; } } exports.OdbCloudExadataInfrastructureCustomerContactsToSendToOciOutputReference = OdbCloudExadataInfrastructureCustomerContactsToSendToOciOutputReference; _a = JSII_RTTI_SYMBOL_1; OdbCloudExadataInfrastructureCustomerContactsToSendToOciOutputReference[_a] = { fqn: "@cdktf/provider-aws.odbCloudExadataInfrastructure.OdbCloudExadataInfrastructureCustomerContactsToSendToOciOutputReference", version: "21.22.1" }; class OdbCloudExadataInfrastructureCustomerContactsToSendToOciList 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 OdbCloudExadataInfrastructureCustomerContactsToSendToOciOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OdbCloudExadataInfrastructureCustomerContactsToSendToOciList = OdbCloudExadataInfrastructureCustomerContactsToSendToOciList; _b = JSII_RTTI_SYMBOL_1; OdbCloudExadataInfrastructureCustomerContactsToSendToOciList[_b] = { fqn: "@cdktf/provider-aws.odbCloudExadataInfrastructure.OdbCloudExadataInfrastructureCustomerContactsToSendToOciList", version: "21.22.1" }; function odbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform(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), }; } function odbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform(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", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class OdbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference 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; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = 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; } } 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; } } exports.OdbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference = OdbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference; _c = JSII_RTTI_SYMBOL_1; OdbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference[_c] = { fqn: "@cdktf/provider-aws.odbCloudExadataInfrastructure.OdbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference", version: "21.22.1" }; class OdbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekList 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 OdbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OdbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekList = OdbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekList; _d = JSII_RTTI_SYMBOL_1; OdbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekList[_d] = { fqn: "@cdktf/provider-aws.odbCloudExadataInfrastructure.OdbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekList", version: "21.22.1" }; function odbCloudExadataInfrastructureMaintenanceWindowMonthsToTerraform(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), }; } function odbCloudExadataInfrastructureMaintenanceWindowMonthsToHclTerraform(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", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class OdbCloudExadataInfrastructureMaintenanceWindowMonthsOutputReference 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; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = 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; } } 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; } } exports.OdbCloudExadataInfrastructureMaintenanceWindowMonthsOutputReference = OdbCloudExadataInfrastructureMaintenanceWindowMonthsOutputReference; _e = JSII_RTTI_SYMBOL_1; OdbCloudExadataInfrastructureMaintenanceWindowMonthsOutputReference[_e] = { fqn: "@cdktf/provider-aws.odbCloudExadataInfrastructure.OdbCloudExadataInfrastructureMaintenanceWindowMonthsOutputReference", version: "21.22.1" }; class OdbCloudExadataInfrastructureMaintenanceWindowMonthsList 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 OdbCloudExadataInfrastructureMaintenanceWindowMonthsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OdbCloudExadataInfrastructureMaintenanceWindowMonthsList = OdbCloudExadataInfrastructureMaintenanceWindowMonthsList; _f = JSII_RTTI_SYMBOL_1; OdbCloudExadataInfrastructureMaintenanceWindowMonthsList[_f] = { fqn: "@cdktf/provider-aws.odbCloudExadataInfrastructure.OdbCloudExadataInfrastructureMaintenanceWindowMonthsList", version: "21.22.1" }; function odbCloudExadataInfrastructureMaintenanceWindowToTerraform(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 { custom_action_timeout_in_mins: cdktf.numberToTerraform(struct.customActionTimeoutInMins), days_of_week: cdktf.listMapper(odbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToTerraform, false)(struct.daysOfWeek), hours_of_day: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.hoursOfDay), is_custom_action_timeout_enabled: cdktf.booleanToTerraform(struct.isCustomActionTimeoutEnabled), lead_time_in_weeks: cdktf.numberToTerraform(struct.leadTimeInWeeks), months: cdktf.listMapper(odbCloudExadataInfrastructureMaintenanceWindowMonthsToTerraform, false)(struct.months), patching_mode: cdktf.stringToTerraform(struct.patchingMode), preference: cdktf.stringToTerraform(struct.preference), weeks_of_month: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.weeksOfMonth), }; } function odbCloudExadataInfrastructureMaintenanceWindowToHclTerraform(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 = { custom_action_timeout_in_mins: { value: cdktf.numberToHclTerraform(struct.customActionTimeoutInMins), isBlock: false, type: "simple", storageClassType: "number", }, days_of_week: { value: cdktf.listMapperHcl(odbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekToHclTerraform, false)(struct.daysOfWeek), isBlock: true, type: "set", storageClassType: "OdbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekList", }, hours_of_day: { value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(struct.hoursOfDay), isBlock: false, type: "set", storageClassType: "numberList", }, is_custom_action_timeout_enabled: { value: cdktf.booleanToHclTerraform(struct.isCustomActionTimeoutEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, lead_time_in_weeks: { value: cdktf.numberToHclTerraform(struct.leadTimeInWeeks), isBlock: false, type: "simple", storageClassType: "number", }, months: { value: cdktf.listMapperHcl(odbCloudExadataInfrastructureMaintenanceWindowMonthsToHclTerraform, false)(struct.months), isBlock: true, type: "set", storageClassType: "OdbCloudExadataInfrastructureMaintenanceWindowMonthsList", }, patching_mode: { value: cdktf.stringToHclTerraform(struct.patchingMode), isBlock: false, type: "simple", storageClassType: "string", }, preference: { value: cdktf.stringToHclTerraform(struct.preference), isBlock: false, type: "simple", storageClassType: "string", }, weeks_of_month: { value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(struct.weeksOfMonth), isBlock: false, type: "set", storageClassType: "numberList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class OdbCloudExadataInfrastructureMaintenanceWindowOutputReference 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; // days_of_week - computed: true, optional: true, required: false this._daysOfWeek = new OdbCloudExadataInfrastructureMaintenanceWindowDaysOfWeekList(this, "days_of_week", true); // months - computed: true, optional: true, required: false this._months = new OdbCloudExadataInfrastructureMaintenanceWindowMonthsList(this, "months", true); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._customActionTimeoutInMins !== undefined) { hasAnyValues = true; internalValueResult.customActionTimeoutInMins = this._customActionTimeoutInMins; } if (this._daysOfWeek?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.daysOfWeek = this._daysOfWeek?.internalValue; } if (this._hoursOfDay !== undefined) { hasAnyValues = true; internalValueResult.hoursOfDay = this._hoursOfDay; } if (this._isCustomActionTimeoutEnabled !== undefined) { hasAnyValues = true; internalValueResult.isCustomActionTimeoutEnabled = this._isCustomActionTimeoutEnabled; } if (this._leadTimeInWeeks !== undefined) { hasAnyValues = true; internalValueResult.leadTimeInWeeks = this._leadTimeInWeeks; } if (this._months?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.months = this._months?.internalValue; } if (this._patchingMode !== undefined) { hasAnyValues = true; internalValueResult.patchingMode = this._patchingMode; } if (this._preference !== undefined) { hasAnyValues = true; internalValueResult.preference = this._preference; } if (this._weeksOfMonth !== undefined) { hasAnyValues = true; internalValueResult.weeksOfMonth = this._weeksOfMonth; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._customActionTimeoutInMins = undefined; this._daysOfWeek.internalValue = undefined; this._hoursOfDay = undefined; this._isCustomActionTimeoutEnabled = undefined; this._leadTimeInWeeks = undefined; this._months.internalValue = undefined; this._patchingMode = undefined; this._preference = undefined; this._weeksOfMonth = 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._customActionTimeoutInMins = value.customActionTimeoutInMins; this._daysOfWeek.internalValue = value.daysOfWeek; this._hoursOfDay = value.hoursOfDay; this._isCustomActionTimeoutEnabled = value.isCustomActionTimeoutEnabled; this._leadTimeInWeeks = value.leadTimeInWeeks; this._months.internalValue = value.months; this._patchingMode = value.patchingMode; this._preference = value.preference; this._weeksOfMonth = value.weeksOfMonth; } } get customActionTimeoutInMins() { return this.getNumberAttribute('custom_action_timeout_in_mins'); } set customActionTimeoutInMins(value) { this._customActionTimeoutInMins = value; } // Temporarily expose input value. Use with caution. get customActionTimeoutInMinsInput() { return this._customActionTimeoutInMins; } get daysOfWeek() { return this._daysOfWeek; } putDaysOfWeek(value) { this._daysOfWeek.internalValue = value; } resetDaysOfWeek() { this._daysOfWeek.internalValue = undefined; } // Temporarily expose input value. Use with caution. get daysOfWeekInput() { return this._daysOfWeek.internalValue; } get hoursOfDay() { return cdktf.Token.asNumberList(cdktf.Fn.tolist(this.getNumberListAttribute('hours_of_day'))); } set hoursOfDay(value) { this._hoursOfDay = value; } resetHoursOfDay() { this._hoursOfDay = undefined; } // Temporarily expose input value. Use with caution. get hoursOfDayInput() { return this._hoursOfDay; } get isCustomActionTimeoutEnabled() { return this.getBooleanAttribute('is_custom_action_timeout_enabled'); } set isCustomActionTimeoutEnabled(value) { this._isCustomActionTimeoutEnabled = value; } // Temporarily expose input value. Use with caution. get isCustomActionTimeoutEnabledInput() { return this._isCustomActionTimeoutEnabled; } get leadTimeInWeeks() { return this.getNumberAttribute('lead_time_in_weeks'); } set leadTimeInWeeks(value) { this._leadTimeInWeeks = value; } resetLeadTimeInWeeks() { this._leadTimeInWeeks = undefined; } // Temporarily expose input value. Use with caution. get leadTimeInWeeksInput() { return this._leadTimeInWeeks; } get months() { return this._months; } putMonths(value) { this._months.internalValue = value; } resetMonths() { this._months.internalValue = undefined; } // Temporarily expose input value. Use with caution. get monthsInput() { return this._months.internalValue; } get patchingMode() { return this.getStringAttribute('patching_mode'); } set patchingMode(value) { this._patchingMode = value; } // Temporarily expose input value. Use with caution. get patchingModeInput() { return this._patchingMode; } get preference() { return this.getStringAttribute('preference'); } set preference(value) { this._preference = value; } // Temporarily expose input value. Use with caution. get preferenceInput() { return this._preference; } get weeksOfMonth() { return cdktf.Token.asNumberList(cdktf.Fn.tolist(this.getNumberListAttribute('weeks_of_month'))); } set weeksOfMonth(value) { this._weeksOfMonth = value; } resetWeeksOfMonth() { this._weeksOfMonth = undefined; } // Temporarily expose input value. Use with caution. get weeksOfMonthInput() { return this._weeksOfMonth; } } exports.OdbCloudExadataInfrastructureMaintenanceWindowOutputReference = OdbCloudExadataInfrastructureMaintenanceWindowOutputReference; _g = JSII_RTTI_SYMBOL_1; OdbCloudExadataInfrastructureMaintenanceWindowOutputReference[_g] = { fqn: "@cdktf/provider-aws.odbCloudExadataInfrastructure.OdbCloudExadataInfrastructureMaintenanceWindowOutputReference", version: "21.22.1" }; class OdbCloudExadataInfrastructureMaintenanceWindowList 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 OdbCloudExadataInfrastructureMaintenanceWindowOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OdbCloudExadataInfrastructureMaintenanceWindowList = OdbCloudExadataInfrastructureMaintenanceWindowList; _h = JSII_RTTI_SYMBOL_1; OdbCloudExadataInfrastructureMaintenanceWindowList[_h] = { fqn: "@cdktf/provider-aws.odbCloudExadataInfrastructure.OdbCloudExadataInfrastructureMaintenanceWindowList", version: "21.22.1" }; function odbCloudExadataInfrastructureTimeoutsToTerraform(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), }; } function odbCloudExadataInfrastructureTimeoutsToHclTerraform(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)); } class OdbCloudExadataInfrastructureTimeoutsOutputReference 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.OdbCloudExadataInfrastructureTimeoutsOutputReference = OdbCloudExadataInfrastructureTimeoutsOutputReference; _j = JSII_RTTI_SYMBOL_1; OdbCloudExadataInfrastructureTimeoutsOutputReference[_j] = { fqn: "@cdktf/provider-aws.odbCloudExadataInfrastructure.OdbCloudExadataInfrastructureTimeoutsOutputReference", version: "21.22.1" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/odb_cloud_exadata_infrastructure aws_odb_cloud_exadata_infrastructure} */ class OdbCloudExadataInfrastructure extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a OdbCloudExadataInfrastructure 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 OdbCloudExadataInfrastructure to import * @param importFromId The id of the existing OdbCloudExadataInfrastructure that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/odb_cloud_exadata_infrastructure#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the OdbCloudExadataInfrastructure to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_odb_cloud_exadata_infrastructure", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/odb_cloud_exadata_infrastructure aws_odb_cloud_exadata_infrastructure} 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 OdbCloudExadataInfrastructureConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'aws_odb_cloud_exadata_infrastructure', terraformGeneratorMetadata: { providerName: 'aws', providerVersion: '6.25.0', providerVersionConstraint: '~> 6.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // customer_contacts_to_send_to_oci - computed: false, optional: true, required: false this._customerContactsToSendToOci = new OdbCloudExadataInfrastructureCustomerContactsToSendToOciList(this, "customer_contacts_to_send_to_oci", true); // tags_all - computed: true, optional: false, required: false this._tagsAll = new cdktf.StringMap(this, "tags_all"); // maintenance_window - computed: false, optional: true, required: false this._maintenanceWindow = new OdbCloudExadataInfrastructureMaintenanceWindowList(this, "maintenance_window", false); // timeouts - computed: false, optional: true, required: false this._timeouts = new OdbCloudExadataInfrastructureTimeoutsOutputReference(this, "timeouts"); this._availabilityZone = config.availabilityZone; this._availabilityZoneId = config.availabilityZoneId; this._computeCount = config.computeCount; this._customerContactsToSendToOci.internalValue = config.customerContactsToSendToOci; this._databaseServerType = config.databaseServerType; this._displayName = config.displayName; this._region = config.region; this._shape = config.shape; this._storageCount = config.storageCount; this._storageServerType = config.storageServerType; this._tags = config.tags; this._maintenanceWindow.internalValue = config.maintenanceWindow; this._timeouts.internalValue = config.timeouts; } // ========== // ATTRIBUTES // ========== // activated_storage_count - computed: true, optional: false, required: false get activatedStorageCount() { return this.getNumberAttribute('activated_storage_count'); } // additional_storage_count - computed: true, optional: false, required: false get additionalStorageCount() { return this.getNumberAttribute('additional_storage_count'); } // arn - computed: true, optional: false, required: false get arn() { return this.getStringAttribute('arn'); } get availabilityZone() { return this.getStringAttribute('availability_zone'); } set availabilityZone(value) { this._availabilityZone = value; } resetAvailabilityZone() { this._availabilityZone = undefined; } // Temporarily expose input value. Use with caution. get availabilityZoneInput() { return this._availabilityZone; } get availabilityZoneId() { return this.getStringAttribute('availability_zone_id'); } set availabilityZoneId(value) { this._availabilityZoneId = value; } // Temporarily expose input value. Use with caution. get availabilityZoneIdInput() { return this._availabilityZoneId; } // available_storage_size_in_gbs - computed: true, optional: false, required: false get availableStorageSizeInGbs() { return this.getNumberAttribute('available_storage_size_in_gbs'); } get computeCount() { return this.getNumberAttribute('compute_count'); } set computeCount(value) { this._computeCount = value; } resetComputeCount() { this._computeCount = undefined; } // Temporarily expose input value. Use with caution. get computeCountInput() { return this._computeCount; } // compute_model - computed: true, optional: false, required: false get computeModel() { return this.getStringAttribute('compute_model'); } // cpu_count - computed: true, optional: false, required: false get cpuCount() { return this.getNumberAttribute('cpu_count'); } // created_at - computed: true, optional: false, required: false get createdAt() { return this.getStringAttribute('created_at'); } get customerContactsToSendToOci() { return this._customerContactsToSendToOci; } putCustomerContactsToSendToOci(value) { this._customerContactsToSendToOci.internalValue = value; } resetCustomerContactsToSendToOci() { this._customerContactsToSendToOci.internalValue = undefined; } // Temporarily expose input value. Use with caution. get customerContactsToSendToOciInput() { return this._customerContactsToSendToOci.internalValue; } // data_storage_size_in_tbs - computed: true, optional: false, required: false get dataStorageSizeInTbs() { return this.getNumberAttribute('data_storage_size_in_tbs'); } get databaseServerType() { return this.getStringAttribute('database_server_type'); } set databaseServerType(value) { this._databaseServerType = value; } resetDatabaseServerType() { this._databaseServerType = undefined; } // Temporarily expose input value. Use with caution. get databaseServerTypeInput() { return this._databaseServerType; } // db_node_storage_size_in_gbs - computed: true, optional: false, required: false get dbNodeStorageSizeInGbs() { return this.getNumberAttribute('db_node_storage_size_in_gbs'); } // db_server_version - computed: true, optional: false, required: false get dbServerVersion() { return this.getStringAttribute('db_server_version'); } get displayName() { return this.getStringAttribute('display_name'); } set displayName(value) { this._displayName = value; } // Temporarily expose input value. Use with caution. get displayNameInput() { return this._displayName; } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } // last_maintenance_run_id - computed: true, optional: false, required: false get lastMaintenanceRunId() { return this.getStringAttribute('last_maintenance_run_id'); } // max_cpu_count - computed: true, optional: false, required: false get maxCpuCount() { return this.getNumberAttribute('max_cpu_count'); } // max_data_storage_in_tbs - computed: true, optional: false, required: false get maxDataStorageInTbs() { return this.getNumberAttribute('max_data_storage_in_tbs'); } // max_db_node_storage_size_in_gbs - computed: true, optional: false, required: false get maxDbNodeStorageSizeInGbs() { return this.getNumberAttribute('max_db_node_storage_size_in_gbs'); } // max_memory_in_gbs - computed: true, optional: false, required: false get maxMemoryInGbs() { return this.getNumberAttribute('max_memory_in_gbs'); } // memory_size_in_gbs - computed: true, optional: false, required: false get memorySizeInGbs() { return this.getNumberAttribute('memory_size_in_gbs'); } // monthly_db_server_version - computed: true, optional: false, required: false get monthlyDbServerVersion() { return this.getStringAttribute('monthly_db_server_version'); } // monthly_storage_server_version - computed: true, optional: false, required: false get monthlyStorageServerVersion() { return this.getStringAttribute('monthly_storage_server_version'); } // next_maintenance_run_id - computed: true, optional: false, required: false get nextMaintenanceRunId() { return this.getStringAttribute('next_maintenance_run_id'); } // oci_resource_anchor_name - computed: true, optional: false, required: false get ociResourceAnchorName() { return this.getStringAttribute('oci_resource_anchor_name'); } // oci_url - computed: true, optional: false, required: false get ociUrl() { return this.getStringAttribute('oci_url'); } // ocid - computed: true, optional: false, required: false get ocid() { return this.getStringAttribute('ocid'); } // percent_progress - computed: true, optional: false, required: false get percentProgress() { return this.getNumberAttribute('percent_progress'); } get region() { return this.getStringAttribute('region'); } set region(value) { this._region = value; } resetRegion() { this._region = undefined; } // Temporarily expose input value. Use with caution. get regionInput() { return this._region; } get shape() { return this.getStringAttribute('shape'); } set shape(value) { this._shape = value; } // Temporarily expose input value. Use with caution. get shapeInput() { return this._shape; } // status - computed: true, optional: false, required: false get status() { return this.getStringAttribute('status'); } // status_reason - computed: true, optional: false, required: false get statusReason() { return this.getStringAttribute('status_reason'); } get storageCount() { return this.getNumberAttribute('storage_count'); } set storageCount(value) { this._storageCount = value; } resetStorageCount() { this._storageCount = undefined; } // Temporarily expose input value. Use with caution. get storageCountInput() { return this._storageCount; } get storageServerType() { return this.getStringAttribute('storage_server_type'); } set storageServerType(value) { this._storageServerType = value; } resetStorageServerType() { this._storageServerType = undefined; } // Temporarily expose input value. Use with caution. get storageServerTypeInput() { return this._storageServerType; } // storage_server_version - computed: true, optional: false, required: false get storageServerVersion() { return this.getStringAttribute('storage_server_version'); } get tags() { return this.getStringMapAttribute('tags'); } set tags(value) { this._tags = value; } resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. get tagsInput() { return this._tags; } get tagsAll() { return this._tagsAll; } // total_storage_size_in_gbs - computed: true, optional: false, required: false get totalStorageSizeInGbs() { return this.getNumberAttribute('total_storage_size_in_gbs'); } get maintenanceWindow() { return this._maintenanceWindow; } putMaintenanceWindow(value) { this._maintenanceWindow.internalValue = value; } resetMaintenanceWindow() { this._maintenanceWindow.internalValue = undefined; } // Temporarily expose input value. Use with caution. get maintenanceWindowInput() { return this._maintenanceWindow.internalValue; } get timeouts() { return this._timeouts; } putTimeouts(value) { this._timeouts.internalValue = value; } resetTimeouts() { this._timeouts.internalValue = undefined; } // Temporarily expose input value. Use with caution. get timeoutsInput() { return this._timeouts.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { availability_zone: cdktf.stringToTerraform(this._availabilityZone), availability_zone_id: cdktf.stringToTerraform(this._availabilityZoneId), compute_count: cdktf.numberToTerraform(this._computeCount), customer_contacts_to_send_to_oci: cdktf.listMapper(odbCloudExadataInfrastructureCustomerContactsToSendToOciToTerraform, false)(this._customerContactsToSendToOci.internalValue), database_server_type: cdktf.stringToTerraform(this._databaseServerType), display_name: cdktf.stringToTerraform(this._displayName), region: cdktf.stringToTerraform(this._region), shape: cdktf.stringToTerraform(this._shape), storage_count: cdktf.numberToTerraform(this._storageCount), storage_server_type: cdktf.stringToTerraform(this._storageServerType), tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags), maintenance_window: cdktf.listMapper(odbCloudExadataInfrastructureMaintenanceWindowToTerraform, true)(this._maintenanceWindow.internalValue), timeouts: odbCloudExadataInfrastructureTimeoutsToTerraform(this._timeouts.internalValue), }; } synthesizeHclAttributes() { const attrs = { availability_zone: { value: cdktf.stringToHclTerraform(this._availabilityZone), isBlock: false, type: "simple", storageClassType: "string", }, availability_zone_id: { value: cdktf.stringToHclTerraform(this._availabilityZoneId), isBlock: false, type: "simple", storageClassType: "string", }, compute_count: { value: cdktf.numberT