UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,088 lines 354 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; Object.defineProperty(exports, "__esModule", { value: true }); exports.EventarcPipeline = exports.EventarcPipelineTimeoutsOutputReference = exports.EventarcPipelineRetryPolicyOutputReference = exports.EventarcPipelineMediationsList = exports.EventarcPipelineMediationsOutputReference = exports.EventarcPipelineMediationsTransformationOutputReference = exports.EventarcPipelineLoggingConfigOutputReference = exports.EventarcPipelineInputPayloadFormatOutputReference = exports.EventarcPipelineInputPayloadFormatProtobufOutputReference = exports.EventarcPipelineInputPayloadFormatJsonOutputReference = exports.EventarcPipelineInputPayloadFormatAvroOutputReference = exports.EventarcPipelineDestinationsList = exports.EventarcPipelineDestinationsOutputReference = exports.EventarcPipelineDestinationsOutputPayloadFormatOutputReference = exports.EventarcPipelineDestinationsOutputPayloadFormatProtobufOutputReference = exports.EventarcPipelineDestinationsOutputPayloadFormatJsonOutputReference = exports.EventarcPipelineDestinationsOutputPayloadFormatAvroOutputReference = exports.EventarcPipelineDestinationsNetworkConfigOutputReference = exports.EventarcPipelineDestinationsHttpEndpointOutputReference = exports.EventarcPipelineDestinationsAuthenticationConfigOutputReference = exports.EventarcPipelineDestinationsAuthenticationConfigOauthTokenOutputReference = exports.EventarcPipelineDestinationsAuthenticationConfigGoogleOidcOutputReference = void 0; exports.eventarcPipelineDestinationsAuthenticationConfigGoogleOidcToTerraform = eventarcPipelineDestinationsAuthenticationConfigGoogleOidcToTerraform; exports.eventarcPipelineDestinationsAuthenticationConfigGoogleOidcToHclTerraform = eventarcPipelineDestinationsAuthenticationConfigGoogleOidcToHclTerraform; exports.eventarcPipelineDestinationsAuthenticationConfigOauthTokenToTerraform = eventarcPipelineDestinationsAuthenticationConfigOauthTokenToTerraform; exports.eventarcPipelineDestinationsAuthenticationConfigOauthTokenToHclTerraform = eventarcPipelineDestinationsAuthenticationConfigOauthTokenToHclTerraform; exports.eventarcPipelineDestinationsAuthenticationConfigToTerraform = eventarcPipelineDestinationsAuthenticationConfigToTerraform; exports.eventarcPipelineDestinationsAuthenticationConfigToHclTerraform = eventarcPipelineDestinationsAuthenticationConfigToHclTerraform; exports.eventarcPipelineDestinationsHttpEndpointToTerraform = eventarcPipelineDestinationsHttpEndpointToTerraform; exports.eventarcPipelineDestinationsHttpEndpointToHclTerraform = eventarcPipelineDestinationsHttpEndpointToHclTerraform; exports.eventarcPipelineDestinationsNetworkConfigToTerraform = eventarcPipelineDestinationsNetworkConfigToTerraform; exports.eventarcPipelineDestinationsNetworkConfigToHclTerraform = eventarcPipelineDestinationsNetworkConfigToHclTerraform; exports.eventarcPipelineDestinationsOutputPayloadFormatAvroToTerraform = eventarcPipelineDestinationsOutputPayloadFormatAvroToTerraform; exports.eventarcPipelineDestinationsOutputPayloadFormatAvroToHclTerraform = eventarcPipelineDestinationsOutputPayloadFormatAvroToHclTerraform; exports.eventarcPipelineDestinationsOutputPayloadFormatJsonToTerraform = eventarcPipelineDestinationsOutputPayloadFormatJsonToTerraform; exports.eventarcPipelineDestinationsOutputPayloadFormatJsonToHclTerraform = eventarcPipelineDestinationsOutputPayloadFormatJsonToHclTerraform; exports.eventarcPipelineDestinationsOutputPayloadFormatProtobufToTerraform = eventarcPipelineDestinationsOutputPayloadFormatProtobufToTerraform; exports.eventarcPipelineDestinationsOutputPayloadFormatProtobufToHclTerraform = eventarcPipelineDestinationsOutputPayloadFormatProtobufToHclTerraform; exports.eventarcPipelineDestinationsOutputPayloadFormatToTerraform = eventarcPipelineDestinationsOutputPayloadFormatToTerraform; exports.eventarcPipelineDestinationsOutputPayloadFormatToHclTerraform = eventarcPipelineDestinationsOutputPayloadFormatToHclTerraform; exports.eventarcPipelineDestinationsToTerraform = eventarcPipelineDestinationsToTerraform; exports.eventarcPipelineDestinationsToHclTerraform = eventarcPipelineDestinationsToHclTerraform; exports.eventarcPipelineInputPayloadFormatAvroToTerraform = eventarcPipelineInputPayloadFormatAvroToTerraform; exports.eventarcPipelineInputPayloadFormatAvroToHclTerraform = eventarcPipelineInputPayloadFormatAvroToHclTerraform; exports.eventarcPipelineInputPayloadFormatJsonToTerraform = eventarcPipelineInputPayloadFormatJsonToTerraform; exports.eventarcPipelineInputPayloadFormatJsonToHclTerraform = eventarcPipelineInputPayloadFormatJsonToHclTerraform; exports.eventarcPipelineInputPayloadFormatProtobufToTerraform = eventarcPipelineInputPayloadFormatProtobufToTerraform; exports.eventarcPipelineInputPayloadFormatProtobufToHclTerraform = eventarcPipelineInputPayloadFormatProtobufToHclTerraform; exports.eventarcPipelineInputPayloadFormatToTerraform = eventarcPipelineInputPayloadFormatToTerraform; exports.eventarcPipelineInputPayloadFormatToHclTerraform = eventarcPipelineInputPayloadFormatToHclTerraform; exports.eventarcPipelineLoggingConfigToTerraform = eventarcPipelineLoggingConfigToTerraform; exports.eventarcPipelineLoggingConfigToHclTerraform = eventarcPipelineLoggingConfigToHclTerraform; exports.eventarcPipelineMediationsTransformationToTerraform = eventarcPipelineMediationsTransformationToTerraform; exports.eventarcPipelineMediationsTransformationToHclTerraform = eventarcPipelineMediationsTransformationToHclTerraform; exports.eventarcPipelineMediationsToTerraform = eventarcPipelineMediationsToTerraform; exports.eventarcPipelineMediationsToHclTerraform = eventarcPipelineMediationsToHclTerraform; exports.eventarcPipelineRetryPolicyToTerraform = eventarcPipelineRetryPolicyToTerraform; exports.eventarcPipelineRetryPolicyToHclTerraform = eventarcPipelineRetryPolicyToHclTerraform; exports.eventarcPipelineTimeoutsToTerraform = eventarcPipelineTimeoutsToTerraform; exports.eventarcPipelineTimeoutsToHclTerraform = eventarcPipelineTimeoutsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function eventarcPipelineDestinationsAuthenticationConfigGoogleOidcToTerraform(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 { audience: cdktf.stringToTerraform(struct.audience), service_account: cdktf.stringToTerraform(struct.serviceAccount), }; } function eventarcPipelineDestinationsAuthenticationConfigGoogleOidcToHclTerraform(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 = { audience: { value: cdktf.stringToHclTerraform(struct.audience), isBlock: false, type: "simple", storageClassType: "string", }, service_account: { value: cdktf.stringToHclTerraform(struct.serviceAccount), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EventarcPipelineDestinationsAuthenticationConfigGoogleOidcOutputReference 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._audience !== undefined) { hasAnyValues = true; internalValueResult.audience = this._audience; } if (this._serviceAccount !== undefined) { hasAnyValues = true; internalValueResult.serviceAccount = this._serviceAccount; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._audience = undefined; this._serviceAccount = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._audience = value.audience; this._serviceAccount = value.serviceAccount; } } get audience() { return this.getStringAttribute('audience'); } set audience(value) { this._audience = value; } resetAudience() { this._audience = undefined; } // Temporarily expose input value. Use with caution. get audienceInput() { return this._audience; } get serviceAccount() { return this.getStringAttribute('service_account'); } set serviceAccount(value) { this._serviceAccount = value; } // Temporarily expose input value. Use with caution. get serviceAccountInput() { return this._serviceAccount; } } exports.EventarcPipelineDestinationsAuthenticationConfigGoogleOidcOutputReference = EventarcPipelineDestinationsAuthenticationConfigGoogleOidcOutputReference; _a = JSII_RTTI_SYMBOL_1; EventarcPipelineDestinationsAuthenticationConfigGoogleOidcOutputReference[_a] = { fqn: "@cdktf/provider-google.eventarcPipeline.EventarcPipelineDestinationsAuthenticationConfigGoogleOidcOutputReference", version: "14.35.0" }; function eventarcPipelineDestinationsAuthenticationConfigOauthTokenToTerraform(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 { scope: cdktf.stringToTerraform(struct.scope), service_account: cdktf.stringToTerraform(struct.serviceAccount), }; } function eventarcPipelineDestinationsAuthenticationConfigOauthTokenToHclTerraform(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 = { scope: { value: cdktf.stringToHclTerraform(struct.scope), isBlock: false, type: "simple", storageClassType: "string", }, service_account: { value: cdktf.stringToHclTerraform(struct.serviceAccount), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EventarcPipelineDestinationsAuthenticationConfigOauthTokenOutputReference 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._scope !== undefined) { hasAnyValues = true; internalValueResult.scope = this._scope; } if (this._serviceAccount !== undefined) { hasAnyValues = true; internalValueResult.serviceAccount = this._serviceAccount; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._scope = undefined; this._serviceAccount = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._scope = value.scope; this._serviceAccount = value.serviceAccount; } } get scope() { return this.getStringAttribute('scope'); } set scope(value) { this._scope = value; } resetScope() { this._scope = undefined; } // Temporarily expose input value. Use with caution. get scopeInput() { return this._scope; } get serviceAccount() { return this.getStringAttribute('service_account'); } set serviceAccount(value) { this._serviceAccount = value; } // Temporarily expose input value. Use with caution. get serviceAccountInput() { return this._serviceAccount; } } exports.EventarcPipelineDestinationsAuthenticationConfigOauthTokenOutputReference = EventarcPipelineDestinationsAuthenticationConfigOauthTokenOutputReference; _b = JSII_RTTI_SYMBOL_1; EventarcPipelineDestinationsAuthenticationConfigOauthTokenOutputReference[_b] = { fqn: "@cdktf/provider-google.eventarcPipeline.EventarcPipelineDestinationsAuthenticationConfigOauthTokenOutputReference", version: "14.35.0" }; function eventarcPipelineDestinationsAuthenticationConfigToTerraform(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 { google_oidc: eventarcPipelineDestinationsAuthenticationConfigGoogleOidcToTerraform(struct.googleOidc), oauth_token: eventarcPipelineDestinationsAuthenticationConfigOauthTokenToTerraform(struct.oauthToken), }; } function eventarcPipelineDestinationsAuthenticationConfigToHclTerraform(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 = { google_oidc: { value: eventarcPipelineDestinationsAuthenticationConfigGoogleOidcToHclTerraform(struct.googleOidc), isBlock: true, type: "list", storageClassType: "EventarcPipelineDestinationsAuthenticationConfigGoogleOidcList", }, oauth_token: { value: eventarcPipelineDestinationsAuthenticationConfigOauthTokenToHclTerraform(struct.oauthToken), isBlock: true, type: "list", storageClassType: "EventarcPipelineDestinationsAuthenticationConfigOauthTokenList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EventarcPipelineDestinationsAuthenticationConfigOutputReference 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; // google_oidc - computed: false, optional: true, required: false this._googleOidc = new EventarcPipelineDestinationsAuthenticationConfigGoogleOidcOutputReference(this, "google_oidc"); // oauth_token - computed: false, optional: true, required: false this._oauthToken = new EventarcPipelineDestinationsAuthenticationConfigOauthTokenOutputReference(this, "oauth_token"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._googleOidc?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.googleOidc = this._googleOidc?.internalValue; } if (this._oauthToken?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.oauthToken = this._oauthToken?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._googleOidc.internalValue = undefined; this._oauthToken.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._googleOidc.internalValue = value.googleOidc; this._oauthToken.internalValue = value.oauthToken; } } get googleOidc() { return this._googleOidc; } putGoogleOidc(value) { this._googleOidc.internalValue = value; } resetGoogleOidc() { this._googleOidc.internalValue = undefined; } // Temporarily expose input value. Use with caution. get googleOidcInput() { return this._googleOidc.internalValue; } get oauthToken() { return this._oauthToken; } putOauthToken(value) { this._oauthToken.internalValue = value; } resetOauthToken() { this._oauthToken.internalValue = undefined; } // Temporarily expose input value. Use with caution. get oauthTokenInput() { return this._oauthToken.internalValue; } } exports.EventarcPipelineDestinationsAuthenticationConfigOutputReference = EventarcPipelineDestinationsAuthenticationConfigOutputReference; _c = JSII_RTTI_SYMBOL_1; EventarcPipelineDestinationsAuthenticationConfigOutputReference[_c] = { fqn: "@cdktf/provider-google.eventarcPipeline.EventarcPipelineDestinationsAuthenticationConfigOutputReference", version: "14.35.0" }; function eventarcPipelineDestinationsHttpEndpointToTerraform(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 { message_binding_template: cdktf.stringToTerraform(struct.messageBindingTemplate), uri: cdktf.stringToTerraform(struct.uri), }; } function eventarcPipelineDestinationsHttpEndpointToHclTerraform(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 = { message_binding_template: { value: cdktf.stringToHclTerraform(struct.messageBindingTemplate), isBlock: false, type: "simple", storageClassType: "string", }, uri: { value: cdktf.stringToHclTerraform(struct.uri), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EventarcPipelineDestinationsHttpEndpointOutputReference 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._messageBindingTemplate !== undefined) { hasAnyValues = true; internalValueResult.messageBindingTemplate = this._messageBindingTemplate; } if (this._uri !== undefined) { hasAnyValues = true; internalValueResult.uri = this._uri; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._messageBindingTemplate = undefined; this._uri = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._messageBindingTemplate = value.messageBindingTemplate; this._uri = value.uri; } } get messageBindingTemplate() { return this.getStringAttribute('message_binding_template'); } set messageBindingTemplate(value) { this._messageBindingTemplate = value; } resetMessageBindingTemplate() { this._messageBindingTemplate = undefined; } // Temporarily expose input value. Use with caution. get messageBindingTemplateInput() { return this._messageBindingTemplate; } get uri() { return this.getStringAttribute('uri'); } set uri(value) { this._uri = value; } // Temporarily expose input value. Use with caution. get uriInput() { return this._uri; } } exports.EventarcPipelineDestinationsHttpEndpointOutputReference = EventarcPipelineDestinationsHttpEndpointOutputReference; _d = JSII_RTTI_SYMBOL_1; EventarcPipelineDestinationsHttpEndpointOutputReference[_d] = { fqn: "@cdktf/provider-google.eventarcPipeline.EventarcPipelineDestinationsHttpEndpointOutputReference", version: "14.35.0" }; function eventarcPipelineDestinationsNetworkConfigToTerraform(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 { network_attachment: cdktf.stringToTerraform(struct.networkAttachment), }; } function eventarcPipelineDestinationsNetworkConfigToHclTerraform(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 = { network_attachment: { value: cdktf.stringToHclTerraform(struct.networkAttachment), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EventarcPipelineDestinationsNetworkConfigOutputReference 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._networkAttachment !== undefined) { hasAnyValues = true; internalValueResult.networkAttachment = this._networkAttachment; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._networkAttachment = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._networkAttachment = value.networkAttachment; } } get networkAttachment() { return this.getStringAttribute('network_attachment'); } set networkAttachment(value) { this._networkAttachment = value; } // Temporarily expose input value. Use with caution. get networkAttachmentInput() { return this._networkAttachment; } } exports.EventarcPipelineDestinationsNetworkConfigOutputReference = EventarcPipelineDestinationsNetworkConfigOutputReference; _e = JSII_RTTI_SYMBOL_1; EventarcPipelineDestinationsNetworkConfigOutputReference[_e] = { fqn: "@cdktf/provider-google.eventarcPipeline.EventarcPipelineDestinationsNetworkConfigOutputReference", version: "14.35.0" }; function eventarcPipelineDestinationsOutputPayloadFormatAvroToTerraform(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 { schema_definition: cdktf.stringToTerraform(struct.schemaDefinition), }; } function eventarcPipelineDestinationsOutputPayloadFormatAvroToHclTerraform(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 = { schema_definition: { value: cdktf.stringToHclTerraform(struct.schemaDefinition), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EventarcPipelineDestinationsOutputPayloadFormatAvroOutputReference 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._schemaDefinition !== undefined) { hasAnyValues = true; internalValueResult.schemaDefinition = this._schemaDefinition; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._schemaDefinition = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._schemaDefinition = value.schemaDefinition; } } get schemaDefinition() { return this.getStringAttribute('schema_definition'); } set schemaDefinition(value) { this._schemaDefinition = value; } resetSchemaDefinition() { this._schemaDefinition = undefined; } // Temporarily expose input value. Use with caution. get schemaDefinitionInput() { return this._schemaDefinition; } } exports.EventarcPipelineDestinationsOutputPayloadFormatAvroOutputReference = EventarcPipelineDestinationsOutputPayloadFormatAvroOutputReference; _f = JSII_RTTI_SYMBOL_1; EventarcPipelineDestinationsOutputPayloadFormatAvroOutputReference[_f] = { fqn: "@cdktf/provider-google.eventarcPipeline.EventarcPipelineDestinationsOutputPayloadFormatAvroOutputReference", version: "14.35.0" }; function eventarcPipelineDestinationsOutputPayloadFormatJsonToTerraform(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 eventarcPipelineDestinationsOutputPayloadFormatJsonToHclTerraform(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 EventarcPipelineDestinationsOutputPayloadFormatJsonOutputReference 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.EventarcPipelineDestinationsOutputPayloadFormatJsonOutputReference = EventarcPipelineDestinationsOutputPayloadFormatJsonOutputReference; _g = JSII_RTTI_SYMBOL_1; EventarcPipelineDestinationsOutputPayloadFormatJsonOutputReference[_g] = { fqn: "@cdktf/provider-google.eventarcPipeline.EventarcPipelineDestinationsOutputPayloadFormatJsonOutputReference", version: "14.35.0" }; function eventarcPipelineDestinationsOutputPayloadFormatProtobufToTerraform(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 { schema_definition: cdktf.stringToTerraform(struct.schemaDefinition), }; } function eventarcPipelineDestinationsOutputPayloadFormatProtobufToHclTerraform(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 = { schema_definition: { value: cdktf.stringToHclTerraform(struct.schemaDefinition), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EventarcPipelineDestinationsOutputPayloadFormatProtobufOutputReference 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._schemaDefinition !== undefined) { hasAnyValues = true; internalValueResult.schemaDefinition = this._schemaDefinition; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._schemaDefinition = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._schemaDefinition = value.schemaDefinition; } } get schemaDefinition() { return this.getStringAttribute('schema_definition'); } set schemaDefinition(value) { this._schemaDefinition = value; } resetSchemaDefinition() { this._schemaDefinition = undefined; } // Temporarily expose input value. Use with caution. get schemaDefinitionInput() { return this._schemaDefinition; } } exports.EventarcPipelineDestinationsOutputPayloadFormatProtobufOutputReference = EventarcPipelineDestinationsOutputPayloadFormatProtobufOutputReference; _h = JSII_RTTI_SYMBOL_1; EventarcPipelineDestinationsOutputPayloadFormatProtobufOutputReference[_h] = { fqn: "@cdktf/provider-google.eventarcPipeline.EventarcPipelineDestinationsOutputPayloadFormatProtobufOutputReference", version: "14.35.0" }; function eventarcPipelineDestinationsOutputPayloadFormatToTerraform(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 { avro: eventarcPipelineDestinationsOutputPayloadFormatAvroToTerraform(struct.avro), json: eventarcPipelineDestinationsOutputPayloadFormatJsonToTerraform(struct.json), protobuf: eventarcPipelineDestinationsOutputPayloadFormatProtobufToTerraform(struct.protobuf), }; } function eventarcPipelineDestinationsOutputPayloadFormatToHclTerraform(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 = { avro: { value: eventarcPipelineDestinationsOutputPayloadFormatAvroToHclTerraform(struct.avro), isBlock: true, type: "list", storageClassType: "EventarcPipelineDestinationsOutputPayloadFormatAvroList", }, json: { value: eventarcPipelineDestinationsOutputPayloadFormatJsonToHclTerraform(struct.json), isBlock: true, type: "list", storageClassType: "EventarcPipelineDestinationsOutputPayloadFormatJsonList", }, protobuf: { value: eventarcPipelineDestinationsOutputPayloadFormatProtobufToHclTerraform(struct.protobuf), isBlock: true, type: "list", storageClassType: "EventarcPipelineDestinationsOutputPayloadFormatProtobufList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EventarcPipelineDestinationsOutputPayloadFormatOutputReference 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 - computed: false, optional: true, required: false this._avro = new EventarcPipelineDestinationsOutputPayloadFormatAvroOutputReference(this, "avro"); // json - computed: false, optional: true, required: false this._json = new EventarcPipelineDestinationsOutputPayloadFormatJsonOutputReference(this, "json"); // protobuf - computed: false, optional: true, required: false this._protobuf = new EventarcPipelineDestinationsOutputPayloadFormatProtobufOutputReference(this, "protobuf"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._avro?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.avro = this._avro?.internalValue; } if (this._json?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.json = this._json?.internalValue; } if (this._protobuf?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.protobuf = this._protobuf?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._avro.internalValue = undefined; this._json.internalValue = undefined; this._protobuf.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._avro.internalValue = value.avro; this._json.internalValue = value.json; this._protobuf.internalValue = value.protobuf; } } get avro() { return this._avro; } putAvro(value) { this._avro.internalValue = value; } resetAvro() { this._avro.internalValue = undefined; } // Temporarily expose input value. Use with caution. get avroInput() { return this._avro.internalValue; } get json() { return this._json; } putJson(value) { this._json.internalValue = value; } resetJson() { this._json.internalValue = undefined; } // Temporarily expose input value. Use with caution. get jsonInput() { return this._json.internalValue; } get protobuf() { return this._protobuf; } putProtobuf(value) { this._protobuf.internalValue = value; } resetProtobuf() { this._protobuf.internalValue = undefined; } // Temporarily expose input value. Use with caution. get protobufInput() { return this._protobuf.internalValue; } } exports.EventarcPipelineDestinationsOutputPayloadFormatOutputReference = EventarcPipelineDestinationsOutputPayloadFormatOutputReference; _j = JSII_RTTI_SYMBOL_1; EventarcPipelineDestinationsOutputPayloadFormatOutputReference[_j] = { fqn: "@cdktf/provider-google.eventarcPipeline.EventarcPipelineDestinationsOutputPayloadFormatOutputReference", version: "14.35.0" }; function eventarcPipelineDestinationsToTerraform(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 { message_bus: cdktf.stringToTerraform(struct.messageBus), topic: cdktf.stringToTerraform(struct.topic), workflow: cdktf.stringToTerraform(struct.workflow), authentication_config: eventarcPipelineDestinationsAuthenticationConfigToTerraform(struct.authenticationConfig), http_endpoint: eventarcPipelineDestinationsHttpEndpointToTerraform(struct.httpEndpoint), network_config: eventarcPipelineDestinationsNetworkConfigToTerraform(struct.networkConfig), output_payload_format: eventarcPipelineDestinationsOutputPayloadFormatToTerraform(struct.outputPayloadFormat), }; } function eventarcPipelineDestinationsToHclTerraform(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 = { message_bus: { value: cdktf.stringToHclTerraform(struct.messageBus), isBlock: false, type: "simple", storageClassType: "string", }, topic: { value: cdktf.stringToHclTerraform(struct.topic), isBlock: false, type: "simple", storageClassType: "string", }, workflow: { value: cdktf.stringToHclTerraform(struct.workflow), isBlock: false, type: "simple", storageClassType: "string", }, authentication_config: { value: eventarcPipelineDestinationsAuthenticationConfigToHclTerraform(struct.authenticationConfig), isBlock: true, type: "list", storageClassType: "EventarcPipelineDestinationsAuthenticationConfigList", }, http_endpoint: { value: eventarcPipelineDestinationsHttpEndpointToHclTerraform(struct.httpEndpoint), isBlock: true, type: "list", storageClassType: "EventarcPipelineDestinationsHttpEndpointList", }, network_config: { value: eventarcPipelineDestinationsNetworkConfigToHclTerraform(struct.networkConfig), isBlock: true, type: "list", storageClassType: "EventarcPipelineDestinationsNetworkConfigList", }, output_payload_format: { value: eventarcPipelineDestinationsOutputPayloadFormatToHclTerraform(struct.outputPayloadFormat), isBlock: true, type: "list", storageClassType: "EventarcPipelineDestinationsOutputPayloadFormatList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EventarcPipelineDestinationsOutputReference 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; // authentication_config - computed: false, optional: true, required: false this._authenticationConfig = new EventarcPipelineDestinationsAuthenticationConfigOutputReference(this, "authentication_config"); // http_endpoint - computed: false, optional: true, required: false this._httpEndpoint = new EventarcPipelineDestinationsHttpEndpointOutputReference(this, "http_endpoint"); // network_config - computed: false, optional: true, required: false this._networkConfig = new EventarcPipelineDestinationsNetworkConfigOutputReference(this, "network_config"); // output_payload_format - computed: false, optional: true, required: false this._outputPayloadFormat = new EventarcPipelineDestinationsOutputPayloadFormatOutputReference(this, "output_payload_format"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._messageBus !== undefined) { hasAnyValues = true; internalValueResult.messageBus = this._messageBus; } if (this._topic !== undefined) { hasAnyValues = true; internalValueResult.topic = this._topic; } if (this._workflow !== undefined) { hasAnyValues = true; internalValueResult.workflow = this._workflow; } if (this._authenticationConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.authenticationConfig = this._authenticationConfig?.internalValue; } if (this._httpEndpoint?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.httpEndpoint = this._httpEndpoint?.internalValue; } if (this._networkConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.networkConfig = this._networkConfig?.internalValue; } if (this._outputPayloadFormat?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.outputPayloadFormat = this._outputPayloadFormat?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._messageBus = undefined; this._topic = undefined; this._workflow = undefined; this._authenticationConfig.internalValue = undefined; this._httpEndpoint.internalValue = undefined; this._networkConfig.internalValue = undefined; this._outputPayloadFormat.internalValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._messageBus = value.messageBus; this._topic = value.topic; this._workflow = value.workflow; this._authenticationConfig.internalValue = value.authenticationConfig; this._httpEndpoint.internalValue = value.httpEndpoint; this._networkConfig.internalValue = value.networkConfig; this._outputPayloadFormat.internalValue = value.outputPayloadFormat; } } get messageBus() { return this.getStringAttribute('message_bus'); } set messageBus(value) { this._messageBus = value; } resetMessageBus() { this._messageBus = undefined; } // Temporarily expose input value. Use with caution. get messageBusInput() { return this._messageBus; } get topic() { return this.getStringAttribute('topic'); } set topic(value) { this._topic = value; } resetTopic() { this._topic = undefined; } // Temporarily expose input value. Use with caution. get topicInput() { return this._topic; } get workflow() { return this.getStringAttribute('workflow'); } set workflow(value) { this._workflow = value; } resetWorkflow() { this._workflow = undefined; } // Temporarily expose input value. Use with caution. get workflowInput() { return this._workflow; } get authenticationConfig() { return this._authenticationConfig; } putAuthenticationConfig(value) { this._authenticationConfig.internalValue = value; } resetAuthenticationConfig() { this._authenticationConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get authenticationConfigInput() { return this._authenticationConfig.internalValue; } get httpEndpoint() { return this._httpEndpoint; } putHttpEndpoint(value) { this._httpEndpoint.internalValue = value; } resetHttpEndpoint() { this._httpEndpoint.internalValue = undefined; } // Temporarily expose input value. Use with caution. get httpEndpointInput() { return this._httpEndpoint.internalValue; } get networkConfig() { return this._networkConfig; } putNetworkConfig(value) { this._networkConfig.internalValue = value; } resetNetworkConfig() { this._networkConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get networkConfigInput() { return this._networkConfig.internalValue; } get outputPayloadFormat() { return this._outputPayloadFormat; } putOutputPayloadFormat(value) { this._outputPayloadFormat.internalValue = value; } resetOutputPayloadFormat() { this._outputPayloadFormat.internalValue = undefined; } // Temporarily expose input value. Use with caution. get outputPayloadFormatInput() { return this._outputPayloadFormat.internalValue; } } exports.EventarcPipelineDestinationsOutputReference = EventarcPipelineDestinationsOutputReference; _k = JSII_RTTI_SYMBOL_1; EventarcPipelineDestinationsOutputReference[_k] = { fqn: "@cdktf/provider-google.eventarcPipeline.EventarcPipelineDestinationsOutputReference", version: "14.35.0" }; class EventarcPipelineDestinationsList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the pare