@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,007 lines (1,006 loc) • 462 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AlloydbCluster = exports.AlloydbClusterTimeoutsOutputReference = exports.AlloydbClusterSecondaryConfigOutputReference = exports.AlloydbClusterRestoreContinuousBackupSourceOutputReference = exports.AlloydbClusterRestoreBackupSourceOutputReference = exports.AlloydbClusterPscConfigOutputReference = exports.AlloydbClusterNetworkConfigOutputReference = exports.AlloydbClusterMaintenanceUpdatePolicyOutputReference = exports.AlloydbClusterMaintenanceUpdatePolicyMaintenanceWindowsList = exports.AlloydbClusterMaintenanceUpdatePolicyMaintenanceWindowsOutputReference = exports.AlloydbClusterMaintenanceUpdatePolicyMaintenanceWindowsStartTimeOutputReference = exports.AlloydbClusterInitialUserOutputReference = exports.AlloydbClusterEncryptionConfigOutputReference = exports.AlloydbClusterContinuousBackupConfigOutputReference = exports.AlloydbClusterContinuousBackupConfigEncryptionConfigOutputReference = exports.AlloydbClusterAutomatedBackupPolicyOutputReference = exports.AlloydbClusterAutomatedBackupPolicyWeeklyScheduleOutputReference = exports.AlloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesList = exports.AlloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesOutputReference = exports.AlloydbClusterAutomatedBackupPolicyTimeBasedRetentionOutputReference = exports.AlloydbClusterAutomatedBackupPolicyQuantityBasedRetentionOutputReference = exports.AlloydbClusterAutomatedBackupPolicyEncryptionConfigOutputReference = exports.AlloydbClusterTrialMetadataList = exports.AlloydbClusterTrialMetadataOutputReference = exports.AlloydbClusterMigrationSourceList = exports.AlloydbClusterMigrationSourceOutputReference = exports.AlloydbClusterEncryptionInfoList = exports.AlloydbClusterEncryptionInfoOutputReference = exports.AlloydbClusterContinuousBackupInfoList = exports.AlloydbClusterContinuousBackupInfoOutputReference = exports.AlloydbClusterContinuousBackupInfoEncryptionInfoList = exports.AlloydbClusterContinuousBackupInfoEncryptionInfoOutputReference = exports.AlloydbClusterBackupSourceList = exports.AlloydbClusterBackupSourceOutputReference = void 0;
exports.alloydbClusterBackupSourceToTerraform = alloydbClusterBackupSourceToTerraform;
exports.alloydbClusterBackupSourceToHclTerraform = alloydbClusterBackupSourceToHclTerraform;
exports.alloydbClusterContinuousBackupInfoEncryptionInfoToTerraform = alloydbClusterContinuousBackupInfoEncryptionInfoToTerraform;
exports.alloydbClusterContinuousBackupInfoEncryptionInfoToHclTerraform = alloydbClusterContinuousBackupInfoEncryptionInfoToHclTerraform;
exports.alloydbClusterContinuousBackupInfoToTerraform = alloydbClusterContinuousBackupInfoToTerraform;
exports.alloydbClusterContinuousBackupInfoToHclTerraform = alloydbClusterContinuousBackupInfoToHclTerraform;
exports.alloydbClusterEncryptionInfoToTerraform = alloydbClusterEncryptionInfoToTerraform;
exports.alloydbClusterEncryptionInfoToHclTerraform = alloydbClusterEncryptionInfoToHclTerraform;
exports.alloydbClusterMigrationSourceToTerraform = alloydbClusterMigrationSourceToTerraform;
exports.alloydbClusterMigrationSourceToHclTerraform = alloydbClusterMigrationSourceToHclTerraform;
exports.alloydbClusterTrialMetadataToTerraform = alloydbClusterTrialMetadataToTerraform;
exports.alloydbClusterTrialMetadataToHclTerraform = alloydbClusterTrialMetadataToHclTerraform;
exports.alloydbClusterAutomatedBackupPolicyEncryptionConfigToTerraform = alloydbClusterAutomatedBackupPolicyEncryptionConfigToTerraform;
exports.alloydbClusterAutomatedBackupPolicyEncryptionConfigToHclTerraform = alloydbClusterAutomatedBackupPolicyEncryptionConfigToHclTerraform;
exports.alloydbClusterAutomatedBackupPolicyQuantityBasedRetentionToTerraform = alloydbClusterAutomatedBackupPolicyQuantityBasedRetentionToTerraform;
exports.alloydbClusterAutomatedBackupPolicyQuantityBasedRetentionToHclTerraform = alloydbClusterAutomatedBackupPolicyQuantityBasedRetentionToHclTerraform;
exports.alloydbClusterAutomatedBackupPolicyTimeBasedRetentionToTerraform = alloydbClusterAutomatedBackupPolicyTimeBasedRetentionToTerraform;
exports.alloydbClusterAutomatedBackupPolicyTimeBasedRetentionToHclTerraform = alloydbClusterAutomatedBackupPolicyTimeBasedRetentionToHclTerraform;
exports.alloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesToTerraform = alloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesToTerraform;
exports.alloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesToHclTerraform = alloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesToHclTerraform;
exports.alloydbClusterAutomatedBackupPolicyWeeklyScheduleToTerraform = alloydbClusterAutomatedBackupPolicyWeeklyScheduleToTerraform;
exports.alloydbClusterAutomatedBackupPolicyWeeklyScheduleToHclTerraform = alloydbClusterAutomatedBackupPolicyWeeklyScheduleToHclTerraform;
exports.alloydbClusterAutomatedBackupPolicyToTerraform = alloydbClusterAutomatedBackupPolicyToTerraform;
exports.alloydbClusterAutomatedBackupPolicyToHclTerraform = alloydbClusterAutomatedBackupPolicyToHclTerraform;
exports.alloydbClusterContinuousBackupConfigEncryptionConfigToTerraform = alloydbClusterContinuousBackupConfigEncryptionConfigToTerraform;
exports.alloydbClusterContinuousBackupConfigEncryptionConfigToHclTerraform = alloydbClusterContinuousBackupConfigEncryptionConfigToHclTerraform;
exports.alloydbClusterContinuousBackupConfigToTerraform = alloydbClusterContinuousBackupConfigToTerraform;
exports.alloydbClusterContinuousBackupConfigToHclTerraform = alloydbClusterContinuousBackupConfigToHclTerraform;
exports.alloydbClusterEncryptionConfigToTerraform = alloydbClusterEncryptionConfigToTerraform;
exports.alloydbClusterEncryptionConfigToHclTerraform = alloydbClusterEncryptionConfigToHclTerraform;
exports.alloydbClusterInitialUserToTerraform = alloydbClusterInitialUserToTerraform;
exports.alloydbClusterInitialUserToHclTerraform = alloydbClusterInitialUserToHclTerraform;
exports.alloydbClusterMaintenanceUpdatePolicyMaintenanceWindowsStartTimeToTerraform = alloydbClusterMaintenanceUpdatePolicyMaintenanceWindowsStartTimeToTerraform;
exports.alloydbClusterMaintenanceUpdatePolicyMaintenanceWindowsStartTimeToHclTerraform = alloydbClusterMaintenanceUpdatePolicyMaintenanceWindowsStartTimeToHclTerraform;
exports.alloydbClusterMaintenanceUpdatePolicyMaintenanceWindowsToTerraform = alloydbClusterMaintenanceUpdatePolicyMaintenanceWindowsToTerraform;
exports.alloydbClusterMaintenanceUpdatePolicyMaintenanceWindowsToHclTerraform = alloydbClusterMaintenanceUpdatePolicyMaintenanceWindowsToHclTerraform;
exports.alloydbClusterMaintenanceUpdatePolicyToTerraform = alloydbClusterMaintenanceUpdatePolicyToTerraform;
exports.alloydbClusterMaintenanceUpdatePolicyToHclTerraform = alloydbClusterMaintenanceUpdatePolicyToHclTerraform;
exports.alloydbClusterNetworkConfigToTerraform = alloydbClusterNetworkConfigToTerraform;
exports.alloydbClusterNetworkConfigToHclTerraform = alloydbClusterNetworkConfigToHclTerraform;
exports.alloydbClusterPscConfigToTerraform = alloydbClusterPscConfigToTerraform;
exports.alloydbClusterPscConfigToHclTerraform = alloydbClusterPscConfigToHclTerraform;
exports.alloydbClusterRestoreBackupSourceToTerraform = alloydbClusterRestoreBackupSourceToTerraform;
exports.alloydbClusterRestoreBackupSourceToHclTerraform = alloydbClusterRestoreBackupSourceToHclTerraform;
exports.alloydbClusterRestoreContinuousBackupSourceToTerraform = alloydbClusterRestoreContinuousBackupSourceToTerraform;
exports.alloydbClusterRestoreContinuousBackupSourceToHclTerraform = alloydbClusterRestoreContinuousBackupSourceToHclTerraform;
exports.alloydbClusterSecondaryConfigToTerraform = alloydbClusterSecondaryConfigToTerraform;
exports.alloydbClusterSecondaryConfigToHclTerraform = alloydbClusterSecondaryConfigToHclTerraform;
exports.alloydbClusterTimeoutsToTerraform = alloydbClusterTimeoutsToTerraform;
exports.alloydbClusterTimeoutsToHclTerraform = alloydbClusterTimeoutsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function alloydbClusterBackupSourceToTerraform(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 {};
}
function alloydbClusterBackupSourceToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class AlloydbClusterBackupSourceOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// backup_name - computed: true, optional: false, required: false
get backupName() {
return this.getStringAttribute('backup_name');
}
}
exports.AlloydbClusterBackupSourceOutputReference = AlloydbClusterBackupSourceOutputReference;
_a = JSII_RTTI_SYMBOL_1;
AlloydbClusterBackupSourceOutputReference[_a] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterBackupSourceOutputReference", version: "14.35.0" };
class AlloydbClusterBackupSourceList 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 AlloydbClusterBackupSourceOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.AlloydbClusterBackupSourceList = AlloydbClusterBackupSourceList;
_b = JSII_RTTI_SYMBOL_1;
AlloydbClusterBackupSourceList[_b] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterBackupSourceList", version: "14.35.0" };
function alloydbClusterContinuousBackupInfoEncryptionInfoToTerraform(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 {};
}
function alloydbClusterContinuousBackupInfoEncryptionInfoToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class AlloydbClusterContinuousBackupInfoEncryptionInfoOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// encryption_type - computed: true, optional: false, required: false
get encryptionType() {
return this.getStringAttribute('encryption_type');
}
// kms_key_versions - computed: true, optional: false, required: false
get kmsKeyVersions() {
return this.getListAttribute('kms_key_versions');
}
}
exports.AlloydbClusterContinuousBackupInfoEncryptionInfoOutputReference = AlloydbClusterContinuousBackupInfoEncryptionInfoOutputReference;
_c = JSII_RTTI_SYMBOL_1;
AlloydbClusterContinuousBackupInfoEncryptionInfoOutputReference[_c] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterContinuousBackupInfoEncryptionInfoOutputReference", version: "14.35.0" };
class AlloydbClusterContinuousBackupInfoEncryptionInfoList 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 AlloydbClusterContinuousBackupInfoEncryptionInfoOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.AlloydbClusterContinuousBackupInfoEncryptionInfoList = AlloydbClusterContinuousBackupInfoEncryptionInfoList;
_d = JSII_RTTI_SYMBOL_1;
AlloydbClusterContinuousBackupInfoEncryptionInfoList[_d] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterContinuousBackupInfoEncryptionInfoList", version: "14.35.0" };
function alloydbClusterContinuousBackupInfoToTerraform(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 {};
}
function alloydbClusterContinuousBackupInfoToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class AlloydbClusterContinuousBackupInfoOutputReference 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;
// encryption_info - computed: true, optional: false, required: false
this._encryptionInfo = new AlloydbClusterContinuousBackupInfoEncryptionInfoList(this, "encryption_info", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// earliest_restorable_time - computed: true, optional: false, required: false
get earliestRestorableTime() {
return this.getStringAttribute('earliest_restorable_time');
}
// enabled_time - computed: true, optional: false, required: false
get enabledTime() {
return this.getStringAttribute('enabled_time');
}
get encryptionInfo() {
return this._encryptionInfo;
}
// schedule - computed: true, optional: false, required: false
get schedule() {
return this.getListAttribute('schedule');
}
}
exports.AlloydbClusterContinuousBackupInfoOutputReference = AlloydbClusterContinuousBackupInfoOutputReference;
_e = JSII_RTTI_SYMBOL_1;
AlloydbClusterContinuousBackupInfoOutputReference[_e] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterContinuousBackupInfoOutputReference", version: "14.35.0" };
class AlloydbClusterContinuousBackupInfoList 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 AlloydbClusterContinuousBackupInfoOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.AlloydbClusterContinuousBackupInfoList = AlloydbClusterContinuousBackupInfoList;
_f = JSII_RTTI_SYMBOL_1;
AlloydbClusterContinuousBackupInfoList[_f] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterContinuousBackupInfoList", version: "14.35.0" };
function alloydbClusterEncryptionInfoToTerraform(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 {};
}
function alloydbClusterEncryptionInfoToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class AlloydbClusterEncryptionInfoOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// encryption_type - computed: true, optional: false, required: false
get encryptionType() {
return this.getStringAttribute('encryption_type');
}
// kms_key_versions - computed: true, optional: false, required: false
get kmsKeyVersions() {
return this.getListAttribute('kms_key_versions');
}
}
exports.AlloydbClusterEncryptionInfoOutputReference = AlloydbClusterEncryptionInfoOutputReference;
_g = JSII_RTTI_SYMBOL_1;
AlloydbClusterEncryptionInfoOutputReference[_g] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterEncryptionInfoOutputReference", version: "14.35.0" };
class AlloydbClusterEncryptionInfoList 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 AlloydbClusterEncryptionInfoOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.AlloydbClusterEncryptionInfoList = AlloydbClusterEncryptionInfoList;
_h = JSII_RTTI_SYMBOL_1;
AlloydbClusterEncryptionInfoList[_h] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterEncryptionInfoList", version: "14.35.0" };
function alloydbClusterMigrationSourceToTerraform(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 {};
}
function alloydbClusterMigrationSourceToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class AlloydbClusterMigrationSourceOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// host_port - computed: true, optional: false, required: false
get hostPort() {
return this.getStringAttribute('host_port');
}
// reference_id - computed: true, optional: false, required: false
get referenceId() {
return this.getStringAttribute('reference_id');
}
// source_type - computed: true, optional: false, required: false
get sourceType() {
return this.getStringAttribute('source_type');
}
}
exports.AlloydbClusterMigrationSourceOutputReference = AlloydbClusterMigrationSourceOutputReference;
_j = JSII_RTTI_SYMBOL_1;
AlloydbClusterMigrationSourceOutputReference[_j] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterMigrationSourceOutputReference", version: "14.35.0" };
class AlloydbClusterMigrationSourceList 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 AlloydbClusterMigrationSourceOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.AlloydbClusterMigrationSourceList = AlloydbClusterMigrationSourceList;
_k = JSII_RTTI_SYMBOL_1;
AlloydbClusterMigrationSourceList[_k] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterMigrationSourceList", version: "14.35.0" };
function alloydbClusterTrialMetadataToTerraform(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 {};
}
function alloydbClusterTrialMetadataToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class AlloydbClusterTrialMetadataOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// end_time - computed: true, optional: false, required: false
get endTime() {
return this.getStringAttribute('end_time');
}
// grace_end_time - computed: true, optional: false, required: false
get graceEndTime() {
return this.getStringAttribute('grace_end_time');
}
// start_time - computed: true, optional: false, required: false
get startTime() {
return this.getStringAttribute('start_time');
}
// upgrade_time - computed: true, optional: false, required: false
get upgradeTime() {
return this.getStringAttribute('upgrade_time');
}
}
exports.AlloydbClusterTrialMetadataOutputReference = AlloydbClusterTrialMetadataOutputReference;
_l = JSII_RTTI_SYMBOL_1;
AlloydbClusterTrialMetadataOutputReference[_l] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterTrialMetadataOutputReference", version: "14.35.0" };
class AlloydbClusterTrialMetadataList 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 AlloydbClusterTrialMetadataOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.AlloydbClusterTrialMetadataList = AlloydbClusterTrialMetadataList;
_m = JSII_RTTI_SYMBOL_1;
AlloydbClusterTrialMetadataList[_m] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterTrialMetadataList", version: "14.35.0" };
function alloydbClusterAutomatedBackupPolicyEncryptionConfigToTerraform(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 {
kms_key_name: cdktf.stringToTerraform(struct.kmsKeyName),
};
}
function alloydbClusterAutomatedBackupPolicyEncryptionConfigToHclTerraform(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 = {
kms_key_name: {
value: cdktf.stringToHclTerraform(struct.kmsKeyName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class AlloydbClusterAutomatedBackupPolicyEncryptionConfigOutputReference 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;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._kmsKeyName !== undefined) {
hasAnyValues = true;
internalValueResult.kmsKeyName = this._kmsKeyName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._kmsKeyName = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._kmsKeyName = value.kmsKeyName;
}
}
get kmsKeyName() {
return this.getStringAttribute('kms_key_name');
}
set kmsKeyName(value) {
this._kmsKeyName = value;
}
resetKmsKeyName() {
this._kmsKeyName = undefined;
}
// Temporarily expose input value. Use with caution.
get kmsKeyNameInput() {
return this._kmsKeyName;
}
}
exports.AlloydbClusterAutomatedBackupPolicyEncryptionConfigOutputReference = AlloydbClusterAutomatedBackupPolicyEncryptionConfigOutputReference;
_o = JSII_RTTI_SYMBOL_1;
AlloydbClusterAutomatedBackupPolicyEncryptionConfigOutputReference[_o] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterAutomatedBackupPolicyEncryptionConfigOutputReference", version: "14.35.0" };
function alloydbClusterAutomatedBackupPolicyQuantityBasedRetentionToTerraform(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 {
count: cdktf.numberToTerraform(struct.count),
};
}
function alloydbClusterAutomatedBackupPolicyQuantityBasedRetentionToHclTerraform(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 = {
count: {
value: cdktf.numberToHclTerraform(struct.count),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class AlloydbClusterAutomatedBackupPolicyQuantityBasedRetentionOutputReference 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;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._count !== undefined) {
hasAnyValues = true;
internalValueResult.count = this._count;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._count = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._count = value.count;
}
}
get count() {
return this.getNumberAttribute('count');
}
set count(value) {
this._count = value;
}
resetCount() {
this._count = undefined;
}
// Temporarily expose input value. Use with caution.
get countInput() {
return this._count;
}
}
exports.AlloydbClusterAutomatedBackupPolicyQuantityBasedRetentionOutputReference = AlloydbClusterAutomatedBackupPolicyQuantityBasedRetentionOutputReference;
_p = JSII_RTTI_SYMBOL_1;
AlloydbClusterAutomatedBackupPolicyQuantityBasedRetentionOutputReference[_p] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterAutomatedBackupPolicyQuantityBasedRetentionOutputReference", version: "14.35.0" };
function alloydbClusterAutomatedBackupPolicyTimeBasedRetentionToTerraform(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 {
retention_period: cdktf.stringToTerraform(struct.retentionPeriod),
};
}
function alloydbClusterAutomatedBackupPolicyTimeBasedRetentionToHclTerraform(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 = {
retention_period: {
value: cdktf.stringToHclTerraform(struct.retentionPeriod),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class AlloydbClusterAutomatedBackupPolicyTimeBasedRetentionOutputReference 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;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._retentionPeriod !== undefined) {
hasAnyValues = true;
internalValueResult.retentionPeriod = this._retentionPeriod;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._retentionPeriod = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._retentionPeriod = value.retentionPeriod;
}
}
get retentionPeriod() {
return this.getStringAttribute('retention_period');
}
set retentionPeriod(value) {
this._retentionPeriod = value;
}
resetRetentionPeriod() {
this._retentionPeriod = undefined;
}
// Temporarily expose input value. Use with caution.
get retentionPeriodInput() {
return this._retentionPeriod;
}
}
exports.AlloydbClusterAutomatedBackupPolicyTimeBasedRetentionOutputReference = AlloydbClusterAutomatedBackupPolicyTimeBasedRetentionOutputReference;
_q = JSII_RTTI_SYMBOL_1;
AlloydbClusterAutomatedBackupPolicyTimeBasedRetentionOutputReference[_q] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterAutomatedBackupPolicyTimeBasedRetentionOutputReference", version: "14.35.0" };
function alloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesToTerraform(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 {
hours: cdktf.numberToTerraform(struct.hours),
minutes: cdktf.numberToTerraform(struct.minutes),
nanos: cdktf.numberToTerraform(struct.nanos),
seconds: cdktf.numberToTerraform(struct.seconds),
};
}
function alloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesToHclTerraform(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 = {
hours: {
value: cdktf.numberToHclTerraform(struct.hours),
isBlock: false,
type: "simple",
storageClassType: "number",
},
minutes: {
value: cdktf.numberToHclTerraform(struct.minutes),
isBlock: false,
type: "simple",
storageClassType: "number",
},
nanos: {
value: cdktf.numberToHclTerraform(struct.nanos),
isBlock: false,
type: "simple",
storageClassType: "number",
},
seconds: {
value: cdktf.numberToHclTerraform(struct.seconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class AlloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesOutputReference 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._hours !== undefined) {
hasAnyValues = true;
internalValueResult.hours = this._hours;
}
if (this._minutes !== undefined) {
hasAnyValues = true;
internalValueResult.minutes = this._minutes;
}
if (this._nanos !== undefined) {
hasAnyValues = true;
internalValueResult.nanos = this._nanos;
}
if (this._seconds !== undefined) {
hasAnyValues = true;
internalValueResult.seconds = this._seconds;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._hours = undefined;
this._minutes = undefined;
this._nanos = undefined;
this._seconds = 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._hours = value.hours;
this._minutes = value.minutes;
this._nanos = value.nanos;
this._seconds = value.seconds;
}
}
get hours() {
return this.getNumberAttribute('hours');
}
set hours(value) {
this._hours = value;
}
resetHours() {
this._hours = undefined;
}
// Temporarily expose input value. Use with caution.
get hoursInput() {
return this._hours;
}
get minutes() {
return this.getNumberAttribute('minutes');
}
set minutes(value) {
this._minutes = value;
}
resetMinutes() {
this._minutes = undefined;
}
// Temporarily expose input value. Use with caution.
get minutesInput() {
return this._minutes;
}
get nanos() {
return this.getNumberAttribute('nanos');
}
set nanos(value) {
this._nanos = value;
}
resetNanos() {
this._nanos = undefined;
}
// Temporarily expose input value. Use with caution.
get nanosInput() {
return this._nanos;
}
get seconds() {
return this.getNumberAttribute('seconds');
}
set seconds(value) {
this._seconds = value;
}
resetSeconds() {
this._seconds = undefined;
}
// Temporarily expose input value. Use with caution.
get secondsInput() {
return this._seconds;
}
}
exports.AlloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesOutputReference = AlloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesOutputReference;
_r = JSII_RTTI_SYMBOL_1;
AlloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesOutputReference[_r] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesOutputReference", version: "14.35.0" };
class AlloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesList 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 AlloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.AlloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesList = AlloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesList;
_s = JSII_RTTI_SYMBOL_1;
AlloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesList[_s] = { fqn: "@cdktf/provider-google.alloydbCluster.AlloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesList", version: "14.35.0" };
function alloydbClusterAutomatedBackupPolicyWeeklyScheduleToTerraform(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(cdktf.stringToTerraform, false)(struct.daysOfWeek),
start_times: cdktf.listMapper(alloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesToTerraform, true)(struct.startTimes),
};
}
function alloydbClusterAutomatedBackupPolicyWeeklyScheduleToHclTerraform(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(cdktf.stringToHclTerraform, false)(struct.daysOfWeek),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
start_times: {
value: cdktf.listMapperHcl(alloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesToHclTerraform, true)(struct.startTimes),
isBlock: true,
type: "list",
storageClassType: "AlloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class AlloydbClusterAutomatedBackupPolicyWeeklyScheduleOutputReference 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;
// start_times - computed: false, optional: false, required: true
this._startTimes = new AlloydbClusterAutomatedBackupPolicyWeeklyScheduleStartTimesList(this, "start_times", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._daysOfWeek !== undefined) {
hasAnyValues = true;
internalValueResult.daysOfWeek = this._daysOfWeek;
}
if (this._startTimes?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.startTimes = this._startTimes?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._daysOfWeek = undefined;