UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

927 lines 369 kB
"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.redisClusterMaintenancePolicyWeeklyMaintenanceWindowToTerraform = exports.RedisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeOutputReference = exports.redisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeToHclTerraform = exports.redisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeToTerraform = exports.RedisClusterCrossClusterReplicationConfigOutputReference = exports.redisClusterCrossClusterReplicationConfigToHclTerraform = exports.redisClusterCrossClusterReplicationConfigToTerraform = exports.RedisClusterCrossClusterReplicationConfigSecondaryClustersList = exports.RedisClusterCrossClusterReplicationConfigSecondaryClustersOutputReference = exports.redisClusterCrossClusterReplicationConfigSecondaryClustersToHclTerraform = exports.redisClusterCrossClusterReplicationConfigSecondaryClustersToTerraform = exports.RedisClusterCrossClusterReplicationConfigPrimaryClusterOutputReference = exports.redisClusterCrossClusterReplicationConfigPrimaryClusterToHclTerraform = exports.redisClusterCrossClusterReplicationConfigPrimaryClusterToTerraform = exports.RedisClusterCrossClusterReplicationConfigMembershipList = exports.RedisClusterCrossClusterReplicationConfigMembershipOutputReference = exports.redisClusterCrossClusterReplicationConfigMembershipToHclTerraform = exports.redisClusterCrossClusterReplicationConfigMembershipToTerraform = exports.RedisClusterCrossClusterReplicationConfigMembershipSecondaryClustersList = exports.RedisClusterCrossClusterReplicationConfigMembershipSecondaryClustersOutputReference = exports.redisClusterCrossClusterReplicationConfigMembershipSecondaryClustersToHclTerraform = exports.redisClusterCrossClusterReplicationConfigMembershipSecondaryClustersToTerraform = exports.RedisClusterCrossClusterReplicationConfigMembershipPrimaryClusterList = exports.RedisClusterCrossClusterReplicationConfigMembershipPrimaryClusterOutputReference = exports.redisClusterCrossClusterReplicationConfigMembershipPrimaryClusterToHclTerraform = exports.redisClusterCrossClusterReplicationConfigMembershipPrimaryClusterToTerraform = exports.RedisClusterStateInfoList = exports.RedisClusterStateInfoOutputReference = exports.redisClusterStateInfoToHclTerraform = exports.redisClusterStateInfoToTerraform = exports.RedisClusterStateInfoUpdateInfoList = exports.RedisClusterStateInfoUpdateInfoOutputReference = exports.redisClusterStateInfoUpdateInfoToHclTerraform = exports.redisClusterStateInfoUpdateInfoToTerraform = exports.RedisClusterPscConnectionsList = exports.RedisClusterPscConnectionsOutputReference = exports.redisClusterPscConnectionsToHclTerraform = exports.redisClusterPscConnectionsToTerraform = exports.RedisClusterMaintenanceScheduleList = exports.RedisClusterMaintenanceScheduleOutputReference = exports.redisClusterMaintenanceScheduleToHclTerraform = exports.redisClusterMaintenanceScheduleToTerraform = exports.RedisClusterDiscoveryEndpointsList = exports.RedisClusterDiscoveryEndpointsOutputReference = exports.redisClusterDiscoveryEndpointsToHclTerraform = exports.redisClusterDiscoveryEndpointsToTerraform = exports.RedisClusterDiscoveryEndpointsPscConfigList = exports.RedisClusterDiscoveryEndpointsPscConfigOutputReference = exports.redisClusterDiscoveryEndpointsPscConfigToHclTerraform = exports.redisClusterDiscoveryEndpointsPscConfigToTerraform = void 0; exports.RedisCluster = exports.RedisClusterZoneDistributionConfigOutputReference = exports.redisClusterZoneDistributionConfigToHclTerraform = exports.redisClusterZoneDistributionConfigToTerraform = exports.RedisClusterTimeoutsOutputReference = exports.redisClusterTimeoutsToHclTerraform = exports.redisClusterTimeoutsToTerraform = exports.RedisClusterPscConfigsList = exports.RedisClusterPscConfigsOutputReference = exports.redisClusterPscConfigsToHclTerraform = exports.redisClusterPscConfigsToTerraform = exports.RedisClusterPersistenceConfigOutputReference = exports.redisClusterPersistenceConfigToHclTerraform = exports.redisClusterPersistenceConfigToTerraform = exports.RedisClusterPersistenceConfigRdbConfigOutputReference = exports.redisClusterPersistenceConfigRdbConfigToHclTerraform = exports.redisClusterPersistenceConfigRdbConfigToTerraform = exports.RedisClusterPersistenceConfigAofConfigOutputReference = exports.redisClusterPersistenceConfigAofConfigToHclTerraform = exports.redisClusterPersistenceConfigAofConfigToTerraform = exports.RedisClusterMaintenancePolicyOutputReference = exports.redisClusterMaintenancePolicyToHclTerraform = exports.redisClusterMaintenancePolicyToTerraform = exports.RedisClusterMaintenancePolicyWeeklyMaintenanceWindowList = exports.RedisClusterMaintenancePolicyWeeklyMaintenanceWindowOutputReference = exports.redisClusterMaintenancePolicyWeeklyMaintenanceWindowToHclTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function redisClusterDiscoveryEndpointsPscConfigToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.redisClusterDiscoveryEndpointsPscConfigToTerraform = redisClusterDiscoveryEndpointsPscConfigToTerraform; function redisClusterDiscoveryEndpointsPscConfigToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.redisClusterDiscoveryEndpointsPscConfigToHclTerraform = redisClusterDiscoveryEndpointsPscConfigToHclTerraform; class RedisClusterDiscoveryEndpointsPscConfigOutputReference 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; } } // network - computed: true, optional: false, required: false get network() { return this.getStringAttribute('network'); } } exports.RedisClusterDiscoveryEndpointsPscConfigOutputReference = RedisClusterDiscoveryEndpointsPscConfigOutputReference; _a = JSII_RTTI_SYMBOL_1; RedisClusterDiscoveryEndpointsPscConfigOutputReference[_a] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterDiscoveryEndpointsPscConfigOutputReference", version: "14.12.0" }; class RedisClusterDiscoveryEndpointsPscConfigList 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 RedisClusterDiscoveryEndpointsPscConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.RedisClusterDiscoveryEndpointsPscConfigList = RedisClusterDiscoveryEndpointsPscConfigList; _b = JSII_RTTI_SYMBOL_1; RedisClusterDiscoveryEndpointsPscConfigList[_b] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterDiscoveryEndpointsPscConfigList", version: "14.12.0" }; function redisClusterDiscoveryEndpointsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.redisClusterDiscoveryEndpointsToTerraform = redisClusterDiscoveryEndpointsToTerraform; function redisClusterDiscoveryEndpointsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.redisClusterDiscoveryEndpointsToHclTerraform = redisClusterDiscoveryEndpointsToHclTerraform; class RedisClusterDiscoveryEndpointsOutputReference 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; // psc_config - computed: true, optional: false, required: false this._pscConfig = new RedisClusterDiscoveryEndpointsPscConfigList(this, "psc_config", 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; } } // address - computed: true, optional: false, required: false get address() { return this.getStringAttribute('address'); } // port - computed: true, optional: false, required: false get port() { return this.getNumberAttribute('port'); } get pscConfig() { return this._pscConfig; } } exports.RedisClusterDiscoveryEndpointsOutputReference = RedisClusterDiscoveryEndpointsOutputReference; _c = JSII_RTTI_SYMBOL_1; RedisClusterDiscoveryEndpointsOutputReference[_c] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterDiscoveryEndpointsOutputReference", version: "14.12.0" }; class RedisClusterDiscoveryEndpointsList 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 RedisClusterDiscoveryEndpointsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.RedisClusterDiscoveryEndpointsList = RedisClusterDiscoveryEndpointsList; _d = JSII_RTTI_SYMBOL_1; RedisClusterDiscoveryEndpointsList[_d] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterDiscoveryEndpointsList", version: "14.12.0" }; function redisClusterMaintenanceScheduleToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.redisClusterMaintenanceScheduleToTerraform = redisClusterMaintenanceScheduleToTerraform; function redisClusterMaintenanceScheduleToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.redisClusterMaintenanceScheduleToHclTerraform = redisClusterMaintenanceScheduleToHclTerraform; class RedisClusterMaintenanceScheduleOutputReference 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'); } // schedule_deadline_time - computed: true, optional: false, required: false get scheduleDeadlineTime() { return this.getStringAttribute('schedule_deadline_time'); } // start_time - computed: true, optional: false, required: false get startTime() { return this.getStringAttribute('start_time'); } } exports.RedisClusterMaintenanceScheduleOutputReference = RedisClusterMaintenanceScheduleOutputReference; _e = JSII_RTTI_SYMBOL_1; RedisClusterMaintenanceScheduleOutputReference[_e] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterMaintenanceScheduleOutputReference", version: "14.12.0" }; class RedisClusterMaintenanceScheduleList 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 RedisClusterMaintenanceScheduleOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.RedisClusterMaintenanceScheduleList = RedisClusterMaintenanceScheduleList; _f = JSII_RTTI_SYMBOL_1; RedisClusterMaintenanceScheduleList[_f] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterMaintenanceScheduleList", version: "14.12.0" }; function redisClusterPscConnectionsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.redisClusterPscConnectionsToTerraform = redisClusterPscConnectionsToTerraform; function redisClusterPscConnectionsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.redisClusterPscConnectionsToHclTerraform = redisClusterPscConnectionsToHclTerraform; class RedisClusterPscConnectionsOutputReference 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; } } // address - computed: true, optional: false, required: false get address() { return this.getStringAttribute('address'); } // forwarding_rule - computed: true, optional: false, required: false get forwardingRule() { return this.getStringAttribute('forwarding_rule'); } // network - computed: true, optional: false, required: false get network() { return this.getStringAttribute('network'); } // project_id - computed: true, optional: false, required: false get projectId() { return this.getStringAttribute('project_id'); } // psc_connection_id - computed: true, optional: false, required: false get pscConnectionId() { return this.getStringAttribute('psc_connection_id'); } } exports.RedisClusterPscConnectionsOutputReference = RedisClusterPscConnectionsOutputReference; _g = JSII_RTTI_SYMBOL_1; RedisClusterPscConnectionsOutputReference[_g] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterPscConnectionsOutputReference", version: "14.12.0" }; class RedisClusterPscConnectionsList 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 RedisClusterPscConnectionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.RedisClusterPscConnectionsList = RedisClusterPscConnectionsList; _h = JSII_RTTI_SYMBOL_1; RedisClusterPscConnectionsList[_h] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterPscConnectionsList", version: "14.12.0" }; function redisClusterStateInfoUpdateInfoToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.redisClusterStateInfoUpdateInfoToTerraform = redisClusterStateInfoUpdateInfoToTerraform; function redisClusterStateInfoUpdateInfoToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.redisClusterStateInfoUpdateInfoToHclTerraform = redisClusterStateInfoUpdateInfoToHclTerraform; class RedisClusterStateInfoUpdateInfoOutputReference 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; } } // target_replica_count - computed: true, optional: false, required: false get targetReplicaCount() { return this.getNumberAttribute('target_replica_count'); } // target_shard_count - computed: true, optional: false, required: false get targetShardCount() { return this.getNumberAttribute('target_shard_count'); } } exports.RedisClusterStateInfoUpdateInfoOutputReference = RedisClusterStateInfoUpdateInfoOutputReference; _j = JSII_RTTI_SYMBOL_1; RedisClusterStateInfoUpdateInfoOutputReference[_j] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterStateInfoUpdateInfoOutputReference", version: "14.12.0" }; class RedisClusterStateInfoUpdateInfoList 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 RedisClusterStateInfoUpdateInfoOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.RedisClusterStateInfoUpdateInfoList = RedisClusterStateInfoUpdateInfoList; _k = JSII_RTTI_SYMBOL_1; RedisClusterStateInfoUpdateInfoList[_k] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterStateInfoUpdateInfoList", version: "14.12.0" }; function redisClusterStateInfoToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.redisClusterStateInfoToTerraform = redisClusterStateInfoToTerraform; function redisClusterStateInfoToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.redisClusterStateInfoToHclTerraform = redisClusterStateInfoToHclTerraform; class RedisClusterStateInfoOutputReference 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; // update_info - computed: true, optional: false, required: false this._updateInfo = new RedisClusterStateInfoUpdateInfoList(this, "update_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; } } get updateInfo() { return this._updateInfo; } } exports.RedisClusterStateInfoOutputReference = RedisClusterStateInfoOutputReference; _l = JSII_RTTI_SYMBOL_1; RedisClusterStateInfoOutputReference[_l] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterStateInfoOutputReference", version: "14.12.0" }; class RedisClusterStateInfoList 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 RedisClusterStateInfoOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.RedisClusterStateInfoList = RedisClusterStateInfoList; _m = JSII_RTTI_SYMBOL_1; RedisClusterStateInfoList[_m] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterStateInfoList", version: "14.12.0" }; function redisClusterCrossClusterReplicationConfigMembershipPrimaryClusterToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.redisClusterCrossClusterReplicationConfigMembershipPrimaryClusterToTerraform = redisClusterCrossClusterReplicationConfigMembershipPrimaryClusterToTerraform; function redisClusterCrossClusterReplicationConfigMembershipPrimaryClusterToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.redisClusterCrossClusterReplicationConfigMembershipPrimaryClusterToHclTerraform = redisClusterCrossClusterReplicationConfigMembershipPrimaryClusterToHclTerraform; class RedisClusterCrossClusterReplicationConfigMembershipPrimaryClusterOutputReference 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; } } // cluster - computed: true, optional: false, required: false get cluster() { return this.getStringAttribute('cluster'); } // uid - computed: true, optional: false, required: false get uid() { return this.getStringAttribute('uid'); } } exports.RedisClusterCrossClusterReplicationConfigMembershipPrimaryClusterOutputReference = RedisClusterCrossClusterReplicationConfigMembershipPrimaryClusterOutputReference; _o = JSII_RTTI_SYMBOL_1; RedisClusterCrossClusterReplicationConfigMembershipPrimaryClusterOutputReference[_o] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterCrossClusterReplicationConfigMembershipPrimaryClusterOutputReference", version: "14.12.0" }; class RedisClusterCrossClusterReplicationConfigMembershipPrimaryClusterList 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 RedisClusterCrossClusterReplicationConfigMembershipPrimaryClusterOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.RedisClusterCrossClusterReplicationConfigMembershipPrimaryClusterList = RedisClusterCrossClusterReplicationConfigMembershipPrimaryClusterList; _p = JSII_RTTI_SYMBOL_1; RedisClusterCrossClusterReplicationConfigMembershipPrimaryClusterList[_p] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterCrossClusterReplicationConfigMembershipPrimaryClusterList", version: "14.12.0" }; function redisClusterCrossClusterReplicationConfigMembershipSecondaryClustersToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.redisClusterCrossClusterReplicationConfigMembershipSecondaryClustersToTerraform = redisClusterCrossClusterReplicationConfigMembershipSecondaryClustersToTerraform; function redisClusterCrossClusterReplicationConfigMembershipSecondaryClustersToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.redisClusterCrossClusterReplicationConfigMembershipSecondaryClustersToHclTerraform = redisClusterCrossClusterReplicationConfigMembershipSecondaryClustersToHclTerraform; class RedisClusterCrossClusterReplicationConfigMembershipSecondaryClustersOutputReference 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; } } // cluster - computed: true, optional: false, required: false get cluster() { return this.getStringAttribute('cluster'); } // uid - computed: true, optional: false, required: false get uid() { return this.getStringAttribute('uid'); } } exports.RedisClusterCrossClusterReplicationConfigMembershipSecondaryClustersOutputReference = RedisClusterCrossClusterReplicationConfigMembershipSecondaryClustersOutputReference; _q = JSII_RTTI_SYMBOL_1; RedisClusterCrossClusterReplicationConfigMembershipSecondaryClustersOutputReference[_q] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterCrossClusterReplicationConfigMembershipSecondaryClustersOutputReference", version: "14.12.0" }; class RedisClusterCrossClusterReplicationConfigMembershipSecondaryClustersList 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 RedisClusterCrossClusterReplicationConfigMembershipSecondaryClustersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.RedisClusterCrossClusterReplicationConfigMembershipSecondaryClustersList = RedisClusterCrossClusterReplicationConfigMembershipSecondaryClustersList; _r = JSII_RTTI_SYMBOL_1; RedisClusterCrossClusterReplicationConfigMembershipSecondaryClustersList[_r] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterCrossClusterReplicationConfigMembershipSecondaryClustersList", version: "14.12.0" }; function redisClusterCrossClusterReplicationConfigMembershipToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.redisClusterCrossClusterReplicationConfigMembershipToTerraform = redisClusterCrossClusterReplicationConfigMembershipToTerraform; function redisClusterCrossClusterReplicationConfigMembershipToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.redisClusterCrossClusterReplicationConfigMembershipToHclTerraform = redisClusterCrossClusterReplicationConfigMembershipToHclTerraform; class RedisClusterCrossClusterReplicationConfigMembershipOutputReference 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; // primary_cluster - computed: true, optional: false, required: false this._primaryCluster = new RedisClusterCrossClusterReplicationConfigMembershipPrimaryClusterList(this, "primary_cluster", false); // secondary_clusters - computed: true, optional: false, required: false this._secondaryClusters = new RedisClusterCrossClusterReplicationConfigMembershipSecondaryClustersList(this, "secondary_clusters", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } get primaryCluster() { return this._primaryCluster; } get secondaryClusters() { return this._secondaryClusters; } } exports.RedisClusterCrossClusterReplicationConfigMembershipOutputReference = RedisClusterCrossClusterReplicationConfigMembershipOutputReference; _s = JSII_RTTI_SYMBOL_1; RedisClusterCrossClusterReplicationConfigMembershipOutputReference[_s] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterCrossClusterReplicationConfigMembershipOutputReference", version: "14.12.0" }; class RedisClusterCrossClusterReplicationConfigMembershipList 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 RedisClusterCrossClusterReplicationConfigMembershipOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.RedisClusterCrossClusterReplicationConfigMembershipList = RedisClusterCrossClusterReplicationConfigMembershipList; _t = JSII_RTTI_SYMBOL_1; RedisClusterCrossClusterReplicationConfigMembershipList[_t] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterCrossClusterReplicationConfigMembershipList", version: "14.12.0" }; function redisClusterCrossClusterReplicationConfigPrimaryClusterToTerraform(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 { cluster: cdktf.stringToTerraform(struct.cluster), }; } exports.redisClusterCrossClusterReplicationConfigPrimaryClusterToTerraform = redisClusterCrossClusterReplicationConfigPrimaryClusterToTerraform; function redisClusterCrossClusterReplicationConfigPrimaryClusterToHclTerraform(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 = { cluster: { value: cdktf.stringToHclTerraform(struct.cluster), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.redisClusterCrossClusterReplicationConfigPrimaryClusterToHclTerraform = redisClusterCrossClusterReplicationConfigPrimaryClusterToHclTerraform; class RedisClusterCrossClusterReplicationConfigPrimaryClusterOutputReference 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._cluster !== undefined) { hasAnyValues = true; internalValueResult.cluster = this._cluster; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._cluster = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._cluster = value.cluster; } } get cluster() { return this.getStringAttribute('cluster'); } set cluster(value) { this._cluster = value; } resetCluster() { this._cluster = undefined; } // Temporarily expose input value. Use with caution. get clusterInput() { return this._cluster; } // uid - computed: true, optional: false, required: false get uid() { return this.getStringAttribute('uid'); } } exports.RedisClusterCrossClusterReplicationConfigPrimaryClusterOutputReference = RedisClusterCrossClusterReplicationConfigPrimaryClusterOutputReference; _u = JSII_RTTI_SYMBOL_1; RedisClusterCrossClusterReplicationConfigPrimaryClusterOutputReference[_u] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterCrossClusterReplicationConfigPrimaryClusterOutputReference", version: "14.12.0" }; function redisClusterCrossClusterReplicationConfigSecondaryClustersToTerraform(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 { cluster: cdktf.stringToTerraform(struct.cluster), }; } exports.redisClusterCrossClusterReplicationConfigSecondaryClustersToTerraform = redisClusterCrossClusterReplicationConfigSecondaryClustersToTerraform; function redisClusterCrossClusterReplicationConfigSecondaryClustersToHclTerraform(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 = { cluster: { value: cdktf.stringToHclTerraform(struct.cluster), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.redisClusterCrossClusterReplicationConfigSecondaryClustersToHclTerraform = redisClusterCrossClusterReplicationConfigSecondaryClustersToHclTerraform; class RedisClusterCrossClusterReplicationConfigSecondaryClustersOutputReference 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._cluster !== undefined) { hasAnyValues = true; internalValueResult.cluster = this._cluster; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._cluster = 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._cluster = value.cluster; } } get cluster() { return this.getStringAttribute('cluster'); } set cluster(value) { this._cluster = value; } resetCluster() { this._cluster = undefined; } // Temporarily expose input value. Use with caution. get clusterInput() { return this._cluster; } // uid - computed: true, optional: false, required: false get uid() { return this.getStringAttribute('uid'); } } exports.RedisClusterCrossClusterReplicationConfigSecondaryClustersOutputReference = RedisClusterCrossClusterReplicationConfigSecondaryClustersOutputReference; _v = JSII_RTTI_SYMBOL_1; RedisClusterCrossClusterReplicationConfigSecondaryClustersOutputReference[_v] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterCrossClusterReplicationConfigSecondaryClustersOutputReference", version: "14.12.0" }; class RedisClusterCrossClusterReplicationConfigSecondaryClustersList 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 RedisClusterCrossClusterReplicationConfigSecondaryClustersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.RedisClusterCrossClusterReplicationConfigSecondaryClustersList = RedisClusterCrossClusterReplicationConfigSecondaryClustersList; _w = JSII_RTTI_SYMBOL_1; RedisClusterCrossClusterReplicationCo