@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
921 lines • 158 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.DataGoogleAlloydbInstance = exports.DataGoogleAlloydbInstanceReadPoolConfigList = exports.DataGoogleAlloydbInstanceReadPoolConfigOutputReference = exports.DataGoogleAlloydbInstanceQueryInsightsConfigList = exports.DataGoogleAlloydbInstanceQueryInsightsConfigOutputReference = exports.DataGoogleAlloydbInstancePscInstanceConfigList = exports.DataGoogleAlloydbInstancePscInstanceConfigOutputReference = exports.DataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsList = exports.DataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsOutputReference = exports.DataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsList = exports.DataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsOutputReference = exports.DataGoogleAlloydbInstanceNetworkConfigList = exports.DataGoogleAlloydbInstanceNetworkConfigOutputReference = exports.DataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksList = exports.DataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksOutputReference = exports.DataGoogleAlloydbInstanceMachineConfigList = exports.DataGoogleAlloydbInstanceMachineConfigOutputReference = exports.DataGoogleAlloydbInstanceClientConnectionConfigList = exports.DataGoogleAlloydbInstanceClientConnectionConfigOutputReference = exports.DataGoogleAlloydbInstanceClientConnectionConfigSslConfigList = exports.DataGoogleAlloydbInstanceClientConnectionConfigSslConfigOutputReference = void 0;
exports.dataGoogleAlloydbInstanceClientConnectionConfigSslConfigToTerraform = dataGoogleAlloydbInstanceClientConnectionConfigSslConfigToTerraform;
exports.dataGoogleAlloydbInstanceClientConnectionConfigSslConfigToHclTerraform = dataGoogleAlloydbInstanceClientConnectionConfigSslConfigToHclTerraform;
exports.dataGoogleAlloydbInstanceClientConnectionConfigToTerraform = dataGoogleAlloydbInstanceClientConnectionConfigToTerraform;
exports.dataGoogleAlloydbInstanceClientConnectionConfigToHclTerraform = dataGoogleAlloydbInstanceClientConnectionConfigToHclTerraform;
exports.dataGoogleAlloydbInstanceMachineConfigToTerraform = dataGoogleAlloydbInstanceMachineConfigToTerraform;
exports.dataGoogleAlloydbInstanceMachineConfigToHclTerraform = dataGoogleAlloydbInstanceMachineConfigToHclTerraform;
exports.dataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksToTerraform = dataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksToTerraform;
exports.dataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksToHclTerraform = dataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksToHclTerraform;
exports.dataGoogleAlloydbInstanceNetworkConfigToTerraform = dataGoogleAlloydbInstanceNetworkConfigToTerraform;
exports.dataGoogleAlloydbInstanceNetworkConfigToHclTerraform = dataGoogleAlloydbInstanceNetworkConfigToHclTerraform;
exports.dataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsToTerraform = dataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsToTerraform;
exports.dataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsToHclTerraform = dataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsToHclTerraform;
exports.dataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsToTerraform = dataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsToTerraform;
exports.dataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsToHclTerraform = dataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsToHclTerraform;
exports.dataGoogleAlloydbInstancePscInstanceConfigToTerraform = dataGoogleAlloydbInstancePscInstanceConfigToTerraform;
exports.dataGoogleAlloydbInstancePscInstanceConfigToHclTerraform = dataGoogleAlloydbInstancePscInstanceConfigToHclTerraform;
exports.dataGoogleAlloydbInstanceQueryInsightsConfigToTerraform = dataGoogleAlloydbInstanceQueryInsightsConfigToTerraform;
exports.dataGoogleAlloydbInstanceQueryInsightsConfigToHclTerraform = dataGoogleAlloydbInstanceQueryInsightsConfigToHclTerraform;
exports.dataGoogleAlloydbInstanceReadPoolConfigToTerraform = dataGoogleAlloydbInstanceReadPoolConfigToTerraform;
exports.dataGoogleAlloydbInstanceReadPoolConfigToHclTerraform = dataGoogleAlloydbInstanceReadPoolConfigToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataGoogleAlloydbInstanceClientConnectionConfigSslConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
function dataGoogleAlloydbInstanceClientConnectionConfigSslConfigToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class DataGoogleAlloydbInstanceClientConnectionConfigSslConfigOutputReference 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;
}
}
// ssl_mode - computed: true, optional: false, required: false
get sslMode() {
return this.getStringAttribute('ssl_mode');
}
}
exports.DataGoogleAlloydbInstanceClientConnectionConfigSslConfigOutputReference = DataGoogleAlloydbInstanceClientConnectionConfigSslConfigOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstanceClientConnectionConfigSslConfigOutputReference[_a] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstanceClientConnectionConfigSslConfigOutputReference", version: "14.35.1" };
class DataGoogleAlloydbInstanceClientConnectionConfigSslConfigList 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 DataGoogleAlloydbInstanceClientConnectionConfigSslConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleAlloydbInstanceClientConnectionConfigSslConfigList = DataGoogleAlloydbInstanceClientConnectionConfigSslConfigList;
_b = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstanceClientConnectionConfigSslConfigList[_b] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstanceClientConnectionConfigSslConfigList", version: "14.35.1" };
function dataGoogleAlloydbInstanceClientConnectionConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
function dataGoogleAlloydbInstanceClientConnectionConfigToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class DataGoogleAlloydbInstanceClientConnectionConfigOutputReference 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;
// ssl_config - computed: true, optional: false, required: false
this._sslConfig = new DataGoogleAlloydbInstanceClientConnectionConfigSslConfigList(this, "ssl_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;
}
}
// require_connectors - computed: true, optional: false, required: false
get requireConnectors() {
return this.getBooleanAttribute('require_connectors');
}
get sslConfig() {
return this._sslConfig;
}
}
exports.DataGoogleAlloydbInstanceClientConnectionConfigOutputReference = DataGoogleAlloydbInstanceClientConnectionConfigOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstanceClientConnectionConfigOutputReference[_c] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstanceClientConnectionConfigOutputReference", version: "14.35.1" };
class DataGoogleAlloydbInstanceClientConnectionConfigList 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 DataGoogleAlloydbInstanceClientConnectionConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleAlloydbInstanceClientConnectionConfigList = DataGoogleAlloydbInstanceClientConnectionConfigList;
_d = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstanceClientConnectionConfigList[_d] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstanceClientConnectionConfigList", version: "14.35.1" };
function dataGoogleAlloydbInstanceMachineConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
function dataGoogleAlloydbInstanceMachineConfigToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class DataGoogleAlloydbInstanceMachineConfigOutputReference 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;
}
}
// cpu_count - computed: true, optional: false, required: false
get cpuCount() {
return this.getNumberAttribute('cpu_count');
}
// machine_type - computed: true, optional: false, required: false
get machineType() {
return this.getStringAttribute('machine_type');
}
}
exports.DataGoogleAlloydbInstanceMachineConfigOutputReference = DataGoogleAlloydbInstanceMachineConfigOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstanceMachineConfigOutputReference[_e] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstanceMachineConfigOutputReference", version: "14.35.1" };
class DataGoogleAlloydbInstanceMachineConfigList 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 DataGoogleAlloydbInstanceMachineConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleAlloydbInstanceMachineConfigList = DataGoogleAlloydbInstanceMachineConfigList;
_f = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstanceMachineConfigList[_f] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstanceMachineConfigList", version: "14.35.1" };
function dataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
function dataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class DataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksOutputReference 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;
}
}
// cidr_range - computed: true, optional: false, required: false
get cidrRange() {
return this.getStringAttribute('cidr_range');
}
}
exports.DataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksOutputReference = DataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksOutputReference[_g] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksOutputReference", version: "14.35.1" };
class DataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksList 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 DataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksList = DataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksList;
_h = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksList[_h] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksList", version: "14.35.1" };
function dataGoogleAlloydbInstanceNetworkConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
function dataGoogleAlloydbInstanceNetworkConfigToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class DataGoogleAlloydbInstanceNetworkConfigOutputReference 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;
// authorized_external_networks - computed: true, optional: false, required: false
this._authorizedExternalNetworks = new DataGoogleAlloydbInstanceNetworkConfigAuthorizedExternalNetworksList(this, "authorized_external_networks", 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 authorizedExternalNetworks() {
return this._authorizedExternalNetworks;
}
// enable_outbound_public_ip - computed: true, optional: false, required: false
get enableOutboundPublicIp() {
return this.getBooleanAttribute('enable_outbound_public_ip');
}
// enable_public_ip - computed: true, optional: false, required: false
get enablePublicIp() {
return this.getBooleanAttribute('enable_public_ip');
}
}
exports.DataGoogleAlloydbInstanceNetworkConfigOutputReference = DataGoogleAlloydbInstanceNetworkConfigOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstanceNetworkConfigOutputReference[_j] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstanceNetworkConfigOutputReference", version: "14.35.1" };
class DataGoogleAlloydbInstanceNetworkConfigList 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 DataGoogleAlloydbInstanceNetworkConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleAlloydbInstanceNetworkConfigList = DataGoogleAlloydbInstanceNetworkConfigList;
_k = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstanceNetworkConfigList[_k] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstanceNetworkConfigList", version: "14.35.1" };
function dataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
function dataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class DataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsOutputReference 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;
}
}
// consumer_network - computed: true, optional: false, required: false
get consumerNetwork() {
return this.getStringAttribute('consumer_network');
}
// consumer_network_status - computed: true, optional: false, required: false
get consumerNetworkStatus() {
return this.getStringAttribute('consumer_network_status');
}
// consumer_project - computed: true, optional: false, required: false
get consumerProject() {
return this.getStringAttribute('consumer_project');
}
// ip_address - computed: true, optional: false, required: false
get ipAddress() {
return this.getStringAttribute('ip_address');
}
// status - computed: true, optional: false, required: false
get status() {
return this.getStringAttribute('status');
}
}
exports.DataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsOutputReference = DataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsOutputReference;
_l = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsOutputReference[_l] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsOutputReference", version: "14.35.1" };
class DataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsList 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 DataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsList = DataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsList;
_m = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsList[_m] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsList", version: "14.35.1" };
function dataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
function dataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class DataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsOutputReference 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_attachment_resource - computed: true, optional: false, required: false
get networkAttachmentResource() {
return this.getStringAttribute('network_attachment_resource');
}
}
exports.DataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsOutputReference = DataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsOutputReference;
_o = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsOutputReference[_o] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsOutputReference", version: "14.35.1" };
class DataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsList 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 DataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsList = DataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsList;
_p = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsList[_p] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsList", version: "14.35.1" };
function dataGoogleAlloydbInstancePscInstanceConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
function dataGoogleAlloydbInstancePscInstanceConfigToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class DataGoogleAlloydbInstancePscInstanceConfigOutputReference 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_auto_connections - computed: true, optional: false, required: false
this._pscAutoConnections = new DataGoogleAlloydbInstancePscInstanceConfigPscAutoConnectionsList(this, "psc_auto_connections", false);
// psc_interface_configs - computed: true, optional: false, required: false
this._pscInterfaceConfigs = new DataGoogleAlloydbInstancePscInstanceConfigPscInterfaceConfigsList(this, "psc_interface_configs", 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;
}
}
// allowed_consumer_projects - computed: true, optional: false, required: false
get allowedConsumerProjects() {
return this.getListAttribute('allowed_consumer_projects');
}
get pscAutoConnections() {
return this._pscAutoConnections;
}
// psc_dns_name - computed: true, optional: false, required: false
get pscDnsName() {
return this.getStringAttribute('psc_dns_name');
}
get pscInterfaceConfigs() {
return this._pscInterfaceConfigs;
}
// service_attachment_link - computed: true, optional: false, required: false
get serviceAttachmentLink() {
return this.getStringAttribute('service_attachment_link');
}
}
exports.DataGoogleAlloydbInstancePscInstanceConfigOutputReference = DataGoogleAlloydbInstancePscInstanceConfigOutputReference;
_q = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstancePscInstanceConfigOutputReference[_q] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstancePscInstanceConfigOutputReference", version: "14.35.1" };
class DataGoogleAlloydbInstancePscInstanceConfigList 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 DataGoogleAlloydbInstancePscInstanceConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleAlloydbInstancePscInstanceConfigList = DataGoogleAlloydbInstancePscInstanceConfigList;
_r = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstancePscInstanceConfigList[_r] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstancePscInstanceConfigList", version: "14.35.1" };
function dataGoogleAlloydbInstanceQueryInsightsConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
function dataGoogleAlloydbInstanceQueryInsightsConfigToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class DataGoogleAlloydbInstanceQueryInsightsConfigOutputReference 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;
}
}
// query_plans_per_minute - computed: true, optional: false, required: false
get queryPlansPerMinute() {
return this.getNumberAttribute('query_plans_per_minute');
}
// query_string_length - computed: true, optional: false, required: false
get queryStringLength() {
return this.getNumberAttribute('query_string_length');
}
// record_application_tags - computed: true, optional: false, required: false
get recordApplicationTags() {
return this.getBooleanAttribute('record_application_tags');
}
// record_client_address - computed: true, optional: false, required: false
get recordClientAddress() {
return this.getBooleanAttribute('record_client_address');
}
}
exports.DataGoogleAlloydbInstanceQueryInsightsConfigOutputReference = DataGoogleAlloydbInstanceQueryInsightsConfigOutputReference;
_s = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstanceQueryInsightsConfigOutputReference[_s] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstanceQueryInsightsConfigOutputReference", version: "14.35.1" };
class DataGoogleAlloydbInstanceQueryInsightsConfigList 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 DataGoogleAlloydbInstanceQueryInsightsConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleAlloydbInstanceQueryInsightsConfigList = DataGoogleAlloydbInstanceQueryInsightsConfigList;
_t = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstanceQueryInsightsConfigList[_t] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstanceQueryInsightsConfigList", version: "14.35.1" };
function dataGoogleAlloydbInstanceReadPoolConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
function dataGoogleAlloydbInstanceReadPoolConfigToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class DataGoogleAlloydbInstanceReadPoolConfigOutputReference 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;
}
}
// node_count - computed: true, optional: false, required: false
get nodeCount() {
return this.getNumberAttribute('node_count');
}
}
exports.DataGoogleAlloydbInstanceReadPoolConfigOutputReference = DataGoogleAlloydbInstanceReadPoolConfigOutputReference;
_u = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstanceReadPoolConfigOutputReference[_u] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstanceReadPoolConfigOutputReference", version: "14.35.1" };
class DataGoogleAlloydbInstanceReadPoolConfigList 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 DataGoogleAlloydbInstanceReadPoolConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleAlloydbInstanceReadPoolConfigList = DataGoogleAlloydbInstanceReadPoolConfigList;
_v = JSII_RTTI_SYMBOL_1;
DataGoogleAlloydbInstanceReadPoolConfigList[_v] = { fqn: "@cdktf/provider-google.dataGoogleAlloydbInstance.DataGoogleAlloydbInstanceReadPoolConfigList", version: "14.35.1" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.36.1/docs/data-sources/alloydb_instance google_alloydb_instance}
*/
class DataGoogleAlloydbInstance extends cdktf.TerraformDataSource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a DataGoogleAlloydbInstance resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the DataGoogleAlloydbInstance to import
* @param importFromId The id of the existing DataGoogleAlloydbInstance that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.36.1/docs/data-sources/alloydb_instance#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the DataGoogleAlloydbInstance to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "google_alloydb_instance", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.36.1/docs/data-sources/alloydb_instance google_alloydb_instance} Data Source
*
* @param scope The scope in which to define this construct
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
* @param options DataGoogleAlloydbInstanceConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'google_alloydb_instance',
terraformGeneratorMetadata: {
providerName: 'google',
providerVersion: '6.36.1',
providerVersionConstraint: '~> 6.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle,
provisioners: config.provisioners,
connection: config.connection,
forEach: config.forEach
});
// ==========
// ATTRIBUTES
// ==========
// annotations - computed: true, optional: false, required: false
this._annotations = new cdktf.StringMap(this, "annotations");
// client_connection_config - computed: true, optional: false, required: false
this._clientConnectionConfig = new DataGoogleAlloydbInstanceClientConnectionConfigList(this, "client_connection_config", false);
// database_flags - computed: true, optional: false, required: false
this._databaseFlags = new cdktf.StringMap(this, "database_flags");
// effective_annotations - computed: true, optional: false, required: false
this._effectiveAnnotations = new cdktf.StringMap(this, "effective_annotations");
// effective_labels - computed: true, optional: false, required: false
this._effectiveLabels = new cdktf.StringMap(this, "effective_labels");
// labels - computed: true, optional: false, required: false
this._labels = new cdktf.StringMap(this, "labels");
// machine_config - computed: true, optional: false, required: false
this._machineConfig = new DataGoogleAlloydbInstanceMachineConfigList(this, "machine_config", false);
// network_config - computed: true, optional: false, required: false
this._networkConfig = new DataGoogleAlloydbInstanceNetworkConfigList(this, "network_config", false);
// psc_instance_config - computed: true, optional: false, required: false
this._pscInstanceConfig = new DataGoogleAlloydbInstancePscInstanceConfigList(this, "psc_instance_config", false);
// query_insights_config - computed: true, optional: false, required: false
this._queryInsightsConfig = new DataGoogleAlloydbInstanceQueryInsightsConfigList(this, "query_insights_config", false);
// read_pool_config - computed: true, optional: false, required: false
this._readPoolConfig = new DataGoogleAlloydbInstanceReadPoolConfigList(this, "read_pool_config", false);
// terraform_labels - computed: true, optional: false, required: false
this._terraformLabels = new cdktf.StringMap(this, "terraform_labels");
this._clusterId = config.clusterId;
this._id = config.id;
this._instanceId = config.instanceId;
this._location = config.location;
this._project = config.project;
}
get annotations() {
return this._annotations;
}
// availability_type - computed: true, optional: false, required: false
get availabilityType() {
return this.getStringAttribute('availability_type');
}
get clientConnectionConfig() {
return this._clientConnectionConfig;
}
// cluster - computed: true, optional: false, required: false
get cluster() {
return this.getStringAttribute('cluster');
}
get clusterId() {
return this.getStringAttribute('cluster_id');
}
set clusterId(value) {
this._clusterId = value;
}
// Temporarily expose input value. Use with caution.
get clusterIdInput() {
return this._clusterId;
}
// create_time - computed: t