@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,065 lines • 228 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;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RedisCluster = exports.RedisClusterZoneDistributionConfigOutputReference = exports.redisClusterZoneDistributionConfigToHclTerraform = exports.redisClusterZoneDistributionConfigToTerraform = exports.RedisClusterTimeoutsOutputReference = exports.redisClusterTimeoutsToHclTerraform = exports.redisClusterTimeoutsToTerraform = exports.RedisClusterPscConfigsList = exports.RedisClusterPscConfigsOutputReference = exports.redisClusterPscConfigsToHclTerraform = exports.redisClusterPscConfigsToTerraform = exports.RedisClusterMaintenancePolicyOutputReference = exports.redisClusterMaintenancePolicyToHclTerraform = exports.redisClusterMaintenancePolicyToTerraform = exports.RedisClusterMaintenancePolicyWeeklyMaintenanceWindowList = exports.RedisClusterMaintenancePolicyWeeklyMaintenanceWindowOutputReference = exports.redisClusterMaintenancePolicyWeeklyMaintenanceWindowToHclTerraform = exports.redisClusterMaintenancePolicyWeeklyMaintenanceWindowToTerraform = exports.RedisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeOutputReference = exports.redisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeToHclTerraform = exports.redisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeToTerraform = 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;
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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.0" };
function redisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeToTerraform(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),
};
}
exports.redisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeToTerraform = redisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeToTerraform;
function redisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeToHclTerraform(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));
}
exports.redisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeToHclTerraform = redisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeToHclTerraform;
class RedisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeOutputReference 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._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._hours = undefined;
this._minutes = undefined;
this._nanos = undefined;
this._seconds = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
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.RedisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeOutputReference = RedisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeOutputReference;
_o = JSII_RTTI_SYMBOL_1;
RedisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeOutputReference[_o] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeOutputReference", version: "14.3.0" };
function redisClusterMaintenancePolicyWeeklyMaintenanceWindowToTerraform(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 {
day: cdktf.stringToTerraform(struct.day),
start_time: redisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeToTerraform(struct.startTime),
};
}
exports.redisClusterMaintenancePolicyWeeklyMaintenanceWindowToTerraform = redisClusterMaintenancePolicyWeeklyMaintenanceWindowToTerraform;
function redisClusterMaintenancePolicyWeeklyMaintenanceWindowToHclTerraform(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 = {
day: {
value: cdktf.stringToHclTerraform(struct.day),
isBlock: false,
type: "simple",
storageClassType: "string",
},
start_time: {
value: redisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeToHclTerraform(struct.startTime),
isBlock: true,
type: "list",
storageClassType: "RedisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.redisClusterMaintenancePolicyWeeklyMaintenanceWindowToHclTerraform = redisClusterMaintenancePolicyWeeklyMaintenanceWindowToHclTerraform;
class RedisClusterMaintenancePolicyWeeklyMaintenanceWindowOutputReference 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;
// start_time - computed: false, optional: false, required: true
this._startTime = new RedisClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeOutputReference(this, "start_time");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._day !== undefined) {
hasAnyValues = true;
internalValueResult.day = this._day;
}
if (this._startTime?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.startTime = this._startTime?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._day = undefined;
this._startTime.internalValue = 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._day = value.day;
this._startTime.internalValue = value.startTime;
}
}
get day() {
return this.getStringAttribute('day');
}
set day(value) {
this._day = value;
}
// Temporarily expose input value. Use with caution.
get dayInput() {
return this._day;
}
// duration - computed: true, optional: false, required: false
get duration() {
return this.getStringAttribute('duration');
}
get startTime() {
return this._startTime;
}
putStartTime(value) {
this._startTime.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get startTimeInput() {
return this._startTime.internalValue;
}
}
exports.RedisClusterMaintenancePolicyWeeklyMaintenanceWindowOutputReference = RedisClusterMaintenancePolicyWeeklyMaintenanceWindowOutputReference;
_p = JSII_RTTI_SYMBOL_1;
RedisClusterMaintenancePolicyWeeklyMaintenanceWindowOutputReference[_p] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterMaintenancePolicyWeeklyMaintenanceWindowOutputReference", version: "14.3.0" };
class RedisClusterMaintenancePolicyWeeklyMaintenanceWindowList 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 RedisClusterMaintenancePolicyWeeklyMaintenanceWindowOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.RedisClusterMaintenancePolicyWeeklyMaintenanceWindowList = RedisClusterMaintenancePolicyWeeklyMaintenanceWindowList;
_q = JSII_RTTI_SYMBOL_1;
RedisClusterMaintenancePolicyWeeklyMaintenanceWindowList[_q] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterMaintenancePolicyWeeklyMaintenanceWindowList", version: "14.3.0" };
function redisClusterMaintenancePolicyToTerraform(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 {
weekly_maintenance_window: cdktf.listMapper(redisClusterMaintenancePolicyWeeklyMaintenanceWindowToTerraform, true)(struct.weeklyMaintenanceWindow),
};
}
exports.redisClusterMaintenancePolicyToTerraform = redisClusterMaintenancePolicyToTerraform;
function redisClusterMaintenancePolicyToHclTerraform(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 = {
weekly_maintenance_window: {
value: cdktf.listMapperHcl(redisClusterMaintenancePolicyWeeklyMaintenanceWindowToHclTerraform, true)(struct.weeklyMaintenanceWindow),
isBlock: true,
type: "list",
storageClassType: "RedisClusterMaintenancePolicyWeeklyMaintenanceWindowList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.redisClusterMaintenancePolicyToHclTerraform = redisClusterMaintenancePolicyToHclTerraform;
class RedisClusterMaintenancePolicyOutputReference 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;
// weekly_maintenance_window - computed: false, optional: true, required: false
this._weeklyMaintenanceWindow = new RedisClusterMaintenancePolicyWeeklyMaintenanceWindowList(this, "weekly_maintenance_window", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._weeklyMaintenanceWindow?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.weeklyMaintenanceWindow = this._weeklyMaintenanceWindow?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._weeklyMaintenanceWindow.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._weeklyMaintenanceWindow.internalValue = value.weeklyMaintenanceWindow;
}
}
// create_time - computed: true, optional: false, required: false
get createTime() {
return this.getStringAttribute('create_time');
}
// update_time - computed: true, optional: false, required: false
get updateTime() {
return this.getStringAttribute('update_time');
}
get weeklyMaintenanceWindow() {
return this._weeklyMaintenanceWindow;
}
putWeeklyMaintenanceWindow(value) {
this._weeklyMaintenanceWindow.internalValue = value;
}
resetWeeklyMaintenanceWindow() {
this._weeklyMaintenanceWindow.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get weeklyMaintenanceWindowInput() {
return this._weeklyMaintenanceWindow.internalValue;
}
}
exports.RedisClusterMaintenancePolicyOutputReference = RedisClusterMaintenancePolicyOutputReference;
_r = JSII_RTTI_SYMBOL_1;
RedisClusterMaintenancePolicyOutputReference[_r] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterMaintenancePolicyOutputReference", version: "14.3.0" };
function redisClusterPscConfigsToTerraform(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 {
network: cdktf.stringToTerraform(struct.network),
};
}
exports.redisClusterPscConfigsToTerraform = redisClusterPscConfigsToTerraform;
function redisClusterPscConfigsToHclTerraform(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 = {
network: {
value: cdktf.stringToHclTerraform(struct.network),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.redisClusterPscConfigsToHclTerraform = redisClusterPscConfigsToHclTerraform;
class RedisClusterPscConfigsOutputReference 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._network !== undefined) {
hasAnyValues = true;
internalValueResult.network = this._network;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._network = 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._network = value.network;
}
}
get network() {
return this.getStringAttribute('network');
}
set network(value) {
this._network = value;
}
// Temporarily expose input value. Use with caution.
get networkInput() {
return this._network;
}
}
exports.RedisClusterPscConfigsOutputReference = RedisClusterPscConfigsOutputReference;
_s = JSII_RTTI_SYMBOL_1;
RedisClusterPscConfigsOutputReference[_s] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterPscConfigsOutputReference", version: "14.3.0" };
class RedisClusterPscConfigsList 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 RedisClusterPscConfigsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.RedisClusterPscConfigsList = RedisClusterPscConfigsList;
_t = JSII_RTTI_SYMBOL_1;
RedisClusterPscConfigsList[_t] = { fqn: "@cdktf/provider-google.redisCluster.RedisClusterPscConfigsList", version: "14.3.0" };
function redisClusterTimeoutsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
create: cdktf.stringToTerraform(struct.create),
delete: cdktf.stringToTerraform(struct.delete),
update: cdktf.stringToTerraform(struct.update),
};
}
exports.redisClusterTimeoutsToTerraform = redisClusterTimeoutsToTerraform;
function redisClusterTimeoutsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
create: {
value: cdktf.stringToHclTerraform(struct.create),
isBlock: false,
type: "simple",
storageClassType: "string",
},
delete: {
value: cdktf.stringToHclTerraform(struct.delete),
isBlock: false,
type: "simple",
storageClassType: "string",
},
update: {
value: cdktf.stringToHclTerraform(struct.update),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.redisClusterTimeoutsToHclTerraform = redisClusterTimeoutsToHclTerraform;
class RedisClusterTimeoutsOutputReference 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.crea