UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,167 lines 290 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; Object.defineProperty(exports, "__esModule", { value: true }); exports.PubsubTopic = exports.PubsubTopicTimeoutsOutputReference = exports.PubsubTopicSchemaSettingsOutputReference = exports.PubsubTopicMessageStoragePolicyOutputReference = exports.PubsubTopicIngestionDataSourceSettingsOutputReference = exports.PubsubTopicIngestionDataSourceSettingsPlatformLogsSettingsOutputReference = exports.PubsubTopicIngestionDataSourceSettingsConfluentCloudOutputReference = exports.PubsubTopicIngestionDataSourceSettingsCloudStorageOutputReference = exports.PubsubTopicIngestionDataSourceSettingsCloudStorageTextFormatOutputReference = exports.PubsubTopicIngestionDataSourceSettingsCloudStoragePubsubAvroFormatOutputReference = exports.PubsubTopicIngestionDataSourceSettingsCloudStorageAvroFormatOutputReference = exports.PubsubTopicIngestionDataSourceSettingsAzureEventHubsOutputReference = exports.PubsubTopicIngestionDataSourceSettingsAwsMskOutputReference = exports.PubsubTopicIngestionDataSourceSettingsAwsKinesisOutputReference = void 0; exports.pubsubTopicIngestionDataSourceSettingsAwsKinesisToTerraform = pubsubTopicIngestionDataSourceSettingsAwsKinesisToTerraform; exports.pubsubTopicIngestionDataSourceSettingsAwsKinesisToHclTerraform = pubsubTopicIngestionDataSourceSettingsAwsKinesisToHclTerraform; exports.pubsubTopicIngestionDataSourceSettingsAwsMskToTerraform = pubsubTopicIngestionDataSourceSettingsAwsMskToTerraform; exports.pubsubTopicIngestionDataSourceSettingsAwsMskToHclTerraform = pubsubTopicIngestionDataSourceSettingsAwsMskToHclTerraform; exports.pubsubTopicIngestionDataSourceSettingsAzureEventHubsToTerraform = pubsubTopicIngestionDataSourceSettingsAzureEventHubsToTerraform; exports.pubsubTopicIngestionDataSourceSettingsAzureEventHubsToHclTerraform = pubsubTopicIngestionDataSourceSettingsAzureEventHubsToHclTerraform; exports.pubsubTopicIngestionDataSourceSettingsCloudStorageAvroFormatToTerraform = pubsubTopicIngestionDataSourceSettingsCloudStorageAvroFormatToTerraform; exports.pubsubTopicIngestionDataSourceSettingsCloudStorageAvroFormatToHclTerraform = pubsubTopicIngestionDataSourceSettingsCloudStorageAvroFormatToHclTerraform; exports.pubsubTopicIngestionDataSourceSettingsCloudStoragePubsubAvroFormatToTerraform = pubsubTopicIngestionDataSourceSettingsCloudStoragePubsubAvroFormatToTerraform; exports.pubsubTopicIngestionDataSourceSettingsCloudStoragePubsubAvroFormatToHclTerraform = pubsubTopicIngestionDataSourceSettingsCloudStoragePubsubAvroFormatToHclTerraform; exports.pubsubTopicIngestionDataSourceSettingsCloudStorageTextFormatToTerraform = pubsubTopicIngestionDataSourceSettingsCloudStorageTextFormatToTerraform; exports.pubsubTopicIngestionDataSourceSettingsCloudStorageTextFormatToHclTerraform = pubsubTopicIngestionDataSourceSettingsCloudStorageTextFormatToHclTerraform; exports.pubsubTopicIngestionDataSourceSettingsCloudStorageToTerraform = pubsubTopicIngestionDataSourceSettingsCloudStorageToTerraform; exports.pubsubTopicIngestionDataSourceSettingsCloudStorageToHclTerraform = pubsubTopicIngestionDataSourceSettingsCloudStorageToHclTerraform; exports.pubsubTopicIngestionDataSourceSettingsConfluentCloudToTerraform = pubsubTopicIngestionDataSourceSettingsConfluentCloudToTerraform; exports.pubsubTopicIngestionDataSourceSettingsConfluentCloudToHclTerraform = pubsubTopicIngestionDataSourceSettingsConfluentCloudToHclTerraform; exports.pubsubTopicIngestionDataSourceSettingsPlatformLogsSettingsToTerraform = pubsubTopicIngestionDataSourceSettingsPlatformLogsSettingsToTerraform; exports.pubsubTopicIngestionDataSourceSettingsPlatformLogsSettingsToHclTerraform = pubsubTopicIngestionDataSourceSettingsPlatformLogsSettingsToHclTerraform; exports.pubsubTopicIngestionDataSourceSettingsToTerraform = pubsubTopicIngestionDataSourceSettingsToTerraform; exports.pubsubTopicIngestionDataSourceSettingsToHclTerraform = pubsubTopicIngestionDataSourceSettingsToHclTerraform; exports.pubsubTopicMessageStoragePolicyToTerraform = pubsubTopicMessageStoragePolicyToTerraform; exports.pubsubTopicMessageStoragePolicyToHclTerraform = pubsubTopicMessageStoragePolicyToHclTerraform; exports.pubsubTopicSchemaSettingsToTerraform = pubsubTopicSchemaSettingsToTerraform; exports.pubsubTopicSchemaSettingsToHclTerraform = pubsubTopicSchemaSettingsToHclTerraform; exports.pubsubTopicTimeoutsToTerraform = pubsubTopicTimeoutsToTerraform; exports.pubsubTopicTimeoutsToHclTerraform = pubsubTopicTimeoutsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function pubsubTopicIngestionDataSourceSettingsAwsKinesisToTerraform(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 { aws_role_arn: cdktf.stringToTerraform(struct.awsRoleArn), consumer_arn: cdktf.stringToTerraform(struct.consumerArn), gcp_service_account: cdktf.stringToTerraform(struct.gcpServiceAccount), stream_arn: cdktf.stringToTerraform(struct.streamArn), }; } function pubsubTopicIngestionDataSourceSettingsAwsKinesisToHclTerraform(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 = { aws_role_arn: { value: cdktf.stringToHclTerraform(struct.awsRoleArn), isBlock: false, type: "simple", storageClassType: "string", }, consumer_arn: { value: cdktf.stringToHclTerraform(struct.consumerArn), isBlock: false, type: "simple", storageClassType: "string", }, gcp_service_account: { value: cdktf.stringToHclTerraform(struct.gcpServiceAccount), isBlock: false, type: "simple", storageClassType: "string", }, stream_arn: { value: cdktf.stringToHclTerraform(struct.streamArn), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class PubsubTopicIngestionDataSourceSettingsAwsKinesisOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._awsRoleArn !== undefined) { hasAnyValues = true; internalValueResult.awsRoleArn = this._awsRoleArn; } if (this._consumerArn !== undefined) { hasAnyValues = true; internalValueResult.consumerArn = this._consumerArn; } if (this._gcpServiceAccount !== undefined) { hasAnyValues = true; internalValueResult.gcpServiceAccount = this._gcpServiceAccount; } if (this._streamArn !== undefined) { hasAnyValues = true; internalValueResult.streamArn = this._streamArn; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._awsRoleArn = undefined; this._consumerArn = undefined; this._gcpServiceAccount = undefined; this._streamArn = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._awsRoleArn = value.awsRoleArn; this._consumerArn = value.consumerArn; this._gcpServiceAccount = value.gcpServiceAccount; this._streamArn = value.streamArn; } } get awsRoleArn() { return this.getStringAttribute('aws_role_arn'); } set awsRoleArn(value) { this._awsRoleArn = value; } // Temporarily expose input value. Use with caution. get awsRoleArnInput() { return this._awsRoleArn; } get consumerArn() { return this.getStringAttribute('consumer_arn'); } set consumerArn(value) { this._consumerArn = value; } // Temporarily expose input value. Use with caution. get consumerArnInput() { return this._consumerArn; } get gcpServiceAccount() { return this.getStringAttribute('gcp_service_account'); } set gcpServiceAccount(value) { this._gcpServiceAccount = value; } // Temporarily expose input value. Use with caution. get gcpServiceAccountInput() { return this._gcpServiceAccount; } get streamArn() { return this.getStringAttribute('stream_arn'); } set streamArn(value) { this._streamArn = value; } // Temporarily expose input value. Use with caution. get streamArnInput() { return this._streamArn; } } exports.PubsubTopicIngestionDataSourceSettingsAwsKinesisOutputReference = PubsubTopicIngestionDataSourceSettingsAwsKinesisOutputReference; _a = JSII_RTTI_SYMBOL_1; PubsubTopicIngestionDataSourceSettingsAwsKinesisOutputReference[_a] = { fqn: "@cdktf/provider-google.pubsubTopic.PubsubTopicIngestionDataSourceSettingsAwsKinesisOutputReference", version: "14.35.1" }; function pubsubTopicIngestionDataSourceSettingsAwsMskToTerraform(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 { aws_role_arn: cdktf.stringToTerraform(struct.awsRoleArn), cluster_arn: cdktf.stringToTerraform(struct.clusterArn), gcp_service_account: cdktf.stringToTerraform(struct.gcpServiceAccount), topic: cdktf.stringToTerraform(struct.topic), }; } function pubsubTopicIngestionDataSourceSettingsAwsMskToHclTerraform(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 = { aws_role_arn: { value: cdktf.stringToHclTerraform(struct.awsRoleArn), isBlock: false, type: "simple", storageClassType: "string", }, cluster_arn: { value: cdktf.stringToHclTerraform(struct.clusterArn), isBlock: false, type: "simple", storageClassType: "string", }, gcp_service_account: { value: cdktf.stringToHclTerraform(struct.gcpServiceAccount), isBlock: false, type: "simple", storageClassType: "string", }, topic: { value: cdktf.stringToHclTerraform(struct.topic), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class PubsubTopicIngestionDataSourceSettingsAwsMskOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._awsRoleArn !== undefined) { hasAnyValues = true; internalValueResult.awsRoleArn = this._awsRoleArn; } if (this._clusterArn !== undefined) { hasAnyValues = true; internalValueResult.clusterArn = this._clusterArn; } if (this._gcpServiceAccount !== undefined) { hasAnyValues = true; internalValueResult.gcpServiceAccount = this._gcpServiceAccount; } if (this._topic !== undefined) { hasAnyValues = true; internalValueResult.topic = this._topic; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._awsRoleArn = undefined; this._clusterArn = undefined; this._gcpServiceAccount = undefined; this._topic = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._awsRoleArn = value.awsRoleArn; this._clusterArn = value.clusterArn; this._gcpServiceAccount = value.gcpServiceAccount; this._topic = value.topic; } } get awsRoleArn() { return this.getStringAttribute('aws_role_arn'); } set awsRoleArn(value) { this._awsRoleArn = value; } // Temporarily expose input value. Use with caution. get awsRoleArnInput() { return this._awsRoleArn; } get clusterArn() { return this.getStringAttribute('cluster_arn'); } set clusterArn(value) { this._clusterArn = value; } // Temporarily expose input value. Use with caution. get clusterArnInput() { return this._clusterArn; } get gcpServiceAccount() { return this.getStringAttribute('gcp_service_account'); } set gcpServiceAccount(value) { this._gcpServiceAccount = value; } // Temporarily expose input value. Use with caution. get gcpServiceAccountInput() { return this._gcpServiceAccount; } get topic() { return this.getStringAttribute('topic'); } set topic(value) { this._topic = value; } // Temporarily expose input value. Use with caution. get topicInput() { return this._topic; } } exports.PubsubTopicIngestionDataSourceSettingsAwsMskOutputReference = PubsubTopicIngestionDataSourceSettingsAwsMskOutputReference; _b = JSII_RTTI_SYMBOL_1; PubsubTopicIngestionDataSourceSettingsAwsMskOutputReference[_b] = { fqn: "@cdktf/provider-google.pubsubTopic.PubsubTopicIngestionDataSourceSettingsAwsMskOutputReference", version: "14.35.1" }; function pubsubTopicIngestionDataSourceSettingsAzureEventHubsToTerraform(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 { client_id: cdktf.stringToTerraform(struct.clientId), event_hub: cdktf.stringToTerraform(struct.eventHub), gcp_service_account: cdktf.stringToTerraform(struct.gcpServiceAccount), namespace: cdktf.stringToTerraform(struct.namespace), resource_group: cdktf.stringToTerraform(struct.resourceGroup), subscription_id: cdktf.stringToTerraform(struct.subscriptionId), tenant_id: cdktf.stringToTerraform(struct.tenantId), }; } function pubsubTopicIngestionDataSourceSettingsAzureEventHubsToHclTerraform(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 = { client_id: { value: cdktf.stringToHclTerraform(struct.clientId), isBlock: false, type: "simple", storageClassType: "string", }, event_hub: { value: cdktf.stringToHclTerraform(struct.eventHub), isBlock: false, type: "simple", storageClassType: "string", }, gcp_service_account: { value: cdktf.stringToHclTerraform(struct.gcpServiceAccount), isBlock: false, type: "simple", storageClassType: "string", }, namespace: { value: cdktf.stringToHclTerraform(struct.namespace), isBlock: false, type: "simple", storageClassType: "string", }, resource_group: { value: cdktf.stringToHclTerraform(struct.resourceGroup), isBlock: false, type: "simple", storageClassType: "string", }, subscription_id: { value: cdktf.stringToHclTerraform(struct.subscriptionId), isBlock: false, type: "simple", storageClassType: "string", }, tenant_id: { value: cdktf.stringToHclTerraform(struct.tenantId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class PubsubTopicIngestionDataSourceSettingsAzureEventHubsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._clientId !== undefined) { hasAnyValues = true; internalValueResult.clientId = this._clientId; } if (this._eventHub !== undefined) { hasAnyValues = true; internalValueResult.eventHub = this._eventHub; } if (this._gcpServiceAccount !== undefined) { hasAnyValues = true; internalValueResult.gcpServiceAccount = this._gcpServiceAccount; } if (this._namespace !== undefined) { hasAnyValues = true; internalValueResult.namespace = this._namespace; } if (this._resourceGroup !== undefined) { hasAnyValues = true; internalValueResult.resourceGroup = this._resourceGroup; } if (this._subscriptionId !== undefined) { hasAnyValues = true; internalValueResult.subscriptionId = this._subscriptionId; } if (this._tenantId !== undefined) { hasAnyValues = true; internalValueResult.tenantId = this._tenantId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._clientId = undefined; this._eventHub = undefined; this._gcpServiceAccount = undefined; this._namespace = undefined; this._resourceGroup = undefined; this._subscriptionId = undefined; this._tenantId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._clientId = value.clientId; this._eventHub = value.eventHub; this._gcpServiceAccount = value.gcpServiceAccount; this._namespace = value.namespace; this._resourceGroup = value.resourceGroup; this._subscriptionId = value.subscriptionId; this._tenantId = value.tenantId; } } get clientId() { return this.getStringAttribute('client_id'); } set clientId(value) { this._clientId = value; } resetClientId() { this._clientId = undefined; } // Temporarily expose input value. Use with caution. get clientIdInput() { return this._clientId; } get eventHub() { return this.getStringAttribute('event_hub'); } set eventHub(value) { this._eventHub = value; } resetEventHub() { this._eventHub = undefined; } // Temporarily expose input value. Use with caution. get eventHubInput() { return this._eventHub; } get gcpServiceAccount() { return this.getStringAttribute('gcp_service_account'); } set gcpServiceAccount(value) { this._gcpServiceAccount = value; } resetGcpServiceAccount() { this._gcpServiceAccount = undefined; } // Temporarily expose input value. Use with caution. get gcpServiceAccountInput() { return this._gcpServiceAccount; } get namespace() { return this.getStringAttribute('namespace'); } set namespace(value) { this._namespace = value; } resetNamespace() { this._namespace = undefined; } // Temporarily expose input value. Use with caution. get namespaceInput() { return this._namespace; } get resourceGroup() { return this.getStringAttribute('resource_group'); } set resourceGroup(value) { this._resourceGroup = value; } resetResourceGroup() { this._resourceGroup = undefined; } // Temporarily expose input value. Use with caution. get resourceGroupInput() { return this._resourceGroup; } get subscriptionId() { return this.getStringAttribute('subscription_id'); } set subscriptionId(value) { this._subscriptionId = value; } resetSubscriptionId() { this._subscriptionId = undefined; } // Temporarily expose input value. Use with caution. get subscriptionIdInput() { return this._subscriptionId; } get tenantId() { return this.getStringAttribute('tenant_id'); } set tenantId(value) { this._tenantId = value; } resetTenantId() { this._tenantId = undefined; } // Temporarily expose input value. Use with caution. get tenantIdInput() { return this._tenantId; } } exports.PubsubTopicIngestionDataSourceSettingsAzureEventHubsOutputReference = PubsubTopicIngestionDataSourceSettingsAzureEventHubsOutputReference; _c = JSII_RTTI_SYMBOL_1; PubsubTopicIngestionDataSourceSettingsAzureEventHubsOutputReference[_c] = { fqn: "@cdktf/provider-google.pubsubTopic.PubsubTopicIngestionDataSourceSettingsAzureEventHubsOutputReference", version: "14.35.1" }; function pubsubTopicIngestionDataSourceSettingsCloudStorageAvroFormatToTerraform(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 pubsubTopicIngestionDataSourceSettingsCloudStorageAvroFormatToHclTerraform(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 PubsubTopicIngestionDataSourceSettingsCloudStorageAvroFormatOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); 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; } } } exports.PubsubTopicIngestionDataSourceSettingsCloudStorageAvroFormatOutputReference = PubsubTopicIngestionDataSourceSettingsCloudStorageAvroFormatOutputReference; _d = JSII_RTTI_SYMBOL_1; PubsubTopicIngestionDataSourceSettingsCloudStorageAvroFormatOutputReference[_d] = { fqn: "@cdktf/provider-google.pubsubTopic.PubsubTopicIngestionDataSourceSettingsCloudStorageAvroFormatOutputReference", version: "14.35.1" }; function pubsubTopicIngestionDataSourceSettingsCloudStoragePubsubAvroFormatToTerraform(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 pubsubTopicIngestionDataSourceSettingsCloudStoragePubsubAvroFormatToHclTerraform(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 PubsubTopicIngestionDataSourceSettingsCloudStoragePubsubAvroFormatOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); 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; } } } exports.PubsubTopicIngestionDataSourceSettingsCloudStoragePubsubAvroFormatOutputReference = PubsubTopicIngestionDataSourceSettingsCloudStoragePubsubAvroFormatOutputReference; _e = JSII_RTTI_SYMBOL_1; PubsubTopicIngestionDataSourceSettingsCloudStoragePubsubAvroFormatOutputReference[_e] = { fqn: "@cdktf/provider-google.pubsubTopic.PubsubTopicIngestionDataSourceSettingsCloudStoragePubsubAvroFormatOutputReference", version: "14.35.1" }; function pubsubTopicIngestionDataSourceSettingsCloudStorageTextFormatToTerraform(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 { delimiter: cdktf.stringToTerraform(struct.delimiter), }; } function pubsubTopicIngestionDataSourceSettingsCloudStorageTextFormatToHclTerraform(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 = { delimiter: { value: cdktf.stringToHclTerraform(struct.delimiter), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class PubsubTopicIngestionDataSourceSettingsCloudStorageTextFormatOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._delimiter !== undefined) { hasAnyValues = true; internalValueResult.delimiter = this._delimiter; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._delimiter = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._delimiter = value.delimiter; } } get delimiter() { return this.getStringAttribute('delimiter'); } set delimiter(value) { this._delimiter = value; } resetDelimiter() { this._delimiter = undefined; } // Temporarily expose input value. Use with caution. get delimiterInput() { return this._delimiter; } } exports.PubsubTopicIngestionDataSourceSettingsCloudStorageTextFormatOutputReference = PubsubTopicIngestionDataSourceSettingsCloudStorageTextFormatOutputReference; _f = JSII_RTTI_SYMBOL_1; PubsubTopicIngestionDataSourceSettingsCloudStorageTextFormatOutputReference[_f] = { fqn: "@cdktf/provider-google.pubsubTopic.PubsubTopicIngestionDataSourceSettingsCloudStorageTextFormatOutputReference", version: "14.35.1" }; function pubsubTopicIngestionDataSourceSettingsCloudStorageToTerraform(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 { bucket: cdktf.stringToTerraform(struct.bucket), match_glob: cdktf.stringToTerraform(struct.matchGlob), minimum_object_create_time: cdktf.stringToTerraform(struct.minimumObjectCreateTime), avro_format: pubsubTopicIngestionDataSourceSettingsCloudStorageAvroFormatToTerraform(struct.avroFormat), pubsub_avro_format: pubsubTopicIngestionDataSourceSettingsCloudStoragePubsubAvroFormatToTerraform(struct.pubsubAvroFormat), text_format: pubsubTopicIngestionDataSourceSettingsCloudStorageTextFormatToTerraform(struct.textFormat), }; } function pubsubTopicIngestionDataSourceSettingsCloudStorageToHclTerraform(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 = { bucket: { value: cdktf.stringToHclTerraform(struct.bucket), isBlock: false, type: "simple", storageClassType: "string", }, match_glob: { value: cdktf.stringToHclTerraform(struct.matchGlob), isBlock: false, type: "simple", storageClassType: "string", }, minimum_object_create_time: { value: cdktf.stringToHclTerraform(struct.minimumObjectCreateTime), isBlock: false, type: "simple", storageClassType: "string", }, avro_format: { value: pubsubTopicIngestionDataSourceSettingsCloudStorageAvroFormatToHclTerraform(struct.avroFormat), isBlock: true, type: "list", storageClassType: "PubsubTopicIngestionDataSourceSettingsCloudStorageAvroFormatList", }, pubsub_avro_format: { value: pubsubTopicIngestionDataSourceSettingsCloudStoragePubsubAvroFormatToHclTerraform(struct.pubsubAvroFormat), isBlock: true, type: "list", storageClassType: "PubsubTopicIngestionDataSourceSettingsCloudStoragePubsubAvroFormatList", }, text_format: { value: pubsubTopicIngestionDataSourceSettingsCloudStorageTextFormatToHclTerraform(struct.textFormat), isBlock: true, type: "list", storageClassType: "PubsubTopicIngestionDataSourceSettingsCloudStorageTextFormatList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class PubsubTopicIngestionDataSourceSettingsCloudStorageOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; // avro_format - computed: false, optional: true, required: false this._avroFormat = new PubsubTopicIngestionDataSourceSettingsCloudStorageAvroFormatOutputReference(this, "avro_format"); // pubsub_avro_format - computed: false, optional: true, required: false this._pubsubAvroFormat = new PubsubTopicIngestionDataSourceSettingsCloudStoragePubsubAvroFormatOutputReference(this, "pubsub_avro_format"); // text_format - computed: false, optional: true, required: false this._textFormat = new PubsubTopicIngestionDataSourceSettingsCloudStorageTextFormatOutputReference(this, "text_format"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._bucket !== undefined) { hasAnyValues = true; internalValueResult.bucket = this._bucket; } if (this._matchGlob !== undefined) { hasAnyValues = true; internalValueResult.matchGlob = this._matchGlob; } if (this._minimumObjectCreateTime !== undefined) { hasAnyValues = true; internalValueResult.minimumObjectCreateTime = this._minimumObjectCreateTime; } if (this._avroFormat?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.avroFormat = this._avroFormat?.internalValue; } if (this._pubsubAvroFormat?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.pubsubAvroFormat = this._pubsubAvroFormat?.internalValue; } if (this._textFormat?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.textFormat = this._textFormat?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._bucket = undefined; this._matchGlob = undefined; this._minimumObjectCreateTime = undefined; this._avroFormat.internalValue = undefined; this._pubsubAvroFormat.internalValue = undefined; this._textFormat.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._bucket = value.bucket; this._matchGlob = value.matchGlob; this._minimumObjectCreateTime = value.minimumObjectCreateTime; this._avroFormat.internalValue = value.avroFormat; this._pubsubAvroFormat.internalValue = value.pubsubAvroFormat; this._textFormat.internalValue = value.textFormat; } } get bucket() { return this.getStringAttribute('bucket'); } set bucket(value) { this._bucket = value; } // Temporarily expose input value. Use with caution. get bucketInput() { return this._bucket; } get matchGlob() { return this.getStringAttribute('match_glob'); } set matchGlob(value) { this._matchGlob = value; } resetMatchGlob() { this._matchGlob = undefined; } // Temporarily expose input value. Use with caution. get matchGlobInput() { return this._matchGlob; } get minimumObjectCreateTime() { return this.getStringAttribute('minimum_object_create_time'); } set minimumObjectCreateTime(value) { this._minimumObjectCreateTime = value; } resetMinimumObjectCreateTime() { this._minimumObjectCreateTime = undefined; } // Temporarily expose input value. Use with caution. get minimumObjectCreateTimeInput() { return this._minimumObjectCreateTime; } get avroFormat() { return this._avroFormat; } putAvroFormat(value) { this._avroFormat.internalValue = value; } resetAvroFormat() { this._avroFormat.internalValue = undefined; } // Temporarily expose input value. Use with caution. get avroFormatInput() { return this._avroFormat.internalValue; } get pubsubAvroFormat() { return this._pubsubAvroFormat; } putPubsubAvroFormat(value) { this._pubsubAvroFormat.internalValue = value; } resetPubsubAvroFormat() { this._pubsubAvroFormat.internalValue = undefined; } // Temporarily expose input value. Use with caution. get pubsubAvroFormatInput() { return this._pubsubAvroFormat.internalValue; } get textFormat() { return this._textFormat; } putTextFormat(value) { this._textFormat.internalValue = value; } resetTextFormat() { this._textFormat.internalValue = undefined; } // Temporarily expose input value. Use with caution. get textFormatInput() { return this._textFormat.internalValue; } } exports.PubsubTopicIngestionDataSourceSettingsCloudStorageOutputReference = PubsubTopicIngestionDataSourceSettingsCloudStorageOutputReference; _g = JSII_RTTI_SYMBOL_1; PubsubTopicIngestionDataSourceSettingsCloudStorageOutputReference[_g] = { fqn: "@cdktf/provider-google.pubsubTopic.PubsubTopicIngestionDataSourceSettingsCloudStorageOutputReference", version: "14.35.1" }; function pubsubTopicIngestionDataSourceSettingsConfluentCloudToTerraform(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 { bootstrap_server: cdktf.stringToTerraform(struct.bootstrapServer), cluster_id: cdktf.stringToTerraform(struct.clusterId), gcp_service_account: cdktf.stringToTerraform(struct.gcpServiceAccount), identity_pool_id: cdktf.stringToTerraform(struct.identityPoolId), topic: cdktf.stringToTerraform(struct.topic), }; } function pubsubTopicIngestionDataSourceSettingsConfluentCloudToHclTerraform(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 = { bootstrap_server: { value: cdktf.stringToHclTerraform(struct.bootstrapServer), isBlock: false, type: "simple", storageClassType: "string", }, cluster_id: { value: cdktf.stringToHclTerraform(struct.clusterId), isBlock: false, type: "simple", storageClassType: "string", }, gcp_service_account: { value: cdktf.stringToHclTerraform(struct.gcpServiceAccount), isBlock: false, type: "simple", storageClassType: "string", }, identity_pool_id: { value: cdktf.stringToHclTerraform(struct.identityPoolId), isBlock: false, type: "simple", storageClassType: "string", }, topic: { value: cdktf.stringToHclTerraform(struct.topic), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class PubsubTopicIngestionDataSourceSettingsConfluentCloudOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._bootstrapServer !== undefined) { hasAnyValues = true; internalValueResult.bootstrapServer = this._bootstrapServer; } if (this._clusterId !== undefined) { hasAnyValues = true; internalValueResult.clusterId = this._clusterId; } if (this._gcpServiceAccount !== undefined) { hasAnyValues = true; internalValueResult.gcpServiceAccount = this._gcpServiceAccount; } if (this._identityPoolId !== undefined) { hasAnyValues = true; internalValueResult.identityPoolId = this._identityPoolId; } if (this._topic !== undefined) { hasAnyValues = true; internalValueResult.topic = this._topic; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._bootstrapServer = undefined; this._clusterId = undefined; this._gcpServiceAccount = undefined; this._identityPoolId = undefined; this._topic = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._bootstrapServer = value.bootstrapServer; this._clusterId = value.clusterId; this._gcpServiceAccount = value.gcpServiceAccount; this._identityPoolId = value.identityPoolId; this._topic = value.topic; } } get bootstrapServer() { return this.getStringAttribute('bootstrap_server'); } set bootstrapServer(value) { this._bootstrapServer = value; } // Temporarily expose input value. Use with caution. get bootstrapServerInput() { return this._bootstrapServer; } get clusterId() { return this.getStringAttribute('cluster_id'); } set clusterId(value) { this._clusterId = value; } resetClusterId() { this._clusterId = undefined; } // Temporarily expose input value. Use with caution. get clusterIdInput() { return this._clusterId; } get gcpServiceAccount() { return this.getStringAttribute('gcp_service_account'); } set gcpServiceAccount(value) { this._gcpServiceAccount = value; } // Temporarily expose input value. Use with caution. get gcpServiceAccountInput() { return this._gcpServiceAccount; } get identityPoolId() { return this.getStringAttribute('identity_pool_id'); } set identityPoolId(value) { this._identityPoolId = value; } // Temporarily expose input value. Use with caution. get identityPoolIdInput() { return this._identityPoolId; } get topic() { return this.getStringAttribute('topic'); } set topic(value) { this._topic = value; } // Temporarily expose input value. Use with caution. get topicInput() { return this._topic; } } exports.PubsubTopicIngestionDataSourceSettingsConfluentCloudOutputReference = PubsubTopicIngestionDataSourceSettingsConfluentCloudOutputReference; _h = JSII_RTTI_SYMBOL_1; PubsubTopicIngestionDataSourceSettingsConfluentCloudOutputReference[_h] = { fqn: "@cdktf/provider-google.pubsubTopic.PubsubTopicIngestionDataSourceSettingsConfluentCloudOutputReference", version: "14.35.1" }; function pubsubTopicIngestionDataSourceSettingsPlatformLogsSettingsToTerraform(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 { severity: cdktf.stringToTerraform(struct.severity), }; } function pubsubTopicIngestionDataSourceSettingsPlatformLogsSettingsToHclTerraform(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 = { severity: { value: cdktf.stringToHclTerraform(struct.severity), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class PubsubTopicIngestionDataSourceSettingsPlatformLogsSettingsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._severity !== undefined) { hasAnyValues = true; internalValueResult.severity = this._severity; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._severity = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._severity = value.severity; } } get severity() { return this.getStringAttribute('severity'); } set severity(value) { this._severity = value; } resetSeverity() { this._severity = undefined; } // Temporarily expose input value. Use with caution. get severityInput() { return this._severity; } } exports.PubsubTopicIngestionDataSourceSettingsPlatformLogsSettingsOutputReference = PubsubTopicIngestionDataSourceSettingsPlatformLogsSettingsOutputReference; _j = JSII_RTTI_SYMBOL_1; PubsubTopicIngestionDataSourceSettingsPlatformLogsSettingsOutputReference[_j] = { fqn: "@cdktf/provider-google.pubsubTopic.PubsubTopicIngestionDataSourceSettingsPlatformLogsSettingsOutputReference", version: "14.35.1" }; function pubsubTopicIngestionDataSourceSettingsToTerraform(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 { aws_kinesis: pubsubTopicIngestionDataSourceSettingsAwsKinesisToTerraform(struct.awsKinesis), aws_msk: pubsubTopicIngestionDataSourceSettingsAwsMskToTerraform(struct.awsMsk), azure_event_hubs: pubsubTopicIngestionDataSourceSettingsAzureEventHubsToTerraform(struct.azureEventHubs), cloud_storage: pubsubTopicIngestionDataSourceSettingsCloudStorageToTerraform(struct.cloudStorage), confluent_cloud: pubsubTopicIngestionDataSourceSettingsConfluentCloudToTerraform(struct.confluentCloud), platform_logs_settings: pubsubTopicIngestionDataSourceSettingsPlatformLogsSettingsToTerraform(struct.platformLogsS