@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
962 lines • 148 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.DataGoogleFilestoreInstance = exports.DataGoogleFilestoreInstancePerformanceConfigList = exports.DataGoogleFilestoreInstancePerformanceConfigOutputReference = exports.DataGoogleFilestoreInstancePerformanceConfigIopsPerTbList = exports.DataGoogleFilestoreInstancePerformanceConfigIopsPerTbOutputReference = exports.DataGoogleFilestoreInstancePerformanceConfigFixedIopsList = exports.DataGoogleFilestoreInstancePerformanceConfigFixedIopsOutputReference = exports.DataGoogleFilestoreInstanceNetworksList = exports.DataGoogleFilestoreInstanceNetworksOutputReference = exports.DataGoogleFilestoreInstanceInitialReplicationList = exports.DataGoogleFilestoreInstanceInitialReplicationOutputReference = exports.DataGoogleFilestoreInstanceInitialReplicationReplicasList = exports.DataGoogleFilestoreInstanceInitialReplicationReplicasOutputReference = exports.DataGoogleFilestoreInstanceFileSharesList = exports.DataGoogleFilestoreInstanceFileSharesOutputReference = exports.DataGoogleFilestoreInstanceFileSharesNfsExportOptionsList = exports.DataGoogleFilestoreInstanceFileSharesNfsExportOptionsOutputReference = exports.DataGoogleFilestoreInstanceEffectiveReplicationList = exports.DataGoogleFilestoreInstanceEffectiveReplicationOutputReference = exports.DataGoogleFilestoreInstanceEffectiveReplicationReplicasList = exports.DataGoogleFilestoreInstanceEffectiveReplicationReplicasOutputReference = void 0;
exports.dataGoogleFilestoreInstanceEffectiveReplicationReplicasToTerraform = dataGoogleFilestoreInstanceEffectiveReplicationReplicasToTerraform;
exports.dataGoogleFilestoreInstanceEffectiveReplicationReplicasToHclTerraform = dataGoogleFilestoreInstanceEffectiveReplicationReplicasToHclTerraform;
exports.dataGoogleFilestoreInstanceEffectiveReplicationToTerraform = dataGoogleFilestoreInstanceEffectiveReplicationToTerraform;
exports.dataGoogleFilestoreInstanceEffectiveReplicationToHclTerraform = dataGoogleFilestoreInstanceEffectiveReplicationToHclTerraform;
exports.dataGoogleFilestoreInstanceFileSharesNfsExportOptionsToTerraform = dataGoogleFilestoreInstanceFileSharesNfsExportOptionsToTerraform;
exports.dataGoogleFilestoreInstanceFileSharesNfsExportOptionsToHclTerraform = dataGoogleFilestoreInstanceFileSharesNfsExportOptionsToHclTerraform;
exports.dataGoogleFilestoreInstanceFileSharesToTerraform = dataGoogleFilestoreInstanceFileSharesToTerraform;
exports.dataGoogleFilestoreInstanceFileSharesToHclTerraform = dataGoogleFilestoreInstanceFileSharesToHclTerraform;
exports.dataGoogleFilestoreInstanceInitialReplicationReplicasToTerraform = dataGoogleFilestoreInstanceInitialReplicationReplicasToTerraform;
exports.dataGoogleFilestoreInstanceInitialReplicationReplicasToHclTerraform = dataGoogleFilestoreInstanceInitialReplicationReplicasToHclTerraform;
exports.dataGoogleFilestoreInstanceInitialReplicationToTerraform = dataGoogleFilestoreInstanceInitialReplicationToTerraform;
exports.dataGoogleFilestoreInstanceInitialReplicationToHclTerraform = dataGoogleFilestoreInstanceInitialReplicationToHclTerraform;
exports.dataGoogleFilestoreInstanceNetworksToTerraform = dataGoogleFilestoreInstanceNetworksToTerraform;
exports.dataGoogleFilestoreInstanceNetworksToHclTerraform = dataGoogleFilestoreInstanceNetworksToHclTerraform;
exports.dataGoogleFilestoreInstancePerformanceConfigFixedIopsToTerraform = dataGoogleFilestoreInstancePerformanceConfigFixedIopsToTerraform;
exports.dataGoogleFilestoreInstancePerformanceConfigFixedIopsToHclTerraform = dataGoogleFilestoreInstancePerformanceConfigFixedIopsToHclTerraform;
exports.dataGoogleFilestoreInstancePerformanceConfigIopsPerTbToTerraform = dataGoogleFilestoreInstancePerformanceConfigIopsPerTbToTerraform;
exports.dataGoogleFilestoreInstancePerformanceConfigIopsPerTbToHclTerraform = dataGoogleFilestoreInstancePerformanceConfigIopsPerTbToHclTerraform;
exports.dataGoogleFilestoreInstancePerformanceConfigToTerraform = dataGoogleFilestoreInstancePerformanceConfigToTerraform;
exports.dataGoogleFilestoreInstancePerformanceConfigToHclTerraform = dataGoogleFilestoreInstancePerformanceConfigToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataGoogleFilestoreInstanceEffectiveReplicationReplicasToTerraform(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 dataGoogleFilestoreInstanceEffectiveReplicationReplicasToHclTerraform(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 DataGoogleFilestoreInstanceEffectiveReplicationReplicasOutputReference 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;
}
}
// last_active_sync_time - computed: true, optional: false, required: false
get lastActiveSyncTime() {
return this.getStringAttribute('last_active_sync_time');
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
// state_reasons - computed: true, optional: false, required: false
get stateReasons() {
return this.getListAttribute('state_reasons');
}
}
exports.DataGoogleFilestoreInstanceEffectiveReplicationReplicasOutputReference = DataGoogleFilestoreInstanceEffectiveReplicationReplicasOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstanceEffectiveReplicationReplicasOutputReference[_a] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstanceEffectiveReplicationReplicasOutputReference", version: "14.35.0" };
class DataGoogleFilestoreInstanceEffectiveReplicationReplicasList 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 DataGoogleFilestoreInstanceEffectiveReplicationReplicasOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleFilestoreInstanceEffectiveReplicationReplicasList = DataGoogleFilestoreInstanceEffectiveReplicationReplicasList;
_b = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstanceEffectiveReplicationReplicasList[_b] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstanceEffectiveReplicationReplicasList", version: "14.35.0" };
function dataGoogleFilestoreInstanceEffectiveReplicationToTerraform(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 dataGoogleFilestoreInstanceEffectiveReplicationToHclTerraform(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 DataGoogleFilestoreInstanceEffectiveReplicationOutputReference 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;
// replicas - computed: true, optional: false, required: false
this._replicas = new DataGoogleFilestoreInstanceEffectiveReplicationReplicasList(this, "replicas", 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 replicas() {
return this._replicas;
}
}
exports.DataGoogleFilestoreInstanceEffectiveReplicationOutputReference = DataGoogleFilestoreInstanceEffectiveReplicationOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstanceEffectiveReplicationOutputReference[_c] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstanceEffectiveReplicationOutputReference", version: "14.35.0" };
class DataGoogleFilestoreInstanceEffectiveReplicationList 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 DataGoogleFilestoreInstanceEffectiveReplicationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleFilestoreInstanceEffectiveReplicationList = DataGoogleFilestoreInstanceEffectiveReplicationList;
_d = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstanceEffectiveReplicationList[_d] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstanceEffectiveReplicationList", version: "14.35.0" };
function dataGoogleFilestoreInstanceFileSharesNfsExportOptionsToTerraform(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 dataGoogleFilestoreInstanceFileSharesNfsExportOptionsToHclTerraform(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 DataGoogleFilestoreInstanceFileSharesNfsExportOptionsOutputReference 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;
}
}
// access_mode - computed: true, optional: false, required: false
get accessMode() {
return this.getStringAttribute('access_mode');
}
// anon_gid - computed: true, optional: false, required: false
get anonGid() {
return this.getNumberAttribute('anon_gid');
}
// anon_uid - computed: true, optional: false, required: false
get anonUid() {
return this.getNumberAttribute('anon_uid');
}
// ip_ranges - computed: true, optional: false, required: false
get ipRanges() {
return this.getListAttribute('ip_ranges');
}
// squash_mode - computed: true, optional: false, required: false
get squashMode() {
return this.getStringAttribute('squash_mode');
}
}
exports.DataGoogleFilestoreInstanceFileSharesNfsExportOptionsOutputReference = DataGoogleFilestoreInstanceFileSharesNfsExportOptionsOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstanceFileSharesNfsExportOptionsOutputReference[_e] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstanceFileSharesNfsExportOptionsOutputReference", version: "14.35.0" };
class DataGoogleFilestoreInstanceFileSharesNfsExportOptionsList 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 DataGoogleFilestoreInstanceFileSharesNfsExportOptionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleFilestoreInstanceFileSharesNfsExportOptionsList = DataGoogleFilestoreInstanceFileSharesNfsExportOptionsList;
_f = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstanceFileSharesNfsExportOptionsList[_f] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstanceFileSharesNfsExportOptionsList", version: "14.35.0" };
function dataGoogleFilestoreInstanceFileSharesToTerraform(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 dataGoogleFilestoreInstanceFileSharesToHclTerraform(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 DataGoogleFilestoreInstanceFileSharesOutputReference 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;
// nfs_export_options - computed: true, optional: false, required: false
this._nfsExportOptions = new DataGoogleFilestoreInstanceFileSharesNfsExportOptionsList(this, "nfs_export_options", 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;
}
}
// capacity_gb - computed: true, optional: false, required: false
get capacityGb() {
return this.getNumberAttribute('capacity_gb');
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
get nfsExportOptions() {
return this._nfsExportOptions;
}
// source_backup - computed: true, optional: false, required: false
get sourceBackup() {
return this.getStringAttribute('source_backup');
}
}
exports.DataGoogleFilestoreInstanceFileSharesOutputReference = DataGoogleFilestoreInstanceFileSharesOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstanceFileSharesOutputReference[_g] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstanceFileSharesOutputReference", version: "14.35.0" };
class DataGoogleFilestoreInstanceFileSharesList 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 DataGoogleFilestoreInstanceFileSharesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleFilestoreInstanceFileSharesList = DataGoogleFilestoreInstanceFileSharesList;
_h = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstanceFileSharesList[_h] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstanceFileSharesList", version: "14.35.0" };
function dataGoogleFilestoreInstanceInitialReplicationReplicasToTerraform(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 dataGoogleFilestoreInstanceInitialReplicationReplicasToHclTerraform(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 DataGoogleFilestoreInstanceInitialReplicationReplicasOutputReference 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;
}
}
// peer_instance - computed: true, optional: false, required: false
get peerInstance() {
return this.getStringAttribute('peer_instance');
}
}
exports.DataGoogleFilestoreInstanceInitialReplicationReplicasOutputReference = DataGoogleFilestoreInstanceInitialReplicationReplicasOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstanceInitialReplicationReplicasOutputReference[_j] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstanceInitialReplicationReplicasOutputReference", version: "14.35.0" };
class DataGoogleFilestoreInstanceInitialReplicationReplicasList 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 DataGoogleFilestoreInstanceInitialReplicationReplicasOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleFilestoreInstanceInitialReplicationReplicasList = DataGoogleFilestoreInstanceInitialReplicationReplicasList;
_k = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstanceInitialReplicationReplicasList[_k] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstanceInitialReplicationReplicasList", version: "14.35.0" };
function dataGoogleFilestoreInstanceInitialReplicationToTerraform(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 dataGoogleFilestoreInstanceInitialReplicationToHclTerraform(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 DataGoogleFilestoreInstanceInitialReplicationOutputReference 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;
// replicas - computed: true, optional: false, required: false
this._replicas = new DataGoogleFilestoreInstanceInitialReplicationReplicasList(this, "replicas", 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 replicas() {
return this._replicas;
}
// role - computed: true, optional: false, required: false
get role() {
return this.getStringAttribute('role');
}
}
exports.DataGoogleFilestoreInstanceInitialReplicationOutputReference = DataGoogleFilestoreInstanceInitialReplicationOutputReference;
_l = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstanceInitialReplicationOutputReference[_l] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstanceInitialReplicationOutputReference", version: "14.35.0" };
class DataGoogleFilestoreInstanceInitialReplicationList 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 DataGoogleFilestoreInstanceInitialReplicationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleFilestoreInstanceInitialReplicationList = DataGoogleFilestoreInstanceInitialReplicationList;
_m = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstanceInitialReplicationList[_m] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstanceInitialReplicationList", version: "14.35.0" };
function dataGoogleFilestoreInstanceNetworksToTerraform(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 dataGoogleFilestoreInstanceNetworksToHclTerraform(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 DataGoogleFilestoreInstanceNetworksOutputReference 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;
}
}
// connect_mode - computed: true, optional: false, required: false
get connectMode() {
return this.getStringAttribute('connect_mode');
}
// ip_addresses - computed: true, optional: false, required: false
get ipAddresses() {
return this.getListAttribute('ip_addresses');
}
// modes - computed: true, optional: false, required: false
get modes() {
return this.getListAttribute('modes');
}
// network - computed: true, optional: false, required: false
get network() {
return this.getStringAttribute('network');
}
// reserved_ip_range - computed: true, optional: false, required: false
get reservedIpRange() {
return this.getStringAttribute('reserved_ip_range');
}
}
exports.DataGoogleFilestoreInstanceNetworksOutputReference = DataGoogleFilestoreInstanceNetworksOutputReference;
_o = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstanceNetworksOutputReference[_o] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstanceNetworksOutputReference", version: "14.35.0" };
class DataGoogleFilestoreInstanceNetworksList 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 DataGoogleFilestoreInstanceNetworksOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleFilestoreInstanceNetworksList = DataGoogleFilestoreInstanceNetworksList;
_p = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstanceNetworksList[_p] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstanceNetworksList", version: "14.35.0" };
function dataGoogleFilestoreInstancePerformanceConfigFixedIopsToTerraform(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 dataGoogleFilestoreInstancePerformanceConfigFixedIopsToHclTerraform(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 DataGoogleFilestoreInstancePerformanceConfigFixedIopsOutputReference 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;
}
}
// max_iops - computed: true, optional: false, required: false
get maxIops() {
return this.getNumberAttribute('max_iops');
}
}
exports.DataGoogleFilestoreInstancePerformanceConfigFixedIopsOutputReference = DataGoogleFilestoreInstancePerformanceConfigFixedIopsOutputReference;
_q = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstancePerformanceConfigFixedIopsOutputReference[_q] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstancePerformanceConfigFixedIopsOutputReference", version: "14.35.0" };
class DataGoogleFilestoreInstancePerformanceConfigFixedIopsList 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 DataGoogleFilestoreInstancePerformanceConfigFixedIopsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleFilestoreInstancePerformanceConfigFixedIopsList = DataGoogleFilestoreInstancePerformanceConfigFixedIopsList;
_r = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstancePerformanceConfigFixedIopsList[_r] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstancePerformanceConfigFixedIopsList", version: "14.35.0" };
function dataGoogleFilestoreInstancePerformanceConfigIopsPerTbToTerraform(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 dataGoogleFilestoreInstancePerformanceConfigIopsPerTbToHclTerraform(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 DataGoogleFilestoreInstancePerformanceConfigIopsPerTbOutputReference 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;
}
}
// max_iops_per_tb - computed: true, optional: false, required: false
get maxIopsPerTb() {
return this.getNumberAttribute('max_iops_per_tb');
}
}
exports.DataGoogleFilestoreInstancePerformanceConfigIopsPerTbOutputReference = DataGoogleFilestoreInstancePerformanceConfigIopsPerTbOutputReference;
_s = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstancePerformanceConfigIopsPerTbOutputReference[_s] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstancePerformanceConfigIopsPerTbOutputReference", version: "14.35.0" };
class DataGoogleFilestoreInstancePerformanceConfigIopsPerTbList 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 DataGoogleFilestoreInstancePerformanceConfigIopsPerTbOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleFilestoreInstancePerformanceConfigIopsPerTbList = DataGoogleFilestoreInstancePerformanceConfigIopsPerTbList;
_t = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstancePerformanceConfigIopsPerTbList[_t] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstancePerformanceConfigIopsPerTbList", version: "14.35.0" };
function dataGoogleFilestoreInstancePerformanceConfigToTerraform(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 dataGoogleFilestoreInstancePerformanceConfigToHclTerraform(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 DataGoogleFilestoreInstancePerformanceConfigOutputReference 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;
// fixed_iops - computed: true, optional: false, required: false
this._fixedIops = new DataGoogleFilestoreInstancePerformanceConfigFixedIopsList(this, "fixed_iops", false);
// iops_per_tb - computed: true, optional: false, required: false
this._iopsPerTb = new DataGoogleFilestoreInstancePerformanceConfigIopsPerTbList(this, "iops_per_tb", 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 fixedIops() {
return this._fixedIops;
}
get iopsPerTb() {
return this._iopsPerTb;
}
}
exports.DataGoogleFilestoreInstancePerformanceConfigOutputReference = DataGoogleFilestoreInstancePerformanceConfigOutputReference;
_u = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstancePerformanceConfigOutputReference[_u] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstancePerformanceConfigOutputReference", version: "14.35.0" };
class DataGoogleFilestoreInstancePerformanceConfigList 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 DataGoogleFilestoreInstancePerformanceConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleFilestoreInstancePerformanceConfigList = DataGoogleFilestoreInstancePerformanceConfigList;
_v = JSII_RTTI_SYMBOL_1;
DataGoogleFilestoreInstancePerformanceConfigList[_v] = { fqn: "@cdktf/provider-google.dataGoogleFilestoreInstance.DataGoogleFilestoreInstancePerformanceConfigList", version: "14.35.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/data-sources/filestore_instance google_filestore_instance}
*/
class DataGoogleFilestoreInstance extends cdktf.TerraformDataSource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a DataGoogleFilestoreInstance 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 DataGoogleFilestoreInstance to import
* @param importFromId The id of the existing DataGoogleFilestoreInstance that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/data-sources/filestore_instance#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the DataGoogleFilestoreInstance to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "google_filestore_instance", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/data-sources/filestore_instance google_filestore_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 DataGoogleFilestoreInstanceConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'google_filestore_instance',
terraformGeneratorMetadata: {
providerName: 'google',
providerVersion: '6.36.0',
providerVersionConstraint: '~> 6.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle,
provisioners: config.provisioners,
connection: config.connection,
forEach: config.forEach
});
// effective_labels - computed: true, optional: false, required: false
this._effectiveLabels = new cdktf.StringMap(this, "effective_labels");
// effective_replication - computed: true, optional: false, required: false
this._effectiveReplication = new DataGoogleFilestoreInstanceEffectiveReplicationList(this, "effective_replication", false);
// file_shares - computed: true, optional: false, required: false
this._fileShares = new DataGoogleFilestoreInstanceFileSharesList(this, "file_shares", false);
// initial_replication - computed: true, optional: false, required: false
this._initialReplication = new DataGoogleFilestoreInstanceInitialReplicationList(this, "initial_replication", false);
// labels - computed: true, optional: false, required: false
this._labels = new cdktf.StringMap(this, "labels");
// networks - computed: true, optional: false, required: false
this._networks = new DataGoogleFilestoreInstanceNetworksList(this, "networks", false);
// performance_config - computed: true, optional: false, required: false
this._performanceConfig = new DataGoogleFilestoreInstancePerformanceConfigList(this, "performance_config", false);
// tags - computed: true, optional: false, required: false
this._tags = new cdktf.StringMap(this, "tags");
// terraform_labels - computed: true, optional: false, required: false
this._terraformLabels = new cdktf.StringMap(this, "terraform_labels");
this._id = config.id;
this._location = config.location;
this._name = config.name;
this._project = config.project;
}
// ==========
// ATTRIBUTES
// ==========
// create_time - computed: true, optional: false, required: false
get createTime() {
return this.getStringAttribute('create_time');
}
// deletion_protection_enabled - computed: true, optional: false, required: false
get deletionProtectionEnabled() {
return this.getBooleanAttribute('deletion_protection_enabled');
}
// deletion_protection_reason - computed: true, optional: false, required: false
get deletionProtectionReason() {
return this.getStringAttribute('deletion_protection_reason');
}
// description - computed: true, optional: false, required: false
get description() {
return this.getStringAttribute('description');
}
get effectiveLabels() {
return this._effectiveLabels;
}
get effectiveReplication() {
return this._effectiveReplication;
}
// etag - computed: true, optional: false, required: false
get etag() {
return this.getStringAttribute('etag');
}
get fileShares() {
return this._fileShares;
}
get id() {
return this.getStringAttribute('id');
}
set id(value) {
this._id = value;
}
resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
get idInput() {
return this._id;
}
get initialReplication() {
return this._initialReplication;
}
// kms_key_name - computed: true, optional: false, required: false
get kmsKeyName() {
return this.getStringAttribute('kms_key_name');
}
get labels() {
return this._labels;
}
get location() {
return this.getStringAttribute('location');
}
set location(value) {
this._location = value;
}
resetLocation() {
this._location = undefined;
}
// Temporarily expose input value. Use with caution.
get locationInput() {
return this._location;
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expos