UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

941 lines 161 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; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataGooglePubsubSubscription = exports.DataGooglePubsubSubscriptionRetryPolicyList = exports.DataGooglePubsubSubscriptionRetryPolicyOutputReference = exports.DataGooglePubsubSubscriptionPushConfigList = exports.DataGooglePubsubSubscriptionPushConfigOutputReference = exports.DataGooglePubsubSubscriptionPushConfigOidcTokenList = exports.DataGooglePubsubSubscriptionPushConfigOidcTokenOutputReference = exports.DataGooglePubsubSubscriptionPushConfigNoWrapperList = exports.DataGooglePubsubSubscriptionPushConfigNoWrapperOutputReference = exports.DataGooglePubsubSubscriptionMessageTransformsList = exports.DataGooglePubsubSubscriptionMessageTransformsOutputReference = exports.DataGooglePubsubSubscriptionMessageTransformsJavascriptUdfList = exports.DataGooglePubsubSubscriptionMessageTransformsJavascriptUdfOutputReference = exports.DataGooglePubsubSubscriptionExpirationPolicyList = exports.DataGooglePubsubSubscriptionExpirationPolicyOutputReference = exports.DataGooglePubsubSubscriptionDeadLetterPolicyList = exports.DataGooglePubsubSubscriptionDeadLetterPolicyOutputReference = exports.DataGooglePubsubSubscriptionCloudStorageConfigList = exports.DataGooglePubsubSubscriptionCloudStorageConfigOutputReference = exports.DataGooglePubsubSubscriptionCloudStorageConfigAvroConfigList = exports.DataGooglePubsubSubscriptionCloudStorageConfigAvroConfigOutputReference = exports.DataGooglePubsubSubscriptionBigqueryConfigList = exports.DataGooglePubsubSubscriptionBigqueryConfigOutputReference = void 0; exports.dataGooglePubsubSubscriptionBigqueryConfigToTerraform = dataGooglePubsubSubscriptionBigqueryConfigToTerraform; exports.dataGooglePubsubSubscriptionBigqueryConfigToHclTerraform = dataGooglePubsubSubscriptionBigqueryConfigToHclTerraform; exports.dataGooglePubsubSubscriptionCloudStorageConfigAvroConfigToTerraform = dataGooglePubsubSubscriptionCloudStorageConfigAvroConfigToTerraform; exports.dataGooglePubsubSubscriptionCloudStorageConfigAvroConfigToHclTerraform = dataGooglePubsubSubscriptionCloudStorageConfigAvroConfigToHclTerraform; exports.dataGooglePubsubSubscriptionCloudStorageConfigToTerraform = dataGooglePubsubSubscriptionCloudStorageConfigToTerraform; exports.dataGooglePubsubSubscriptionCloudStorageConfigToHclTerraform = dataGooglePubsubSubscriptionCloudStorageConfigToHclTerraform; exports.dataGooglePubsubSubscriptionDeadLetterPolicyToTerraform = dataGooglePubsubSubscriptionDeadLetterPolicyToTerraform; exports.dataGooglePubsubSubscriptionDeadLetterPolicyToHclTerraform = dataGooglePubsubSubscriptionDeadLetterPolicyToHclTerraform; exports.dataGooglePubsubSubscriptionExpirationPolicyToTerraform = dataGooglePubsubSubscriptionExpirationPolicyToTerraform; exports.dataGooglePubsubSubscriptionExpirationPolicyToHclTerraform = dataGooglePubsubSubscriptionExpirationPolicyToHclTerraform; exports.dataGooglePubsubSubscriptionMessageTransformsJavascriptUdfToTerraform = dataGooglePubsubSubscriptionMessageTransformsJavascriptUdfToTerraform; exports.dataGooglePubsubSubscriptionMessageTransformsJavascriptUdfToHclTerraform = dataGooglePubsubSubscriptionMessageTransformsJavascriptUdfToHclTerraform; exports.dataGooglePubsubSubscriptionMessageTransformsToTerraform = dataGooglePubsubSubscriptionMessageTransformsToTerraform; exports.dataGooglePubsubSubscriptionMessageTransformsToHclTerraform = dataGooglePubsubSubscriptionMessageTransformsToHclTerraform; exports.dataGooglePubsubSubscriptionPushConfigNoWrapperToTerraform = dataGooglePubsubSubscriptionPushConfigNoWrapperToTerraform; exports.dataGooglePubsubSubscriptionPushConfigNoWrapperToHclTerraform = dataGooglePubsubSubscriptionPushConfigNoWrapperToHclTerraform; exports.dataGooglePubsubSubscriptionPushConfigOidcTokenToTerraform = dataGooglePubsubSubscriptionPushConfigOidcTokenToTerraform; exports.dataGooglePubsubSubscriptionPushConfigOidcTokenToHclTerraform = dataGooglePubsubSubscriptionPushConfigOidcTokenToHclTerraform; exports.dataGooglePubsubSubscriptionPushConfigToTerraform = dataGooglePubsubSubscriptionPushConfigToTerraform; exports.dataGooglePubsubSubscriptionPushConfigToHclTerraform = dataGooglePubsubSubscriptionPushConfigToHclTerraform; exports.dataGooglePubsubSubscriptionRetryPolicyToTerraform = dataGooglePubsubSubscriptionRetryPolicyToTerraform; exports.dataGooglePubsubSubscriptionRetryPolicyToHclTerraform = dataGooglePubsubSubscriptionRetryPolicyToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataGooglePubsubSubscriptionBigqueryConfigToTerraform(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 dataGooglePubsubSubscriptionBigqueryConfigToHclTerraform(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 DataGooglePubsubSubscriptionBigqueryConfigOutputReference 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; } } // drop_unknown_fields - computed: true, optional: false, required: false get dropUnknownFields() { return this.getBooleanAttribute('drop_unknown_fields'); } // service_account_email - computed: true, optional: false, required: false get serviceAccountEmail() { return this.getStringAttribute('service_account_email'); } // table - computed: true, optional: false, required: false get table() { return this.getStringAttribute('table'); } // use_table_schema - computed: true, optional: false, required: false get useTableSchema() { return this.getBooleanAttribute('use_table_schema'); } // use_topic_schema - computed: true, optional: false, required: false get useTopicSchema() { return this.getBooleanAttribute('use_topic_schema'); } // write_metadata - computed: true, optional: false, required: false get writeMetadata() { return this.getBooleanAttribute('write_metadata'); } } exports.DataGooglePubsubSubscriptionBigqueryConfigOutputReference = DataGooglePubsubSubscriptionBigqueryConfigOutputReference; _a = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionBigqueryConfigOutputReference[_a] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionBigqueryConfigOutputReference", version: "16.3.0" }; class DataGooglePubsubSubscriptionBigqueryConfigList 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 DataGooglePubsubSubscriptionBigqueryConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGooglePubsubSubscriptionBigqueryConfigList = DataGooglePubsubSubscriptionBigqueryConfigList; _b = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionBigqueryConfigList[_b] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionBigqueryConfigList", version: "16.3.0" }; function dataGooglePubsubSubscriptionCloudStorageConfigAvroConfigToTerraform(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 dataGooglePubsubSubscriptionCloudStorageConfigAvroConfigToHclTerraform(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 DataGooglePubsubSubscriptionCloudStorageConfigAvroConfigOutputReference 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; } } // use_topic_schema - computed: true, optional: false, required: false get useTopicSchema() { return this.getBooleanAttribute('use_topic_schema'); } // write_metadata - computed: true, optional: false, required: false get writeMetadata() { return this.getBooleanAttribute('write_metadata'); } } exports.DataGooglePubsubSubscriptionCloudStorageConfigAvroConfigOutputReference = DataGooglePubsubSubscriptionCloudStorageConfigAvroConfigOutputReference; _c = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionCloudStorageConfigAvroConfigOutputReference[_c] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionCloudStorageConfigAvroConfigOutputReference", version: "16.3.0" }; class DataGooglePubsubSubscriptionCloudStorageConfigAvroConfigList 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 DataGooglePubsubSubscriptionCloudStorageConfigAvroConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGooglePubsubSubscriptionCloudStorageConfigAvroConfigList = DataGooglePubsubSubscriptionCloudStorageConfigAvroConfigList; _d = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionCloudStorageConfigAvroConfigList[_d] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionCloudStorageConfigAvroConfigList", version: "16.3.0" }; function dataGooglePubsubSubscriptionCloudStorageConfigToTerraform(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 dataGooglePubsubSubscriptionCloudStorageConfigToHclTerraform(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 DataGooglePubsubSubscriptionCloudStorageConfigOutputReference 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; // avro_config - computed: true, optional: false, required: false this._avroConfig = new DataGooglePubsubSubscriptionCloudStorageConfigAvroConfigList(this, "avro_config", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } get avroConfig() { return this._avroConfig; } // bucket - computed: true, optional: false, required: false get bucket() { return this.getStringAttribute('bucket'); } // filename_datetime_format - computed: true, optional: false, required: false get filenameDatetimeFormat() { return this.getStringAttribute('filename_datetime_format'); } // filename_prefix - computed: true, optional: false, required: false get filenamePrefix() { return this.getStringAttribute('filename_prefix'); } // filename_suffix - computed: true, optional: false, required: false get filenameSuffix() { return this.getStringAttribute('filename_suffix'); } // max_bytes - computed: true, optional: false, required: false get maxBytes() { return this.getNumberAttribute('max_bytes'); } // max_duration - computed: true, optional: false, required: false get maxDuration() { return this.getStringAttribute('max_duration'); } // max_messages - computed: true, optional: false, required: false get maxMessages() { return this.getNumberAttribute('max_messages'); } // service_account_email - computed: true, optional: false, required: false get serviceAccountEmail() { return this.getStringAttribute('service_account_email'); } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } } exports.DataGooglePubsubSubscriptionCloudStorageConfigOutputReference = DataGooglePubsubSubscriptionCloudStorageConfigOutputReference; _e = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionCloudStorageConfigOutputReference[_e] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionCloudStorageConfigOutputReference", version: "16.3.0" }; class DataGooglePubsubSubscriptionCloudStorageConfigList 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 DataGooglePubsubSubscriptionCloudStorageConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGooglePubsubSubscriptionCloudStorageConfigList = DataGooglePubsubSubscriptionCloudStorageConfigList; _f = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionCloudStorageConfigList[_f] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionCloudStorageConfigList", version: "16.3.0" }; function dataGooglePubsubSubscriptionDeadLetterPolicyToTerraform(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 dataGooglePubsubSubscriptionDeadLetterPolicyToHclTerraform(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 DataGooglePubsubSubscriptionDeadLetterPolicyOutputReference 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; } } // dead_letter_topic - computed: true, optional: false, required: false get deadLetterTopic() { return this.getStringAttribute('dead_letter_topic'); } // max_delivery_attempts - computed: true, optional: false, required: false get maxDeliveryAttempts() { return this.getNumberAttribute('max_delivery_attempts'); } } exports.DataGooglePubsubSubscriptionDeadLetterPolicyOutputReference = DataGooglePubsubSubscriptionDeadLetterPolicyOutputReference; _g = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionDeadLetterPolicyOutputReference[_g] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionDeadLetterPolicyOutputReference", version: "16.3.0" }; class DataGooglePubsubSubscriptionDeadLetterPolicyList 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 DataGooglePubsubSubscriptionDeadLetterPolicyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGooglePubsubSubscriptionDeadLetterPolicyList = DataGooglePubsubSubscriptionDeadLetterPolicyList; _h = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionDeadLetterPolicyList[_h] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionDeadLetterPolicyList", version: "16.3.0" }; function dataGooglePubsubSubscriptionExpirationPolicyToTerraform(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 dataGooglePubsubSubscriptionExpirationPolicyToHclTerraform(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 DataGooglePubsubSubscriptionExpirationPolicyOutputReference 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; } } // ttl - computed: true, optional: false, required: false get ttl() { return this.getStringAttribute('ttl'); } } exports.DataGooglePubsubSubscriptionExpirationPolicyOutputReference = DataGooglePubsubSubscriptionExpirationPolicyOutputReference; _j = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionExpirationPolicyOutputReference[_j] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionExpirationPolicyOutputReference", version: "16.3.0" }; class DataGooglePubsubSubscriptionExpirationPolicyList 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 DataGooglePubsubSubscriptionExpirationPolicyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGooglePubsubSubscriptionExpirationPolicyList = DataGooglePubsubSubscriptionExpirationPolicyList; _k = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionExpirationPolicyList[_k] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionExpirationPolicyList", version: "16.3.0" }; function dataGooglePubsubSubscriptionMessageTransformsJavascriptUdfToTerraform(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 dataGooglePubsubSubscriptionMessageTransformsJavascriptUdfToHclTerraform(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 DataGooglePubsubSubscriptionMessageTransformsJavascriptUdfOutputReference 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; } } // code - computed: true, optional: false, required: false get code() { return this.getStringAttribute('code'); } // function_name - computed: true, optional: false, required: false get functionName() { return this.getStringAttribute('function_name'); } } exports.DataGooglePubsubSubscriptionMessageTransformsJavascriptUdfOutputReference = DataGooglePubsubSubscriptionMessageTransformsJavascriptUdfOutputReference; _l = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionMessageTransformsJavascriptUdfOutputReference[_l] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionMessageTransformsJavascriptUdfOutputReference", version: "16.3.0" }; class DataGooglePubsubSubscriptionMessageTransformsJavascriptUdfList 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 DataGooglePubsubSubscriptionMessageTransformsJavascriptUdfOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGooglePubsubSubscriptionMessageTransformsJavascriptUdfList = DataGooglePubsubSubscriptionMessageTransformsJavascriptUdfList; _m = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionMessageTransformsJavascriptUdfList[_m] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionMessageTransformsJavascriptUdfList", version: "16.3.0" }; function dataGooglePubsubSubscriptionMessageTransformsToTerraform(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 dataGooglePubsubSubscriptionMessageTransformsToHclTerraform(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 DataGooglePubsubSubscriptionMessageTransformsOutputReference 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; // javascript_udf - computed: true, optional: false, required: false this._javascriptUdf = new DataGooglePubsubSubscriptionMessageTransformsJavascriptUdfList(this, "javascript_udf", 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; } } // disabled - computed: true, optional: false, required: false get disabled() { return this.getBooleanAttribute('disabled'); } get javascriptUdf() { return this._javascriptUdf; } } exports.DataGooglePubsubSubscriptionMessageTransformsOutputReference = DataGooglePubsubSubscriptionMessageTransformsOutputReference; _o = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionMessageTransformsOutputReference[_o] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionMessageTransformsOutputReference", version: "16.3.0" }; class DataGooglePubsubSubscriptionMessageTransformsList 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 DataGooglePubsubSubscriptionMessageTransformsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGooglePubsubSubscriptionMessageTransformsList = DataGooglePubsubSubscriptionMessageTransformsList; _p = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionMessageTransformsList[_p] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionMessageTransformsList", version: "16.3.0" }; function dataGooglePubsubSubscriptionPushConfigNoWrapperToTerraform(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 dataGooglePubsubSubscriptionPushConfigNoWrapperToHclTerraform(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 DataGooglePubsubSubscriptionPushConfigNoWrapperOutputReference 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; } } // write_metadata - computed: true, optional: false, required: false get writeMetadata() { return this.getBooleanAttribute('write_metadata'); } } exports.DataGooglePubsubSubscriptionPushConfigNoWrapperOutputReference = DataGooglePubsubSubscriptionPushConfigNoWrapperOutputReference; _q = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionPushConfigNoWrapperOutputReference[_q] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionPushConfigNoWrapperOutputReference", version: "16.3.0" }; class DataGooglePubsubSubscriptionPushConfigNoWrapperList 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 DataGooglePubsubSubscriptionPushConfigNoWrapperOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGooglePubsubSubscriptionPushConfigNoWrapperList = DataGooglePubsubSubscriptionPushConfigNoWrapperList; _r = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionPushConfigNoWrapperList[_r] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionPushConfigNoWrapperList", version: "16.3.0" }; function dataGooglePubsubSubscriptionPushConfigOidcTokenToTerraform(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 dataGooglePubsubSubscriptionPushConfigOidcTokenToHclTerraform(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 DataGooglePubsubSubscriptionPushConfigOidcTokenOutputReference 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; } } // audience - computed: true, optional: false, required: false get audience() { return this.getStringAttribute('audience'); } // service_account_email - computed: true, optional: false, required: false get serviceAccountEmail() { return this.getStringAttribute('service_account_email'); } } exports.DataGooglePubsubSubscriptionPushConfigOidcTokenOutputReference = DataGooglePubsubSubscriptionPushConfigOidcTokenOutputReference; _s = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionPushConfigOidcTokenOutputReference[_s] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionPushConfigOidcTokenOutputReference", version: "16.3.0" }; class DataGooglePubsubSubscriptionPushConfigOidcTokenList 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 DataGooglePubsubSubscriptionPushConfigOidcTokenOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGooglePubsubSubscriptionPushConfigOidcTokenList = DataGooglePubsubSubscriptionPushConfigOidcTokenList; _t = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionPushConfigOidcTokenList[_t] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionPushConfigOidcTokenList", version: "16.3.0" }; function dataGooglePubsubSubscriptionPushConfigToTerraform(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 dataGooglePubsubSubscriptionPushConfigToHclTerraform(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 DataGooglePubsubSubscriptionPushConfigOutputReference 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; // attributes - computed: true, optional: false, required: false this._attributes = new cdktf.StringMap(this, "attributes"); // no_wrapper - computed: true, optional: false, required: false this._noWrapper = new DataGooglePubsubSubscriptionPushConfigNoWrapperList(this, "no_wrapper", false); // oidc_token - computed: true, optional: false, required: false this._oidcToken = new DataGooglePubsubSubscriptionPushConfigOidcTokenList(this, "oidc_token", 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 attributes() { return this._attributes; } get noWrapper() { return this._noWrapper; } get oidcToken() { return this._oidcToken; } // push_endpoint - computed: true, optional: false, required: false get pushEndpoint() { return this.getStringAttribute('push_endpoint'); } } exports.DataGooglePubsubSubscriptionPushConfigOutputReference = DataGooglePubsubSubscriptionPushConfigOutputReference; _u = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionPushConfigOutputReference[_u] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionPushConfigOutputReference", version: "16.3.0" }; class DataGooglePubsubSubscriptionPushConfigList 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 DataGooglePubsubSubscriptionPushConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGooglePubsubSubscriptionPushConfigList = DataGooglePubsubSubscriptionPushConfigList; _v = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionPushConfigList[_v] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionPushConfigList", version: "16.3.0" }; function dataGooglePubsubSubscriptionRetryPolicyToTerraform(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 dataGooglePubsubSubscriptionRetryPolicyToHclTerraform(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 DataGooglePubsubSubscriptionRetryPolicyOutputReference 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; } } // maximum_backoff - computed: true, optional: false, required: false get maximumBackoff() { return this.getStringAttribute('maximum_backoff'); } // minimum_backoff - computed: true, optional: false, required: false get minimumBackoff() { return this.getStringAttribute('minimum_backoff'); } } exports.DataGooglePubsubSubscriptionRetryPolicyOutputReference = DataGooglePubsubSubscriptionRetryPolicyOutputReference; _w = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionRetryPolicyOutputReference[_w] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionRetryPolicyOutputReference", version: "16.3.0" }; class DataGooglePubsubSubscriptionRetryPolicyList 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 DataGooglePubsubSubscriptionRetryPolicyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGooglePubsubSubscriptionRetryPolicyList = DataGooglePubsubSubscriptionRetryPolicyList; _x = JSII_RTTI_SYMBOL_1; DataGooglePubsubSubscriptionRetryPolicyList[_x] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionRetryPolicyList", version: "16.3.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/data-sources/pubsub_subscription google_pubsub_subscription} */ class DataGooglePubsubSubscription extends cdktf.TerraformDataSource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DataGooglePubsubSubscription 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 DataGooglePubsubSubscription to import * @param importFromId The id of the existing DataGooglePubsubSubscription that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/data-sources/pubsub_subscription#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of