UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

950 lines 185 kB
"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; Object.defineProperty(exports, "__esModule", { value: true }); exports.dataGoogleStorageBucketWebsiteToHclTerraform = exports.dataGoogleStorageBucketWebsiteToTerraform = exports.DataGoogleStorageBucketVersioningList = exports.DataGoogleStorageBucketVersioningOutputReference = exports.dataGoogleStorageBucketVersioningToHclTerraform = exports.dataGoogleStorageBucketVersioningToTerraform = exports.DataGoogleStorageBucketSoftDeletePolicyList = exports.DataGoogleStorageBucketSoftDeletePolicyOutputReference = exports.dataGoogleStorageBucketSoftDeletePolicyToHclTerraform = exports.dataGoogleStorageBucketSoftDeletePolicyToTerraform = exports.DataGoogleStorageBucketRetentionPolicyList = exports.DataGoogleStorageBucketRetentionPolicyOutputReference = exports.dataGoogleStorageBucketRetentionPolicyToHclTerraform = exports.dataGoogleStorageBucketRetentionPolicyToTerraform = exports.DataGoogleStorageBucketLoggingList = exports.DataGoogleStorageBucketLoggingOutputReference = exports.dataGoogleStorageBucketLoggingToHclTerraform = exports.dataGoogleStorageBucketLoggingToTerraform = exports.DataGoogleStorageBucketLifecycleRuleList = exports.DataGoogleStorageBucketLifecycleRuleOutputReference = exports.dataGoogleStorageBucketLifecycleRuleToHclTerraform = exports.dataGoogleStorageBucketLifecycleRuleToTerraform = exports.DataGoogleStorageBucketLifecycleRuleConditionList = exports.DataGoogleStorageBucketLifecycleRuleConditionOutputReference = exports.dataGoogleStorageBucketLifecycleRuleConditionToHclTerraform = exports.dataGoogleStorageBucketLifecycleRuleConditionToTerraform = exports.DataGoogleStorageBucketLifecycleRuleActionList = exports.DataGoogleStorageBucketLifecycleRuleActionOutputReference = exports.dataGoogleStorageBucketLifecycleRuleActionToHclTerraform = exports.dataGoogleStorageBucketLifecycleRuleActionToTerraform = exports.DataGoogleStorageBucketHierarchicalNamespaceList = exports.DataGoogleStorageBucketHierarchicalNamespaceOutputReference = exports.dataGoogleStorageBucketHierarchicalNamespaceToHclTerraform = exports.dataGoogleStorageBucketHierarchicalNamespaceToTerraform = exports.DataGoogleStorageBucketEncryptionList = exports.DataGoogleStorageBucketEncryptionOutputReference = exports.dataGoogleStorageBucketEncryptionToHclTerraform = exports.dataGoogleStorageBucketEncryptionToTerraform = exports.DataGoogleStorageBucketCustomPlacementConfigList = exports.DataGoogleStorageBucketCustomPlacementConfigOutputReference = exports.dataGoogleStorageBucketCustomPlacementConfigToHclTerraform = exports.dataGoogleStorageBucketCustomPlacementConfigToTerraform = exports.DataGoogleStorageBucketCorsList = exports.DataGoogleStorageBucketCorsOutputReference = exports.dataGoogleStorageBucketCorsToHclTerraform = exports.dataGoogleStorageBucketCorsToTerraform = exports.DataGoogleStorageBucketAutoclassList = exports.DataGoogleStorageBucketAutoclassOutputReference = exports.dataGoogleStorageBucketAutoclassToHclTerraform = exports.dataGoogleStorageBucketAutoclassToTerraform = void 0; exports.DataGoogleStorageBucket = exports.DataGoogleStorageBucketWebsiteList = exports.DataGoogleStorageBucketWebsiteOutputReference = void 0; 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 {}; } exports.dataGoogleStorageBucketAutoclassToTerraform = dataGoogleStorageBucketAutoclassToTerraform; 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; } exports.dataGoogleStorageBucketAutoclassToHclTerraform = dataGoogleStorageBucketAutoclassToHclTerraform; 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: "14.12.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: "14.12.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 {}; } exports.dataGoogleStorageBucketCorsToTerraform = dataGoogleStorageBucketCorsToTerraform; 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; } exports.dataGoogleStorageBucketCorsToHclTerraform = dataGoogleStorageBucketCorsToHclTerraform; 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: "14.12.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: "14.12.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 {}; } exports.dataGoogleStorageBucketCustomPlacementConfigToTerraform = dataGoogleStorageBucketCustomPlacementConfigToTerraform; 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; } exports.dataGoogleStorageBucketCustomPlacementConfigToHclTerraform = dataGoogleStorageBucketCustomPlacementConfigToHclTerraform; 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: "14.12.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: "14.12.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 {}; } exports.dataGoogleStorageBucketEncryptionToTerraform = dataGoogleStorageBucketEncryptionToTerraform; 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; } exports.dataGoogleStorageBucketEncryptionToHclTerraform = dataGoogleStorageBucketEncryptionToHclTerraform; 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: "14.12.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: "14.12.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 {}; } exports.dataGoogleStorageBucketHierarchicalNamespaceToTerraform = dataGoogleStorageBucketHierarchicalNamespaceToTerraform; 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; } exports.dataGoogleStorageBucketHierarchicalNamespaceToHclTerraform = dataGoogleStorageBucketHierarchicalNamespaceToHclTerraform; 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: "14.12.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: "14.12.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 {}; } exports.dataGoogleStorageBucketLifecycleRuleActionToTerraform = dataGoogleStorageBucketLifecycleRuleActionToTerraform; 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; } exports.dataGoogleStorageBucketLifecycleRuleActionToHclTerraform = dataGoogleStorageBucketLifecycleRuleActionToHclTerraform; 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; _l = JSII_RTTI_SYMBOL_1; DataGoogleStorageBucketLifecycleRuleActionOutputReference[_l] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketLifecycleRuleActionOutputReference", version: "14.12.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; _m = JSII_RTTI_SYMBOL_1; DataGoogleStorageBucketLifecycleRuleActionList[_m] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketLifecycleRuleActionList", version: "14.12.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 {}; } exports.dataGoogleStorageBucketLifecycleRuleConditionToTerraform = dataGoogleStorageBucketLifecycleRuleConditionToTerraform; 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; } exports.dataGoogleStorageBucketLifecycleRuleConditionToHclTerraform = dataGoogleStorageBucketLifecycleRuleConditionToHclTerraform; 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; _o = JSII_RTTI_SYMBOL_1; DataGoogleStorageBucketLifecycleRuleConditionOutputReference[_o] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketLifecycleRuleConditionOutputReference", version: "14.12.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; _p = JSII_RTTI_SYMBOL_1; DataGoogleStorageBucketLifecycleRuleConditionList[_p] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketLifecycleRuleConditionList", version: "14.12.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 {}; } exports.dataGoogleStorageBucketLifecycleRuleToTerraform = dataGoogleStorageBucketLifecycleRuleToTerraform; 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; } exports.dataGoogleStorageBucketLifecycleRuleToHclTerraform = dataGoogleStorageBucketLifecycleRuleToHclTerraform; 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; _q = JSII_RTTI_SYMBOL_1; DataGoogleStorageBucketLifecycleRuleOutputReference[_q] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketLifecycleRuleOutputReference", version: "14.12.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; _r = JSII_RTTI_SYMBOL_1; DataGoogleStorageBucketLifecycleRuleList[_r] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketLifecycleRuleList", version: "14.12.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 {}; } exports.dataGoogleStorageBucketLoggingToTerraform = dataGoogleStorageBucketLoggingToTerraform; function dataGoogleStorageBucketLoggingToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.dataGoogleStorageBucketLoggingToHclTerraform = dataGoogleStorageBucketLoggingToHclTerraform; class DataGoogleStorageBucketLoggingOutputReference 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; } } // log_bucket - computed: true, optional: false, required: false get logBucket() { return this.getStringAttribute('log_bucket'); } // log_object_prefix - computed: true, optional: false, required: false get logObjectPrefix() { return this.getStringAttribute('log_object_prefix'); } } exports.DataGoogleStorageBucketLoggingOutputReference = DataGoogleStorageBucketLoggingOutputReference; _s = JSII_RTTI_SYMBOL_1; DataGoogleStorageBucketLoggingOutputReference[_s] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketLoggingOutputReference", version: "14.12.0" }; class DataGoogleStorageBucketLoggingList 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 DataGoogleStorageBucketLoggingOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleStorageBucketLoggingList = DataGoogleStorageBucketLoggingList; _t = JSII_RTTI_SYMBOL_1; DataGoogleStorageBucketLoggingList[_t] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketLoggingList", version: "14.12.0" }; function dataGoogleStorageBucketRetentionPolicyToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.dataGoogleStorageBucketRetentionPolicyToTerraform = dataGoogleStorageBucketRetentionPolicyToTerraform; function dataGoogleStorageBucketRetentionPolicyToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.dataGoogleStorageBucketRetentionPolicyToHclTerraform = dataGoogleStorageBucketRetentionPolicyToHclTerraform; class DataGoogleStorageBucketRetentionPolicyOutputReference 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; } } // is_locked - computed: true, optional: false, required: false get isLocked() { return this.getBooleanAttribute('is_locked'); } // retention_period - computed: true, optional: false, required: false get retentionPeriod() { return this.getNumberAttribute('retention_period'); } } exports.DataGoogleStorageBucketRetentionPolicyOutputReference = DataGoogleStorageBucketRetentionPolicyOutputReference; _u = JSII_RTTI_SYMBOL_1; DataGoogleStorageBucketRetentionPolicyOutputReference[_u] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketRetentionPolicyOutputReference", version: "14.12.0" }; class DataGoogleStorageBucketRetentionPolicyList 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 DataGoogleStorageBucketRetentionPolicyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleStorageBucketRetentionPolicyList = DataGoogleStorageBucketRetentionPolicyList; _v = JSII_RTTI_SYMBOL_1; DataGoogleStorageBucketRetentionPolicyList[_v] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketRetentionPolicyList", version: "14.12.0" }; function dataGoogleStorageBucketSoftDeletePolicyToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.dataGoogleStorageBucketSoftDeletePolicyToTerraform = dataGoogleStorageBucketSoftDeletePolicyToTerraform; function dataGoogleStorageBucketSoftDeletePolicyToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.dataGoogleStorageBucketSoftDeletePolicyToHclTerraform = dataGoogleStorageBucketSoftDeletePolicyToHclTerraform; class DataGoogleStorageBucketSoftDeletePolicyOutputReference 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; } } // effective_time - computed: true, optional: false, required: false get effectiveTime() { return this.getStringAttribute('effective_time'); } // retention_duration_seconds - computed: true, optional: false, required: false get retentionDurationSeconds() { return this.getNumberAttribute('retention_duration_seconds'); } } exports.DataGoogleStorageBucketSoftDeletePolicyOutputReference = DataGoogleStorageBucketSoftDeletePolicyOutputReference; _w = JSII_RTTI_SYMBOL_1; DataGoogleStorageBucketSoftDeletePolicyOutputReference[_w] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketSoftDeletePolicyOutputReference", version: "14.12.0" }; class DataGoogleStorageBucketSoftDeletePolicyList 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 DataGoogleStorageBucketSoftDeletePolicyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleStorageBucketSoftDeletePolicyList = DataGoogleStorageBucketSoftDeletePolicyList; _x = JSII_RTTI_SYMBOL_1; DataGoogleStorageBucketSoftDeletePolicyList[_x] = { fqn: "@cdktf/provider-google.dataGoogleStorageBucket.DataGoogleStorageBucketSoftDeletePolicyList", version: "14.12.0" }; function dataGoogleStorageBucketVersioningToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.dataGoogleStorageBucketVersioningToTerraform = dataGoogleStorageBucketVersioningToTerraform; function dataGoogleStorageBucketVersioningToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.dataGoogleStorageBucketVersioningToHclTerraform = dataGoogleStorageBucketVersioningToHclTerraform; class DataGoogleStorageBucketVersioningOutputReference extends cdktf.ComplexObject { /** * @para