@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
952 lines • 219 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, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataGoogleStorageBucket = exports.DataGoogleStorageBucketWebsiteList = exports.DataGoogleStorageBucketWebsiteOutputReference = exports.DataGoogleStorageBucketVersioningList = exports.DataGoogleStorageBucketVersioningOutputReference = exports.DataGoogleStorageBucketSoftDeletePolicyList = exports.DataGoogleStorageBucketSoftDeletePolicyOutputReference = exports.DataGoogleStorageBucketRetentionPolicyList = exports.DataGoogleStorageBucketRetentionPolicyOutputReference = exports.DataGoogleStorageBucketLoggingList = exports.DataGoogleStorageBucketLoggingOutputReference = exports.DataGoogleStorageBucketLifecycleRuleList = exports.DataGoogleStorageBucketLifecycleRuleOutputReference = exports.DataGoogleStorageBucketLifecycleRuleConditionList = exports.DataGoogleStorageBucketLifecycleRuleConditionOutputReference = exports.DataGoogleStorageBucketLifecycleRuleActionList = exports.DataGoogleStorageBucketLifecycleRuleActionOutputReference = exports.DataGoogleStorageBucketIpFilterList = exports.DataGoogleStorageBucketIpFilterOutputReference = exports.DataGoogleStorageBucketIpFilterVpcNetworkSourcesList = exports.DataGoogleStorageBucketIpFilterVpcNetworkSourcesOutputReference = exports.DataGoogleStorageBucketIpFilterPublicNetworkSourceList = exports.DataGoogleStorageBucketIpFilterPublicNetworkSourceOutputReference = exports.DataGoogleStorageBucketHierarchicalNamespaceList = exports.DataGoogleStorageBucketHierarchicalNamespaceOutputReference = exports.DataGoogleStorageBucketEncryptionList = exports.DataGoogleStorageBucketEncryptionOutputReference = exports.DataGoogleStorageBucketCustomPlacementConfigList = exports.DataGoogleStorageBucketCustomPlacementConfigOutputReference = exports.DataGoogleStorageBucketCorsList = exports.DataGoogleStorageBucketCorsOutputReference = exports.DataGoogleStorageBucketAutoclassList = exports.DataGoogleStorageBucketAutoclassOutputReference = void 0;
exports.dataGoogleStorageBucketAutoclassToTerraform = dataGoogleStorageBucketAutoclassToTerraform;
exports.dataGoogleStorageBucketAutoclassToHclTerraform = dataGoogleStorageBucketAutoclassToHclTerraform;
exports.dataGoogleStorageBucketCorsToTerraform = dataGoogleStorageBucketCorsToTerraform;
exports.dataGoogleStorageBucketCorsToHclTerraform = dataGoogleStorageBucketCorsToHclTerraform;
exports.dataGoogleStorageBucketCustomPlacementConfigToTerraform = dataGoogleStorageBucketCustomPlacementConfigToTerraform;
exports.dataGoogleStorageBucketCustomPlacementConfigToHclTerraform = dataGoogleStorageBucketCustomPlacementConfigToHclTerraform;
exports.dataGoogleStorageBucketEncryptionToTerraform = dataGoogleStorageBucketEncryptionToTerraform;
exports.dataGoogleStorageBucketEncryptionToHclTerraform = dataGoogleStorageBucketEncryptionToHclTerraform;
exports.dataGoogleStorageBucketHierarchicalNamespaceToTerraform = dataGoogleStorageBucketHierarchicalNamespaceToTerraform;
exports.dataGoogleStorageBucketHierarchicalNamespaceToHclTerraform = dataGoogleStorageBucketHierarchicalNamespaceToHclTerraform;
exports.dataGoogleStorageBucketIpFilterPublicNetworkSourceToTerraform = dataGoogleStorageBucketIpFilterPublicNetworkSourceToTerraform;
exports.dataGoogleStorageBucketIpFilterPublicNetworkSourceToHclTerraform = dataGoogleStorageBucketIpFilterPublicNetworkSourceToHclTerraform;
exports.dataGoogleStorageBucketIpFilterVpcNetworkSourcesToTerraform = dataGoogleStorageBucketIpFilterVpcNetworkSourcesToTerraform;
exports.dataGoogleStorageBucketIpFilterVpcNetworkSourcesToHclTerraform = dataGoogleStorageBucketIpFilterVpcNetworkSourcesToHclTerraform;
exports.dataGoogleStorageBucketIpFilterToTerraform = dataGoogleStorageBucketIpFilterToTerraform;
exports.dataGoogleStorageBucketIpFilterToHclTerraform = dataGoogleStorageBucketIpFilterToHclTerraform;
exports.dataGoogleStorageBucketLifecycleRuleActionToTerraform = dataGoogleStorageBucketLifecycleRuleActionToTerraform;
exports.dataGoogleStorageBucketLifecycleRuleActionToHclTerraform = dataGoogleStorageBucketLifecycleRuleActionToHclTerraform;
exports.dataGoogleStorageBucketLifecycleRuleConditionToTerraform = dataGoogleStorageBucketLifecycleRuleConditionToTerraform;
exports.dataGoogleStorageBucketLifecycleRuleConditionToHclTerraform = dataGoogleStorageBucketLifecycleRuleConditionToHclTerraform;
exports.dataGoogleStorageBucketLifecycleRuleToTerraform = dataGoogleStorageBucketLifecycleRuleToTerraform;
exports.dataGoogleStorageBucketLifecycleRuleToHclTerraform = dataGoogleStorageBucketLifecycleRuleToHclTerraform;
exports.dataGoogleStorageBucketLoggingToTerraform = dataGoogleStorageBucketLoggingToTerraform;
exports.dataGoogleStorageBucketLoggingToHclTerraform = dataGoogleStorageBucketLoggingToHclTerraform;
exports.dataGoogleStorageBucketRetentionPolicyToTerraform = dataGoogleStorageBucketRetentionPolicyToTerraform;
exports.dataGoogleStorageBucketRetentionPolicyToHclTerraform = dataGoogleStorageBucketRetentionPolicyToHclTerraform;
exports.dataGoogleStorageBucketSoftDeletePolicyToTerraform = dataGoogleStorageBucketSoftDeletePolicyToTerraform;
exports.dataGoogleStorageBucketSoftDeletePolicyToHclTerraform = dataGoogleStorageBucketSoftDeletePolicyToHclTerraform;
exports.dataGoogleStorageBucketVersioningToTerraform = dataGoogleStorageBucketVersioningToTerraform;
exports.dataGoogleStorageBucketVersioningToHclTerraform = dataGoogleStorageBucketVersioningToHclTerraform;
exports.dataGoogleStorageBucketWebsiteToTerraform = dataGoogleStorageBucketWebsiteToTerraform;
exports.dataGoogleStorageBucketWebsiteToHclTerraform = dataGoogleStorageBucketWebsiteToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataGoogleStorageBucketAutoclassToTerraform(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 dataGoogleStorageBucketAutoclassToHclTerraform(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 DataGoogleStorageBucketAutoclassOutputReference 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;
}
}
// enabled - computed: true, optional: false, required: false
get enabled() {
return this.getBooleanAttribute('enabled');
}
// terminal_storage_class - computed: true, optional: false, required: false
get terminalStorageClass() {
return this.getStringAttribute('terminal_storage_class');
}
}
exports.DataGoogleStorageBucketAutoclassOutputReference = DataGoogleStorageBucketAutoclassOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketAutoclassOutputReference[_a] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketAutoclassOutputReference", version: "16.3.0" };
class DataGoogleStorageBucketAutoclassList 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 DataGoogleStorageBucketAutoclassOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleStorageBucketAutoclassList = DataGoogleStorageBucketAutoclassList;
_b = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketAutoclassList[_b] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketAutoclassList", version: "16.3.0" };
function dataGoogleStorageBucketCorsToTerraform(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 dataGoogleStorageBucketCorsToHclTerraform(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 DataGoogleStorageBucketCorsOutputReference 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_age_seconds - computed: true, optional: false, required: false
get maxAgeSeconds() {
return this.getNumberAttribute('max_age_seconds');
}
// method - computed: true, optional: false, required: false
get method() {
return this.getListAttribute('method');
}
// origin - computed: true, optional: false, required: false
get origin() {
return this.getListAttribute('origin');
}
// response_header - computed: true, optional: false, required: false
get responseHeader() {
return this.getListAttribute('response_header');
}
}
exports.DataGoogleStorageBucketCorsOutputReference = DataGoogleStorageBucketCorsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketCorsOutputReference[_c] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketCorsOutputReference", version: "16.3.0" };
class DataGoogleStorageBucketCorsList 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 DataGoogleStorageBucketCorsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleStorageBucketCorsList = DataGoogleStorageBucketCorsList;
_d = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketCorsList[_d] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketCorsList", version: "16.3.0" };
function dataGoogleStorageBucketCustomPlacementConfigToTerraform(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 dataGoogleStorageBucketCustomPlacementConfigToHclTerraform(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 DataGoogleStorageBucketCustomPlacementConfigOutputReference 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;
}
}
// data_locations - computed: true, optional: false, required: false
get dataLocations() {
return cdktf.Fn.tolist(this.getListAttribute('data_locations'));
}
}
exports.DataGoogleStorageBucketCustomPlacementConfigOutputReference = DataGoogleStorageBucketCustomPlacementConfigOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketCustomPlacementConfigOutputReference[_e] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketCustomPlacementConfigOutputReference", version: "16.3.0" };
class DataGoogleStorageBucketCustomPlacementConfigList 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 DataGoogleStorageBucketCustomPlacementConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleStorageBucketCustomPlacementConfigList = DataGoogleStorageBucketCustomPlacementConfigList;
_f = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketCustomPlacementConfigList[_f] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketCustomPlacementConfigList", version: "16.3.0" };
function dataGoogleStorageBucketEncryptionToTerraform(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 dataGoogleStorageBucketEncryptionToHclTerraform(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 DataGoogleStorageBucketEncryptionOutputReference 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;
}
}
// default_kms_key_name - computed: true, optional: false, required: false
get defaultKmsKeyName() {
return this.getStringAttribute('default_kms_key_name');
}
}
exports.DataGoogleStorageBucketEncryptionOutputReference = DataGoogleStorageBucketEncryptionOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketEncryptionOutputReference[_g] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketEncryptionOutputReference", version: "16.3.0" };
class DataGoogleStorageBucketEncryptionList 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 DataGoogleStorageBucketEncryptionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleStorageBucketEncryptionList = DataGoogleStorageBucketEncryptionList;
_h = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketEncryptionList[_h] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketEncryptionList", version: "16.3.0" };
function dataGoogleStorageBucketHierarchicalNamespaceToTerraform(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 dataGoogleStorageBucketHierarchicalNamespaceToHclTerraform(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 DataGoogleStorageBucketHierarchicalNamespaceOutputReference 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;
}
}
// enabled - computed: true, optional: false, required: false
get enabled() {
return this.getBooleanAttribute('enabled');
}
}
exports.DataGoogleStorageBucketHierarchicalNamespaceOutputReference = DataGoogleStorageBucketHierarchicalNamespaceOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketHierarchicalNamespaceOutputReference[_j] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketHierarchicalNamespaceOutputReference", version: "16.3.0" };
class DataGoogleStorageBucketHierarchicalNamespaceList 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 DataGoogleStorageBucketHierarchicalNamespaceOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleStorageBucketHierarchicalNamespaceList = DataGoogleStorageBucketHierarchicalNamespaceList;
_k = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketHierarchicalNamespaceList[_k] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketHierarchicalNamespaceList", version: "16.3.0" };
function dataGoogleStorageBucketIpFilterPublicNetworkSourceToTerraform(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 dataGoogleStorageBucketIpFilterPublicNetworkSourceToHclTerraform(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 DataGoogleStorageBucketIpFilterPublicNetworkSourceOutputReference 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;
}
}
// allowed_ip_cidr_ranges - computed: true, optional: false, required: false
get allowedIpCidrRanges() {
return this.getListAttribute('allowed_ip_cidr_ranges');
}
}
exports.DataGoogleStorageBucketIpFilterPublicNetworkSourceOutputReference = DataGoogleStorageBucketIpFilterPublicNetworkSourceOutputReference;
_l = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketIpFilterPublicNetworkSourceOutputReference[_l] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketIpFilterPublicNetworkSourceOutputReference", version: "16.3.0" };
class DataGoogleStorageBucketIpFilterPublicNetworkSourceList 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 DataGoogleStorageBucketIpFilterPublicNetworkSourceOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleStorageBucketIpFilterPublicNetworkSourceList = DataGoogleStorageBucketIpFilterPublicNetworkSourceList;
_m = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketIpFilterPublicNetworkSourceList[_m] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketIpFilterPublicNetworkSourceList", version: "16.3.0" };
function dataGoogleStorageBucketIpFilterVpcNetworkSourcesToTerraform(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 dataGoogleStorageBucketIpFilterVpcNetworkSourcesToHclTerraform(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 DataGoogleStorageBucketIpFilterVpcNetworkSourcesOutputReference 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;
}
}
// allowed_ip_cidr_ranges - computed: true, optional: false, required: false
get allowedIpCidrRanges() {
return this.getListAttribute('allowed_ip_cidr_ranges');
}
// network - computed: true, optional: false, required: false
get network() {
return this.getStringAttribute('network');
}
}
exports.DataGoogleStorageBucketIpFilterVpcNetworkSourcesOutputReference = DataGoogleStorageBucketIpFilterVpcNetworkSourcesOutputReference;
_o = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketIpFilterVpcNetworkSourcesOutputReference[_o] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketIpFilterVpcNetworkSourcesOutputReference", version: "16.3.0" };
class DataGoogleStorageBucketIpFilterVpcNetworkSourcesList 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 DataGoogleStorageBucketIpFilterVpcNetworkSourcesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleStorageBucketIpFilterVpcNetworkSourcesList = DataGoogleStorageBucketIpFilterVpcNetworkSourcesList;
_p = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketIpFilterVpcNetworkSourcesList[_p] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketIpFilterVpcNetworkSourcesList", version: "16.3.0" };
function dataGoogleStorageBucketIpFilterToTerraform(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 dataGoogleStorageBucketIpFilterToHclTerraform(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 DataGoogleStorageBucketIpFilterOutputReference 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;
// public_network_source - computed: true, optional: false, required: false
this._publicNetworkSource = new DataGoogleStorageBucketIpFilterPublicNetworkSourceList(this, "public_network_source", false);
// vpc_network_sources - computed: true, optional: false, required: false
this._vpcNetworkSources = new DataGoogleStorageBucketIpFilterVpcNetworkSourcesList(this, "vpc_network_sources", 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;
}
}
// mode - computed: true, optional: false, required: false
get mode() {
return this.getStringAttribute('mode');
}
get publicNetworkSource() {
return this._publicNetworkSource;
}
get vpcNetworkSources() {
return this._vpcNetworkSources;
}
}
exports.DataGoogleStorageBucketIpFilterOutputReference = DataGoogleStorageBucketIpFilterOutputReference;
_q = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketIpFilterOutputReference[_q] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketIpFilterOutputReference", version: "16.3.0" };
class DataGoogleStorageBucketIpFilterList 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 DataGoogleStorageBucketIpFilterOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleStorageBucketIpFilterList = DataGoogleStorageBucketIpFilterList;
_r = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketIpFilterList[_r] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketIpFilterList", version: "16.3.0" };
function dataGoogleStorageBucketLifecycleRuleActionToTerraform(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 dataGoogleStorageBucketLifecycleRuleActionToHclTerraform(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 DataGoogleStorageBucketLifecycleRuleActionOutputReference 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;
}
}
// storage_class - computed: true, optional: false, required: false
get storageClass() {
return this.getStringAttribute('storage_class');
}
// type - computed: true, optional: false, required: false
get type() {
return this.getStringAttribute('type');
}
}
exports.DataGoogleStorageBucketLifecycleRuleActionOutputReference = DataGoogleStorageBucketLifecycleRuleActionOutputReference;
_s = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketLifecycleRuleActionOutputReference[_s] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketLifecycleRuleActionOutputReference", version: "16.3.0" };
class DataGoogleStorageBucketLifecycleRuleActionList 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 DataGoogleStorageBucketLifecycleRuleActionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleStorageBucketLifecycleRuleActionList = DataGoogleStorageBucketLifecycleRuleActionList;
_t = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketLifecycleRuleActionList[_t] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketLifecycleRuleActionList", version: "16.3.0" };
function dataGoogleStorageBucketLifecycleRuleConditionToTerraform(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 dataGoogleStorageBucketLifecycleRuleConditionToHclTerraform(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 DataGoogleStorageBucketLifecycleRuleConditionOutputReference 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;
}
}
// age - computed: true, optional: false, required: false
get age() {
return this.getNumberAttribute('age');
}
// created_before - computed: true, optional: false, required: false
get createdBefore() {
return this.getStringAttribute('created_before');
}
// custom_time_before - computed: true, optional: false, required: false
get customTimeBefore() {
return this.getStringAttribute('custom_time_before');
}
// days_since_custom_time - computed: true, optional: false, required: false
get daysSinceCustomTime() {
return this.getNumberAttribute('days_since_custom_time');
}
// days_since_noncurrent_time - computed: true, optional: false, required: false
get daysSinceNoncurrentTime() {
return this.getNumberAttribute('days_since_noncurrent_time');
}
// matches_prefix - computed: true, optional: false, required: false
get matchesPrefix() {
return this.getListAttribute('matches_prefix');
}
// matches_storage_class - computed: true, optional: false, required: false
get matchesStorageClass() {
return this.getListAttribute('matches_storage_class');
}
// matches_suffix - computed: true, optional: false, required: false
get matchesSuffix() {
return this.getListAttribute('matches_suffix');
}
// noncurrent_time_before - computed: true, optional: false, required: false
get noncurrentTimeBefore() {
return this.getStringAttribute('noncurrent_time_before');
}
// num_newer_versions - computed: true, optional: false, required: false
get numNewerVersions() {
return this.getNumberAttribute('num_newer_versions');
}
// send_age_if_zero - computed: true, optional: false, required: false
get sendAgeIfZero() {
return this.getBooleanAttribute('send_age_if_zero');
}
// send_days_since_custom_time_if_zero - computed: true, optional: false, required: false
get sendDaysSinceCustomTimeIfZero() {
return this.getBooleanAttribute('send_days_since_custom_time_if_zero');
}
// send_days_since_noncurrent_time_if_zero - computed: true, optional: false, required: false
get sendDaysSinceNoncurrentTimeIfZero() {
return this.getBooleanAttribute('send_days_since_noncurrent_time_if_zero');
}
// send_num_newer_versions_if_zero - computed: true, optional: false, required: false
get sendNumNewerVersionsIfZero() {
return this.getBooleanAttribute('send_num_newer_versions_if_zero');
}
// with_state - computed: true, optional: false, required: false
get withState() {
return this.getStringAttribute('with_state');
}
}
exports.DataGoogleStorageBucketLifecycleRuleConditionOutputReference = DataGoogleStorageBucketLifecycleRuleConditionOutputReference;
_u = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketLifecycleRuleConditionOutputReference[_u] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketLifecycleRuleConditionOutputReference", version: "16.3.0" };
class DataGoogleStorageBucketLifecycleRuleConditionList 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 DataGoogleStorageBucketLifecycleRuleConditionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleStorageBucketLifecycleRuleConditionList = DataGoogleStorageBucketLifecycleRuleConditionList;
_v = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketLifecycleRuleConditionList[_v] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketLifecycleRuleConditionList", version: "16.3.0" };
function dataGoogleStorageBucketLifecycleRuleToTerraform(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 dataGoogleStorageBucketLifecycleRuleToHclTerraform(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 DataGoogleStorageBucketLifecycleRuleOutputReference 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;
// action - computed: true, optional: false, required: false
this._action = new DataGoogleStorageBucketLifecycleRuleActionList(this, "action", true);
// condition - computed: true, optional: false, required: false
this._condition = new DataGoogleStorageBucketLifecycleRuleConditionList(this, "condition", true);
}
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 action() {
return this._action;
}
get condition() {
return this._condition;
}
}
exports.DataGoogleStorageBucketLifecycleRuleOutputReference = DataGoogleStorageBucketLifecycleRuleOutputReference;
_w = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketLifecycleRuleOutputReference[_w] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketLifecycleRuleOutputReference", version: "16.3.0" };
class DataGoogleStorageBucketLifecycleRuleList 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 DataGoogleStorageBucketLifecycleRuleOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleStorageBucketLifecycleRuleList = DataGoogleStorageBucketLifecycleRuleList;
_x = JSII_RTTI_SYMBOL_1;
DataGoogleStorageBucketLifecycleRuleList[_x] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketLifecycleRuleList", version: "16.3.0" };
function dataGoogleStorageBucketLoggingToTerraform(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 dataGoogleStorageBucketLoggingToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A comp