@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,099 lines (1,098 loc) • 227 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MemorystoreInstance = exports.MemorystoreInstanceZoneDistributionConfigOutputReference = exports.memorystoreInstanceZoneDistributionConfigToHclTerraform = exports.memorystoreInstanceZoneDistributionConfigToTerraform = exports.MemorystoreInstanceTimeoutsOutputReference = exports.memorystoreInstanceTimeoutsToHclTerraform = exports.memorystoreInstanceTimeoutsToTerraform = exports.MemorystoreInstancePersistenceConfigOutputReference = exports.memorystoreInstancePersistenceConfigToHclTerraform = exports.memorystoreInstancePersistenceConfigToTerraform = exports.MemorystoreInstancePersistenceConfigRdbConfigOutputReference = exports.memorystoreInstancePersistenceConfigRdbConfigToHclTerraform = exports.memorystoreInstancePersistenceConfigRdbConfigToTerraform = exports.MemorystoreInstancePersistenceConfigAofConfigOutputReference = exports.memorystoreInstancePersistenceConfigAofConfigToHclTerraform = exports.memorystoreInstancePersistenceConfigAofConfigToTerraform = exports.MemorystoreInstanceDesiredPscAutoConnectionsList = exports.MemorystoreInstanceDesiredPscAutoConnectionsOutputReference = exports.memorystoreInstanceDesiredPscAutoConnectionsToHclTerraform = exports.memorystoreInstanceDesiredPscAutoConnectionsToTerraform = exports.MemorystoreInstanceStateInfoList = exports.MemorystoreInstanceStateInfoOutputReference = exports.memorystoreInstanceStateInfoToHclTerraform = exports.memorystoreInstanceStateInfoToTerraform = exports.MemorystoreInstanceStateInfoUpdateInfoList = exports.MemorystoreInstanceStateInfoUpdateInfoOutputReference = exports.memorystoreInstanceStateInfoUpdateInfoToHclTerraform = exports.memorystoreInstanceStateInfoUpdateInfoToTerraform = exports.MemorystoreInstancePscAutoConnectionsList = exports.MemorystoreInstancePscAutoConnectionsOutputReference = exports.memorystoreInstancePscAutoConnectionsToHclTerraform = exports.memorystoreInstancePscAutoConnectionsToTerraform = exports.MemorystoreInstanceNodeConfigList = exports.MemorystoreInstanceNodeConfigOutputReference = exports.memorystoreInstanceNodeConfigToHclTerraform = exports.memorystoreInstanceNodeConfigToTerraform = exports.MemorystoreInstanceDiscoveryEndpointsList = exports.MemorystoreInstanceDiscoveryEndpointsOutputReference = exports.memorystoreInstanceDiscoveryEndpointsToHclTerraform = exports.memorystoreInstanceDiscoveryEndpointsToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function memorystoreInstanceDiscoveryEndpointsToTerraform(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.memorystoreInstanceDiscoveryEndpointsToTerraform = memorystoreInstanceDiscoveryEndpointsToTerraform;
function memorystoreInstanceDiscoveryEndpointsToHclTerraform(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.memorystoreInstanceDiscoveryEndpointsToHclTerraform = memorystoreInstanceDiscoveryEndpointsToHclTerraform;
class MemorystoreInstanceDiscoveryEndpointsOutputReference 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');
}
// network - computed: true, optional: false, required: false
get network() {
return this.getStringAttribute('network');
}
// port - computed: true, optional: false, required: false
get port() {
return this.getNumberAttribute('port');
}
}
exports.MemorystoreInstanceDiscoveryEndpointsOutputReference = MemorystoreInstanceDiscoveryEndpointsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
MemorystoreInstanceDiscoveryEndpointsOutputReference[_a] = { fqn: "@cdktf/provider-google.memorystoreInstance.MemorystoreInstanceDiscoveryEndpointsOutputReference", version: "14.12.0" };
class MemorystoreInstanceDiscoveryEndpointsList 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 MemorystoreInstanceDiscoveryEndpointsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.MemorystoreInstanceDiscoveryEndpointsList = MemorystoreInstanceDiscoveryEndpointsList;
_b = JSII_RTTI_SYMBOL_1;
MemorystoreInstanceDiscoveryEndpointsList[_b] = { fqn: "@cdktf/provider-google.memorystoreInstance.MemorystoreInstanceDiscoveryEndpointsList", version: "14.12.0" };
function memorystoreInstanceNodeConfigToTerraform(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.memorystoreInstanceNodeConfigToTerraform = memorystoreInstanceNodeConfigToTerraform;
function memorystoreInstanceNodeConfigToHclTerraform(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.memorystoreInstanceNodeConfigToHclTerraform = memorystoreInstanceNodeConfigToHclTerraform;
class MemorystoreInstanceNodeConfigOutputReference 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;
}
}
// size_gb - computed: true, optional: false, required: false
get sizeGb() {
return this.getNumberAttribute('size_gb');
}
}
exports.MemorystoreInstanceNodeConfigOutputReference = MemorystoreInstanceNodeConfigOutputReference;
_c = JSII_RTTI_SYMBOL_1;
MemorystoreInstanceNodeConfigOutputReference[_c] = { fqn: "@cdktf/provider-google.memorystoreInstance.MemorystoreInstanceNodeConfigOutputReference", version: "14.12.0" };
class MemorystoreInstanceNodeConfigList 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 MemorystoreInstanceNodeConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.MemorystoreInstanceNodeConfigList = MemorystoreInstanceNodeConfigList;
_d = JSII_RTTI_SYMBOL_1;
MemorystoreInstanceNodeConfigList[_d] = { fqn: "@cdktf/provider-google.memorystoreInstance.MemorystoreInstanceNodeConfigList", version: "14.12.0" };
function memorystoreInstancePscAutoConnectionsToTerraform(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.memorystoreInstancePscAutoConnectionsToTerraform = memorystoreInstancePscAutoConnectionsToTerraform;
function memorystoreInstancePscAutoConnectionsToHclTerraform(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.memorystoreInstancePscAutoConnectionsToHclTerraform = memorystoreInstancePscAutoConnectionsToHclTerraform;
class MemorystoreInstancePscAutoConnectionsOutputReference 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;
}
}
// connection_type - computed: true, optional: false, required: false
get connectionType() {
return this.getStringAttribute('connection_type');
}
// forwarding_rule - computed: true, optional: false, required: false
get forwardingRule() {
return this.getStringAttribute('forwarding_rule');
}
// ip_address - computed: true, optional: false, required: false
get ipAddress() {
return this.getStringAttribute('ip_address');
}
// network - computed: true, optional: false, required: false
get network() {
return this.getStringAttribute('network');
}
// port - computed: true, optional: false, required: false
get port() {
return this.getNumberAttribute('port');
}
// 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');
}
// psc_connection_status - computed: true, optional: false, required: false
get pscConnectionStatus() {
return this.getStringAttribute('psc_connection_status');
}
// service_attachment - computed: true, optional: false, required: false
get serviceAttachment() {
return this.getStringAttribute('service_attachment');
}
}
exports.MemorystoreInstancePscAutoConnectionsOutputReference = MemorystoreInstancePscAutoConnectionsOutputReference;
_e = JSII_RTTI_SYMBOL_1;
MemorystoreInstancePscAutoConnectionsOutputReference[_e] = { fqn: "@cdktf/provider-google.memorystoreInstance.MemorystoreInstancePscAutoConnectionsOutputReference", version: "14.12.0" };
class MemorystoreInstancePscAutoConnectionsList 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 MemorystoreInstancePscAutoConnectionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.MemorystoreInstancePscAutoConnectionsList = MemorystoreInstancePscAutoConnectionsList;
_f = JSII_RTTI_SYMBOL_1;
MemorystoreInstancePscAutoConnectionsList[_f] = { fqn: "@cdktf/provider-google.memorystoreInstance.MemorystoreInstancePscAutoConnectionsList", version: "14.12.0" };
function memorystoreInstanceStateInfoUpdateInfoToTerraform(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.memorystoreInstanceStateInfoUpdateInfoToTerraform = memorystoreInstanceStateInfoUpdateInfoToTerraform;
function memorystoreInstanceStateInfoUpdateInfoToHclTerraform(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.memorystoreInstanceStateInfoUpdateInfoToHclTerraform = memorystoreInstanceStateInfoUpdateInfoToHclTerraform;
class MemorystoreInstanceStateInfoUpdateInfoOutputReference 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.MemorystoreInstanceStateInfoUpdateInfoOutputReference = MemorystoreInstanceStateInfoUpdateInfoOutputReference;
_g = JSII_RTTI_SYMBOL_1;
MemorystoreInstanceStateInfoUpdateInfoOutputReference[_g] = { fqn: "@cdktf/provider-google.memorystoreInstance.MemorystoreInstanceStateInfoUpdateInfoOutputReference", version: "14.12.0" };
class MemorystoreInstanceStateInfoUpdateInfoList 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 MemorystoreInstanceStateInfoUpdateInfoOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.MemorystoreInstanceStateInfoUpdateInfoList = MemorystoreInstanceStateInfoUpdateInfoList;
_h = JSII_RTTI_SYMBOL_1;
MemorystoreInstanceStateInfoUpdateInfoList[_h] = { fqn: "@cdktf/provider-google.memorystoreInstance.MemorystoreInstanceStateInfoUpdateInfoList", version: "14.12.0" };
function memorystoreInstanceStateInfoToTerraform(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.memorystoreInstanceStateInfoToTerraform = memorystoreInstanceStateInfoToTerraform;
function memorystoreInstanceStateInfoToHclTerraform(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.memorystoreInstanceStateInfoToHclTerraform = memorystoreInstanceStateInfoToHclTerraform;
class MemorystoreInstanceStateInfoOutputReference 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 MemorystoreInstanceStateInfoUpdateInfoList(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.MemorystoreInstanceStateInfoOutputReference = MemorystoreInstanceStateInfoOutputReference;
_j = JSII_RTTI_SYMBOL_1;
MemorystoreInstanceStateInfoOutputReference[_j] = { fqn: "@cdktf/provider-google.memorystoreInstance.MemorystoreInstanceStateInfoOutputReference", version: "14.12.0" };
class MemorystoreInstanceStateInfoList 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 MemorystoreInstanceStateInfoOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.MemorystoreInstanceStateInfoList = MemorystoreInstanceStateInfoList;
_k = JSII_RTTI_SYMBOL_1;
MemorystoreInstanceStateInfoList[_k] = { fqn: "@cdktf/provider-google.memorystoreInstance.MemorystoreInstanceStateInfoList", version: "14.12.0" };
function memorystoreInstanceDesiredPscAutoConnectionsToTerraform(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),
project_id: cdktf.stringToTerraform(struct.projectId),
};
}
exports.memorystoreInstanceDesiredPscAutoConnectionsToTerraform = memorystoreInstanceDesiredPscAutoConnectionsToTerraform;
function memorystoreInstanceDesiredPscAutoConnectionsToHclTerraform(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",
},
project_id: {
value: cdktf.stringToHclTerraform(struct.projectId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.memorystoreInstanceDesiredPscAutoConnectionsToHclTerraform = memorystoreInstanceDesiredPscAutoConnectionsToHclTerraform;
class MemorystoreInstanceDesiredPscAutoConnectionsOutputReference 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;
}
if (this._projectId !== undefined) {
hasAnyValues = true;
internalValueResult.projectId = this._projectId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._network = undefined;
this._projectId = 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;
this._projectId = value.projectId;
}
}
get network() {
return this.getStringAttribute('network');
}
set network(value) {
this._network = value;
}
// Temporarily expose input value. Use with caution.
get networkInput() {
return this._network;
}
get projectId() {
return this.getStringAttribute('project_id');
}
set projectId(value) {
this._projectId = value;
}
// Temporarily expose input value. Use with caution.
get projectIdInput() {
return this._projectId;
}
}
exports.MemorystoreInstanceDesiredPscAutoConnectionsOutputReference = MemorystoreInstanceDesiredPscAutoConnectionsOutputReference;
_l = JSII_RTTI_SYMBOL_1;
MemorystoreInstanceDesiredPscAutoConnectionsOutputReference[_l] = { fqn: "@cdktf/provider-google.memorystoreInstance.MemorystoreInstanceDesiredPscAutoConnectionsOutputReference", version: "14.12.0" };
class MemorystoreInstanceDesiredPscAutoConnectionsList 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 MemorystoreInstanceDesiredPscAutoConnectionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.MemorystoreInstanceDesiredPscAutoConnectionsList = MemorystoreInstanceDesiredPscAutoConnectionsList;
_m = JSII_RTTI_SYMBOL_1;
MemorystoreInstanceDesiredPscAutoConnectionsList[_m] = { fqn: "@cdktf/provider-google.memorystoreInstance.MemorystoreInstanceDesiredPscAutoConnectionsList", version: "14.12.0" };
function memorystoreInstancePersistenceConfigAofConfigToTerraform(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 {
append_fsync: cdktf.stringToTerraform(struct.appendFsync),
};
}
exports.memorystoreInstancePersistenceConfigAofConfigToTerraform = memorystoreInstancePersistenceConfigAofConfigToTerraform;
function memorystoreInstancePersistenceConfigAofConfigToHclTerraform(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 = {
append_fsync: {
value: cdktf.stringToHclTerraform(struct.appendFsync),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.memorystoreInstancePersistenceConfigAofConfigToHclTerraform = memorystoreInstancePersistenceConfigAofConfigToHclTerraform;
class MemorystoreInstancePersistenceConfigAofConfigOutputReference 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._appendFsync !== undefined) {
hasAnyValues = true;
internalValueResult.appendFsync = this._appendFsync;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._appendFsync = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._appendFsync = value.appendFsync;
}
}
get appendFsync() {
return this.getStringAttribute('append_fsync');
}
set appendFsync(value) {
this._appendFsync = value;
}
resetAppendFsync() {
this._appendFsync = undefined;
}
// Temporarily expose input value. Use with caution.
get appendFsyncInput() {
return this._appendFsync;
}
}
exports.MemorystoreInstancePersistenceConfigAofConfigOutputReference = MemorystoreInstancePersistenceConfigAofConfigOutputReference;
_o = JSII_RTTI_SYMBOL_1;
MemorystoreInstancePersistenceConfigAofConfigOutputReference[_o] = { fqn: "@cdktf/provider-google.memorystoreInstance.MemorystoreInstancePersistenceConfigAofConfigOutputReference", version: "14.12.0" };
function memorystoreInstancePersistenceConfigRdbConfigToTerraform(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 {
rdb_snapshot_period: cdktf.stringToTerraform(struct.rdbSnapshotPeriod),
rdb_snapshot_start_time: cdktf.stringToTerraform(struct.rdbSnapshotStartTime),
};
}
exports.memorystoreInstancePersistenceConfigRdbConfigToTerraform = memorystoreInstancePersistenceConfigRdbConfigToTerraform;
function memorystoreInstancePersistenceConfigRdbConfigToHclTerraform(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 = {
rdb_snapshot_period: {
value: cdktf.stringToHclTerraform(struct.rdbSnapshotPeriod),
isBlock: false,
type: "simple",
storageClassType: "string",
},
rdb_snapshot_start_time: {
value: cdktf.stringToHclTerraform(struct.rdbSnapshotStartTime),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.memorystoreInstancePersistenceConfigRdbConfigToHclTerraform = memorystoreInstancePersistenceConfigRdbConfigToHclTerraform;
class MemorystoreInstancePersistenceConfigRdbConfigOutputReference 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._rdbSnapshotPeriod !== undefined) {
hasAnyValues = true;
internalValueResult.rdbSnapshotPeriod = this._rdbSnapshotPeriod;
}
if (this._rdbSnapshotStartTime !== undefined) {
hasAnyValues = true;
internalValueResult.rdbSnapshotStartTime = this._rdbSnapshotStartTime;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._rdbSnapshotPeriod = undefined;
this._rdbSnapshotStartTime = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._rdbSnapshotPeriod = value.rdbSnapshotPeriod;
this._rdbSnapshotStartTime = value.rdbSnapshotStartTime;
}
}
get rdbSnapshotPeriod() {
return this.getStringAttribute('rdb_snapshot_period');
}
set rdbSnapshotPeriod(value) {
this._rdbSnapshotPeriod = value;
}
resetRdbSnapshotPeriod() {
this._rdbSnapshotPeriod = undefined;
}
// Temporarily expose input value. Use with caution.
get rdbSnapshotPeriodInput() {
return this._rdbSnapshotPeriod;
}
get rdbSnapshotStartTime() {
return this.getStringAttribute('rdb_snapshot_start_time');
}
set rdbSnapshotStartTime(value) {
this._rdbSnapshotStartTime = value;
}
resetRdbSnapshotStartTime() {
this._rdbSnapshotStartTime = undefined;
}
// Temporarily expose input value. Use with caution.
get rdbSnapshotStartTimeInput() {
return this._rdbSnapshotStartTime;
}
}
exports.MemorystoreInstancePersistenceConfigRdbConfigOutputReference = MemorystoreInstancePersistenceConfigRdbConfigOutputReference;
_p = JSII_RTTI_SYMBOL_1;
MemorystoreInstancePersistenceConfigRdbConfigOutputReference[_p] = { fqn: "@cdktf/provider-google.memorystoreInstance.MemorystoreInstancePersistenceConfigRdbConfigOutputReference", version: "14.12.0" };
function memorystoreInstancePersistenceConfigToTerraform(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 {
mode: cdktf.stringToTerraform(struct.mode),
aof_config: memorystoreInstancePersistenceConfigAofConfigToTerraform(struct.aofConfig),
rdb_config: memorystoreInstancePersistenceConfigRdbConfigToTerraform(struct.rdbConfig),
};
}
exports.memorystoreInstancePersistenceConfigToTerraform = memorystoreInstancePersistenceConfigToTerraform;
function memorystoreInstancePersistenceConfigToHclTerraform(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 = {
mode: {
value: cdktf.stringToHclTerraform(struct.mode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
aof_config: {
value: memorystoreInstancePersistenceConfigAofConfigToHclTerraform(struct.aofConfig),
isBlock: true,
type: "list",
storageClassType: "MemorystoreInstancePersistenceConfigAofConfigList",
},
rdb_config: {
value: memorystoreInstancePersistenceConfigRdbConfigToHclTerraform(struct.rdbConfig),
isBlock: true,
type: "list",
storageClassType: "MemorystoreInstancePersistenceConfigRdbConfigList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.memorystoreInstancePersistenceConfigToHclTerraform = memorystoreInstancePersistenceConfigToHclTerraform;
class MemorystoreInstancePersistenceConfigOutputReference 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;
// aof_config - computed: false, optional: true, required: false
this._aofConfig = new MemorystoreInstancePersistenceConfigAofConfigOutputReference(this, "aof_config");
// rdb_config - computed: false, optional: true, required: false
this._rdbConfig = new MemorystoreInstancePersistenceConfigRdbConfigOutputReference(this, "rdb_config");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._mode !== undefined) {
hasAnyValues = true;
internalValueResult.mode = this._mode;
}
if (this._aofConfig?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.aofConfig = this._aofConfig?.internalValue;
}
if (this._rdbConfig?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.rdbConfig = this._rdbConfig?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._mode = undefined;
this._aofConfig.internalValue = undefined;
this._rdbConfig.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._mode = value.mode;
this._aofConfig.internalValue = value.aofConfig;
this._rdbConfig.internalValue = value.rdbConfig;
}
}
get mode() {
return this.getStringAttribute('mode');
}
set mode(value) {
this._mode = value;
}
resetMode() {
this._mode = undefined;
}
// Temporarily expose input value. Use with caution.
get modeInput() {
return this._mode;
}
get aofConfig() {
return this._aofConfig;
}
putAofConfig(value) {
this._aofConfig.internalValue = value;
}
resetAofConfig() {
this._aofConfig.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get aofConfigInput() {
return this._aofConfig.internalValue;
}
get rdbConfig() {
return this._rdbConfig;
}
putRdbConfig(value) {
this._rdbConfig.internalValue = value;
}
resetRdbConfig() {
this._rdbConfig.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get rdbConfigInput() {
return this._rdbConfig.internalValue;
}
}
exports.MemorystoreInstancePersistenceConfigOutputReference = MemorystoreInstancePersistenceConfigOutputReference;
_q = JSII_RTTI_SYMBOL_1;
MemorystoreInstancePersistenceConfigOutputReference[_q] = { fqn: "@cdktf/provider-google.memorystoreInstance.MemorystoreInstancePersistenceConfigOutputReference", version: "14.12.0" };
function memorystoreInstanceTimeoutsToTerraform(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.memorystoreInstanceTimeoutsToTerraform = memorystoreInstanceTimeoutsToTerraform;
function memorystoreInstanceTimeoutsToHclTerraform(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.memorystoreInstanceTimeoutsToHclTerraform = memorystoreInstanceTimeoutsToHclTerraform;
class MemorystoreInstanceTimeoutsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._create !== undefined) {
hasAnyValues = true;
internalValueResult.create = this._create;
}
if (this._delete !== undefined) {
hasAnyValues = true;
internalValueResult.delete = this._delete;
}
if (this._update !== undefined) {
hasAnyValues = true;
internalValueResult.update = this._update;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._create = undefined;
this._delete = undefined;
this._update = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._create = value.create;
this._delete = value.delete;
this._update = value.update;
}
}
get create() {
return this.getStringAttribute('create');
}
set create(value) {
this._create = value;
}
resetCreate() {
this._create = undefined;
}
// Temporarily expose input value. Use with caution.
get createInput() {
return this._create;
}
get delete() {
return this.getStringAttribute('delete');
}
set delete(value) {
this._delete = value;
}
resetDelete() {
this._delete = undefined;
}
// Temporarily expose input value. Use with caution.
get deleteInput() {
return this._delete;
}
get update() {
return this.getStringAttribute('update');
}
set update(value) {
this._update = value;
}
resetUpdate() {
this._update = undefined;
}
// Temporarily expose input value. Use with caution.
get updateInput() {
return this._update;
}
}
exports.MemorystoreInstanceTimeoutsOutputReference = MemorystoreInstanceTimeoutsOutputReference;
_r = JSII_RTTI_SYMBOL_1;
MemorystoreInstanceTimeoutsOutputReference[_r] = { fqn: "@cdktf/provider-google.memorystoreInstance.MemorystoreInstanceTimeoutsOutputReference", version: "14.12.0" };
function memorystoreInstanceZoneDistributionConfigToTerraform(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 {
mode: cdktf.stringToTerraform(struct.mode),
zone: cdktf.stringToTerraform(struct.zone),
};
}
exports.memorystoreInstanceZoneDistributionConfigToTerraform = memorystoreInstanceZoneDistributionConfigToTerraform;
function memorystoreInstanceZoneDistributionConfigToHclTerraform(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 = {
mode: {
value: cdktf.stringToHclTerraform(struct.mode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
zone: {
value: cdktf.stringToHclTerraform(struct.zone),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.memorystoreInstanceZoneDistributionConfigToHclTerraform = memorystoreInstanceZoneDistributionConfigToHclTerraform;
class MemorystoreInstanceZoneDistributionConfigOutputReference 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._mode !== undefined) {
hasAnyValues = true;
internalValueResult.mode = this._mode;
}
if (this._zone !== undefined) {
hasAnyValues = true;
internalValueResult.zone = this._zone;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._mode = undefined;
this._zone = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._mode = value.mode;
this._zone = value.zone;
}
}
get mode() {
return this.getStringAttribute('mode');
}
set mode(value) {
this._mode = value;
}
resetMode() {
this._mode = undefined;
}
// Temporarily expose input value. Use with caution.
get modeInput() {
return this._mode;
}
get zone() {
return this.getStringAttribute('zone');
}
set zone(value) {
this._zone = value;
}
resetZone() {
this._zone = undefined;
}
// Temporarily expose input value. Use with caution.
get zoneInput() {