@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,163 lines • 171 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OdbCloudAutonomousVmCluster = exports.OdbCloudAutonomousVmClusterTimeoutsOutputReference = exports.OdbCloudAutonomousVmClusterMaintenanceWindowList = exports.OdbCloudAutonomousVmClusterMaintenanceWindowOutputReference = exports.OdbCloudAutonomousVmClusterMaintenanceWindowMonthsList = exports.OdbCloudAutonomousVmClusterMaintenanceWindowMonthsOutputReference = exports.OdbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekList = exports.OdbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference = void 0;
exports.odbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekToTerraform = odbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekToTerraform;
exports.odbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekToHclTerraform = odbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekToHclTerraform;
exports.odbCloudAutonomousVmClusterMaintenanceWindowMonthsToTerraform = odbCloudAutonomousVmClusterMaintenanceWindowMonthsToTerraform;
exports.odbCloudAutonomousVmClusterMaintenanceWindowMonthsToHclTerraform = odbCloudAutonomousVmClusterMaintenanceWindowMonthsToHclTerraform;
exports.odbCloudAutonomousVmClusterMaintenanceWindowToTerraform = odbCloudAutonomousVmClusterMaintenanceWindowToTerraform;
exports.odbCloudAutonomousVmClusterMaintenanceWindowToHclTerraform = odbCloudAutonomousVmClusterMaintenanceWindowToHclTerraform;
exports.odbCloudAutonomousVmClusterTimeoutsToTerraform = odbCloudAutonomousVmClusterTimeoutsToTerraform;
exports.odbCloudAutonomousVmClusterTimeoutsToHclTerraform = odbCloudAutonomousVmClusterTimeoutsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function odbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekToTerraform(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 odbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekToHclTerraform(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 OdbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference 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.OdbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference = OdbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference;
_a = JSII_RTTI_SYMBOL_1;
OdbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference[_a] = { fqn: "@cdktf/provider-aws.odbCloudAutonomousVmCluster.OdbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference", version: "21.22.1" };
class OdbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekList 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 OdbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OdbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekList = OdbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekList;
_b = JSII_RTTI_SYMBOL_1;
OdbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekList[_b] = { fqn: "@cdktf/provider-aws.odbCloudAutonomousVmCluster.OdbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekList", version: "21.22.1" };
function odbCloudAutonomousVmClusterMaintenanceWindowMonthsToTerraform(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 odbCloudAutonomousVmClusterMaintenanceWindowMonthsToHclTerraform(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 OdbCloudAutonomousVmClusterMaintenanceWindowMonthsOutputReference 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.OdbCloudAutonomousVmClusterMaintenanceWindowMonthsOutputReference = OdbCloudAutonomousVmClusterMaintenanceWindowMonthsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
OdbCloudAutonomousVmClusterMaintenanceWindowMonthsOutputReference[_c] = { fqn: "@cdktf/provider-aws.odbCloudAutonomousVmCluster.OdbCloudAutonomousVmClusterMaintenanceWindowMonthsOutputReference", version: "21.22.1" };
class OdbCloudAutonomousVmClusterMaintenanceWindowMonthsList 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 OdbCloudAutonomousVmClusterMaintenanceWindowMonthsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OdbCloudAutonomousVmClusterMaintenanceWindowMonthsList = OdbCloudAutonomousVmClusterMaintenanceWindowMonthsList;
_d = JSII_RTTI_SYMBOL_1;
OdbCloudAutonomousVmClusterMaintenanceWindowMonthsList[_d] = { fqn: "@cdktf/provider-aws.odbCloudAutonomousVmCluster.OdbCloudAutonomousVmClusterMaintenanceWindowMonthsList", version: "21.22.1" };
function odbCloudAutonomousVmClusterMaintenanceWindowToTerraform(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 {
days_of_week: cdktf.listMapper(odbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekToTerraform, false)(struct.daysOfWeek),
hours_of_day: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.hoursOfDay),
lead_time_in_weeks: cdktf.numberToTerraform(struct.leadTimeInWeeks),
months: cdktf.listMapper(odbCloudAutonomousVmClusterMaintenanceWindowMonthsToTerraform, false)(struct.months),
preference: cdktf.stringToTerraform(struct.preference),
weeks_of_month: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.weeksOfMonth),
};
}
function odbCloudAutonomousVmClusterMaintenanceWindowToHclTerraform(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 = {
days_of_week: {
value: cdktf.listMapperHcl(odbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekToHclTerraform, false)(struct.daysOfWeek),
isBlock: true,
type: "set",
storageClassType: "OdbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekList",
},
hours_of_day: {
value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(struct.hoursOfDay),
isBlock: false,
type: "set",
storageClassType: "numberList",
},
lead_time_in_weeks: {
value: cdktf.numberToHclTerraform(struct.leadTimeInWeeks),
isBlock: false,
type: "simple",
storageClassType: "number",
},
months: {
value: cdktf.listMapperHcl(odbCloudAutonomousVmClusterMaintenanceWindowMonthsToHclTerraform, false)(struct.months),
isBlock: true,
type: "set",
storageClassType: "OdbCloudAutonomousVmClusterMaintenanceWindowMonthsList",
},
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 OdbCloudAutonomousVmClusterMaintenanceWindowOutputReference 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: false, optional: true, required: false
this._daysOfWeek = new OdbCloudAutonomousVmClusterMaintenanceWindowDaysOfWeekList(this, "days_of_week", true);
// months - computed: false, optional: true, required: false
this._months = new OdbCloudAutonomousVmClusterMaintenanceWindowMonthsList(this, "months", true);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._daysOfWeek?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.daysOfWeek = this._daysOfWeek?.internalValue;
}
if (this._hoursOfDay !== undefined) {
hasAnyValues = true;
internalValueResult.hoursOfDay = this._hoursOfDay;
}
if (this._leadTimeInWeeks !== undefined) {
hasAnyValues = true;
internalValueResult.leadTimeInWeeks = this._leadTimeInWeeks;
}
if (this._months?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.months = this._months?.internalValue;
}
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._daysOfWeek.internalValue = undefined;
this._hoursOfDay = undefined;
this._leadTimeInWeeks = undefined;
this._months.internalValue = 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._daysOfWeek.internalValue = value.daysOfWeek;
this._hoursOfDay = value.hoursOfDay;
this._leadTimeInWeeks = value.leadTimeInWeeks;
this._months.internalValue = value.months;
this._preference = value.preference;
this._weeksOfMonth = value.weeksOfMonth;
}
}
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 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 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.OdbCloudAutonomousVmClusterMaintenanceWindowOutputReference = OdbCloudAutonomousVmClusterMaintenanceWindowOutputReference;
_e = JSII_RTTI_SYMBOL_1;
OdbCloudAutonomousVmClusterMaintenanceWindowOutputReference[_e] = { fqn: "@cdktf/provider-aws.odbCloudAutonomousVmCluster.OdbCloudAutonomousVmClusterMaintenanceWindowOutputReference", version: "21.22.1" };
class OdbCloudAutonomousVmClusterMaintenanceWindowList 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 OdbCloudAutonomousVmClusterMaintenanceWindowOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OdbCloudAutonomousVmClusterMaintenanceWindowList = OdbCloudAutonomousVmClusterMaintenanceWindowList;
_f = JSII_RTTI_SYMBOL_1;
OdbCloudAutonomousVmClusterMaintenanceWindowList[_f] = { fqn: "@cdktf/provider-aws.odbCloudAutonomousVmCluster.OdbCloudAutonomousVmClusterMaintenanceWindowList", version: "21.22.1" };
function odbCloudAutonomousVmClusterTimeoutsToTerraform(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 odbCloudAutonomousVmClusterTimeoutsToHclTerraform(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 OdbCloudAutonomousVmClusterTimeoutsOutputReference 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.OdbCloudAutonomousVmClusterTimeoutsOutputReference = OdbCloudAutonomousVmClusterTimeoutsOutputReference;
_g = JSII_RTTI_SYMBOL_1;
OdbCloudAutonomousVmClusterTimeoutsOutputReference[_g] = { fqn: "@cdktf/provider-aws.odbCloudAutonomousVmCluster.OdbCloudAutonomousVmClusterTimeoutsOutputReference", version: "21.22.1" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/odb_cloud_autonomous_vm_cluster aws_odb_cloud_autonomous_vm_cluster}
*/
class OdbCloudAutonomousVmCluster extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a OdbCloudAutonomousVmCluster 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 OdbCloudAutonomousVmCluster to import
* @param importFromId The id of the existing OdbCloudAutonomousVmCluster that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/odb_cloud_autonomous_vm_cluster#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the OdbCloudAutonomousVmCluster to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_odb_cloud_autonomous_vm_cluster", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/odb_cloud_autonomous_vm_cluster aws_odb_cloud_autonomous_vm_cluster} 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 OdbCloudAutonomousVmClusterConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'aws_odb_cloud_autonomous_vm_cluster',
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
});
// 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 OdbCloudAutonomousVmClusterMaintenanceWindowList(this, "maintenance_window", false);
// timeouts - computed: false, optional: true, required: false
this._timeouts = new OdbCloudAutonomousVmClusterTimeoutsOutputReference(this, "timeouts");
this._autonomousDataStorageSizeInTbs = config.autonomousDataStorageSizeInTbs;
this._cloudExadataInfrastructureId = config.cloudExadataInfrastructureId;
this._cpuCoreCountPerNode = config.cpuCoreCountPerNode;
this._dbServers = config.dbServers;
this._description = config.description;
this._displayName = config.displayName;
this._isMtlsEnabledVmCluster = config.isMtlsEnabledVmCluster;
this._licenseModel = config.licenseModel;
this._memoryPerOracleComputeUnitInGbs = config.memoryPerOracleComputeUnitInGbs;
this._odbNetworkId = config.odbNetworkId;
this._region = config.region;
this._scanListenerPortNonTls = config.scanListenerPortNonTls;
this._scanListenerPortTls = config.scanListenerPortTls;
this._tags = config.tags;
this._timeZone = config.timeZone;
this._totalContainerDatabases = config.totalContainerDatabases;
this._maintenanceWindow.internalValue = config.maintenanceWindow;
this._timeouts.internalValue = config.timeouts;
}
// ==========
// ATTRIBUTES
// ==========
// arn - computed: true, optional: false, required: false
get arn() {
return this.getStringAttribute('arn');
}
// autonomous_data_storage_percentage - computed: true, optional: false, required: false
get autonomousDataStoragePercentage() {
return this.getNumberAttribute('autonomous_data_storage_percentage');
}
get autonomousDataStorageSizeInTbs() {
return this.getNumberAttribute('autonomous_data_storage_size_in_tbs');
}
set autonomousDataStorageSizeInTbs(value) {
this._autonomousDataStorageSizeInTbs = value;
}
// Temporarily expose input value. Use with caution.
get autonomousDataStorageSizeInTbsInput() {
return this._autonomousDataStorageSizeInTbs;
}
// available_autonomous_data_storage_size_in_tbs - computed: true, optional: false, required: false
get availableAutonomousDataStorageSizeInTbs() {
return this.getNumberAttribute('available_autonomous_data_storage_size_in_tbs');
}
// available_container_databases - computed: true, optional: false, required: false
get availableContainerDatabases() {
return this.getNumberAttribute('available_container_databases');
}
// available_cpus - computed: true, optional: false, required: false
get availableCpus() {
return this.getNumberAttribute('available_cpus');
}
get cloudExadataInfrastructureId() {
return this.getStringAttribute('cloud_exadata_infrastructure_id');
}
set cloudExadataInfrastructureId(value) {
this._cloudExadataInfrastructureId = value;
}
// Temporarily expose input value. Use with caution.
get cloudExadataInfrastructureIdInput() {
return this._cloudExadataInfrastructureId;
}
// compute_model - computed: true, optional: false, required: false
get computeModel() {
return this.getStringAttribute('compute_model');
}
// cpu_core_count - computed: true, optional: false, required: false
get cpuCoreCount() {
return this.getNumberAttribute('cpu_core_count');
}
get cpuCoreCountPerNode() {
return this.getNumberAttribute('cpu_core_count_per_node');
}
set cpuCoreCountPerNode(value) {
this._cpuCoreCountPerNode = value;
}
// Temporarily expose input value. Use with caution.
get cpuCoreCountPerNodeInput() {
return this._cpuCoreCountPerNode;
}
// cpu_percentage - computed: true, optional: false, required: false
get cpuPercentage() {
return this.getNumberAttribute('cpu_percentage');
}
// created_at - computed: true, optional: false, required: false
get createdAt() {
return this.getStringAttribute('created_at');
}
// data_storage_size_in_gbs - computed: true, optional: false, required: false
get dataStorageSizeInGbs() {
return this.getNumberAttribute('data_storage_size_in_gbs');
}
// data_storage_size_in_tbs - computed: true, optional: false, required: false
get dataStorageSizeInTbs() {
return this.getNumberAttribute('data_storage_size_in_tbs');
}
get dbServers() {
return cdktf.Fn.tolist(this.getListAttribute('db_servers'));
}
set dbServers(value) {
this._dbServers = value;
}
// Temporarily expose input value. Use with caution.
get dbServersInput() {
return this._dbServers;
}
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;
}
// Temporarily expose input value. Use with caution.
get displayNameInput() {
return this._displayName;
}
// domain - computed: true, optional: false, required: false
get domain() {
return this.getStringAttribute('domain');
}
// exadata_storage_in_tbs_lowest_scaled_value - computed: true, optional: false, required: false
get exadataStorageInTbsLowestScaledValue() {
return this.getNumberAttribute('exadata_storage_in_tbs_lowest_scaled_value');
}
// hostname - computed: true, optional: false, required: false
get hostname() {
return this.getStringAttribute('hostname');
}
// id - computed: true, optional: false, required: false
get id() {
return this.getStringAttribute('id');
}
get isMtlsEnabledVmCluster() {
return this.getBooleanAttribute('is_mtls_enabled_vm_cluster');
}
set isMtlsEnabledVmCluster(value) {
this._isMtlsEnabledVmCluster = value;
}
resetIsMtlsEnabledVmCluster() {
this._isMtlsEnabledVmCluster = undefined;
}
// Temporarily expose input value. Use with caution.
get isMtlsEnabledVmClusterInput() {
return this._isMtlsEnabledVmCluster;
}
get licenseModel() {
return this.getStringAttribute('license_model');
}
set licenseModel(value) {
this._licenseModel = value;
}
resetLicenseModel() {
this._licenseModel = undefined;
}
// Temporarily expose input value. Use with caution.
get licenseModelInput() {
return this._licenseModel;
}
// max_acds_lowest_scaled_value - computed: true, optional: false, required: false
get maxAcdsLowestScaledValue() {
return this.getNumberAttribute('max_acds_lowest_scaled_value');
}
get memoryPerOracleComputeUnitInGbs() {
return this.getNumberAttribute('memory_per_oracle_compute_unit_in_gbs');
}
set memoryPerOracleComputeUnitInGbs(value) {
this._memoryPerOracleComputeUnitInGbs = value;
}
// Temporarily expose input value. Use with caution.
get memoryPerOracleComputeUnitInGbsInput() {
return this._memoryPerOracleComputeUnitInGbs;
}
// memory_size_in_gbs - computed: true, optional: false, required: false
get memorySizeInGbs() {
return this.getNumberAttribute('memory_size_in_gbs');
}
// node_count - computed: true, optional: false, required: false
get nodeCount() {
return this.getNumberAttribute('node_count');
}
// non_provisionable_autonomous_container_databases - computed: true, optional: false, required: false
get nonProvisionableAutonomousContainerDatabases() {
return this.getNumberAttribute('non_provisionable_autonomous_container_databases');
}
// 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');
}
get odbNetworkId() {
return this.getStringAttribute('odb_network_id');
}
set odbNetworkId(value) {
this._odbNetworkId = value;
}
// Temporarily expose input value. Use with caution.
get odbNetworkIdInput() {
return this._odbNetworkId;
}
// odb_node_storage_size_in_gbs - computed: true, optional: false, required: false
get odbNodeStorageSizeInGbs() {
return this.getNumberAttribute('odb_node_storage_size_in_gbs');
}
// percent_progress - computed: true, optional: false, required: false
get percentProgress() {
return this.getNumberAttribute('percent_progress');
}
// provisionable_autonomous_container_databases - computed: true, optional: false, required: false
get provisionableAutonomousContainerDatabases() {
return this.getNumberAttribute('provisionable_autonomous_container_databases');
}
// provisioned_autonomous_container_databases - computed: true, optional: false, required: false
get provisionedAutonomousContainerDatabases() {
return this.getNumberAttribute('provisioned_autonomous_container_databases');
}
// provisioned_cpus - computed: true, optional: false, required: false
get provisionedCpus() {
return this.getNumberAttribute('provisioned_cpus');
}
// reclaimable_cpus - computed: true, optional: false, required: false
get reclaimableCpus() {
return this.getNumberAttribute('reclaimable_cpus');
}
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;
}
// reserved_cpus - computed: true, optional: false, required: false
get reservedCpus() {
return this.getNumberAttribute('reserved_cpus');
}
get scanListenerPortNonTls() {
return this.getNumberAttribute('scan_listener_port_non_tls');
}
set scanListenerPortNonTls(value) {
this._scanListenerPortNonTls = value;
}
// Temporarily expose input value. Use with caution.
get scanListenerPortNonTlsInput() {
return this._scanListenerPortNonTls;
}
get scanListenerPortTls() {
return this.getNumberAttribute('scan_listener_port_tls');
}
set scanListenerPortTls(value) {
this._scanListenerPortTls = value;
}
// Temporarily expose input value. Use with caution.
get scanListenerPortTlsInput() {
return this._scanListenerPortTls;
}
// shape - computed: true, optional: false, required: false
get shape() {
return this.getStringAttribute('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 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;
}
// time_database_ssl_certificate_expires - computed: true, optional: false, required: false
get timeDatabaseSslCertificateExpires() {
return this.getStringAttribute('time_database_ssl_certificate_expires');
}
// time_ords_certificate_expires - computed: true, optional: false, required: false
get timeOrdsCertificateExpires() {
return this.getStringAttribute('time_ords_certificate_expires');
}
get timeZone() {
return this.getStringAttribute('time_zone');
}
set timeZone(value) {
this._timeZone = value;
}
resetTimeZone() {
this._timeZone = undefined;
}
// Temporarily expose input value. Use with caution.
get timeZoneInput() {
return this._timeZone;
}
get totalContainerDatabases() {
return this.getNumberAttribute('total_container_databases');
}
set totalContainerDatabases(value) {
this._totalContainerDatabases = value;
}
// Temporarily expose input value. Use with caution.
get totalContainerDatabasesInput() {
return this._totalContainerDatabases;
}
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 {
autonomous_data_storage_size_in_tbs: cdktf.numberToTerraform(this._autonomousDataStorageSizeInTbs),
cloud_exadata_infrastructure_id: cdktf.stringToTerraform(this._cloudExadataInfrastructureId),
cpu_core_count_per_node: cdktf.numberToTerraform(this._cpuCoreCountPerNode),
db_servers: cdktf.listMapper(cdktf.stringToTerraform, false)(this._dbServers),
description: cdktf.stringToTerraform(this._description),
display_name: cdktf.stringToTerraform(this._displayName),
is_mtls_enabled_vm_cluster: cdktf.booleanToTerraform(this._isMtlsEnabledVmCluster),
license_model: cdktf.stringToTerraform(this._licenseModel),
memory_per_oracle_compute_unit_in_gbs: cdktf.numberToTerraform(this._memoryPerOracleComputeUnitInGbs),
odb_network_id: cdktf.stringToTerraform(this._odbNetworkId),
region: cdktf.stringToTerraform(this._region),
scan_listener_port_non_tls: cdktf.numberToTerraform(this._scanListenerPortNonTls),
scan_listener_port_tls: cdktf.numberToTerraform(this._scanListenerPortTls),
tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
time_zone: cdktf.stringToTerraform(this._timeZone),
total_container_databases: cdktf.numberToTerraform(this._totalContainerDatabases),
maintenance_window: cdktf.listMapper(odbCloudAutonomousVmClusterMaintenanceWindowToTerraform, true)(this._maintenanceWindow.internalValue),
timeouts: odbCloudAutonomousVmClusterTimeoutsToTerraform(this._timeouts.internalValue),
};
}
synthesizeHclAttributes() {
const attrs = {
autonomous_data_storage_size_in_tbs: {
value: cdktf.numberToHclTerraform(this._autonomousDataStorageSizeInTbs),
isBlock: false,
type: "simple",
storageClassType: "number",
},
cloud_exadata_infrastructure_id: {
value: cdktf.stringToHclTerraform(this._cloudExadataInfrastructureId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cpu_core_count_per_node: {
value: cdktf.numberToHclTerraform(this._cpuCoreCountPerNode),
isBlock: false,
type: "simple",
storageClassType: "number",
},
db_servers: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._dbServers),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
description: {
value: cdktf.stringToHclTerraform(this._description),
isBlock: false,
type: "simple",
storageClassType: "string",
},
display_name: {
value: cdktf.stringToHclTerraform(this._displayName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
is_mtls_enabled_vm_cluster: {
value: cdktf.booleanToHclTerraform(this._isMtlsEnabledVmCluster),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
license_model: {
value: cdktf.stringToHclTerraform(this._licenseModel),
isBlock: false,
type: "simple",
storageClassType: "string",
},
memory_per_oracle_compute_unit_in_gbs: {
value: cdktf.numberToHclTerraform(this._memoryPerOracleComputeUnitInGbs),
isBlock: false,
type: "simple",
storageClassType: "number",
},
odb_network_id: {
value: cdktf.stringToHclTerraform(this._odbNetworkId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
region: {
value: cdktf.stringToHclTerraform(this._region),
isBlock: false,
type: "simple",
storageClassType: "string",
},
scan_listener_port_non_tls: {
value: cdktf.numberToHclTerraform(this._scanListenerPortNonTls),
isBlock: false,
type: "simple",
storageClassType: "number",
},
scan_listener_port_tls: {
value: cdktf.numberToHclTerraform(this._scanListenerPortTls),
isBlock: false,
type: "simple",
storageClassType: "number",
},
tags: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tags),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
time_zone: {
value: cdktf.stringToHclTerraform(this._timeZone),
isBlock: false,
type: "simple",
storageClassType: "string",
},
total_container_databases: {
value: cdktf.numberToHclTerraform(this._totalContainerDatabases),
isBlock: false,
type: "simple",
storageClassType: "number",
},
maintenance_window: {
value: cdktf.listMapperHcl(odbCloudAutonomousVmClusterMaintenanceWindowToHclTerraform, true)(this._maintenanceWindow.internalValue),
isBlock: true,
type: "list",
storageClassType: "OdbCloudAutonomousVmClusterMaintenanceWindowList",
},
timeouts: {
value: odbCloudAutonomousVmClusterTimeoutsToHclTerraform(this._timeouts.internalValue),
isBlock: true,
type: "struct",
storageClassType: "OdbCloudAutonomousVmClusterTimeouts",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
}
exports.OdbCloudAutonomousVmCluster = OdbCloudAutonomousVmCluster;
_h = JSII_RTTI_SYMBOL_1;
OdbCloudAutonomousVmCluster[_h] = { fqn: "@cdktf/provider-aws.odbCloudAutonomousVmCluster.OdbCloudAutonomousVmCluster", version: "21.22.1" };
// =================
// STATIC PROPERTIES
// =================
OdbCloudAutonomousVmCluster.tfResourceType = "aws_odb_cloud_autonomous_vm_cluster";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvb2RiLWNsb3VkLWF1dG9ub21vdXMtdm0tY2x1c3Rlci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBZ0lBLDhJQVFDO0FBR0Qsb0pBZ0JDO0FBeUZELHNJQVFDO0FBR0QsNElBZ0JDO0FBeUhELDBIQWFDO0FBR0QsZ0lBOENDO0FBa05ELHdHQVVDO0FBR0QsOEdBNEJDOztBQXhyQkQsK0JBQStCO0FBdUgvQixTQUFnQixpRUFBaUUsQ0FBQyxNQUFtRjtJQUNuSyxJQUFJLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxLQUFLLENBQUMsWUFBWSxDQUFDLFlBQVksQ0FBQyxNQ