@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
971 lines • 138 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataGooglePubsubSubscription = exports.DataGooglePubsubSubscriptionRetryPolicyList = exports.DataGooglePubsubSubscriptionRetryPolicyOutputReference = exports.dataGooglePubsubSubscriptionRetryPolicyToHclTerraform = exports.dataGooglePubsubSubscriptionRetryPolicyToTerraform = exports.DataGooglePubsubSubscriptionPushConfigList = exports.DataGooglePubsubSubscriptionPushConfigOutputReference = exports.dataGooglePubsubSubscriptionPushConfigToHclTerraform = exports.dataGooglePubsubSubscriptionPushConfigToTerraform = exports.DataGooglePubsubSubscriptionPushConfigOidcTokenList = exports.DataGooglePubsubSubscriptionPushConfigOidcTokenOutputReference = exports.dataGooglePubsubSubscriptionPushConfigOidcTokenToHclTerraform = exports.dataGooglePubsubSubscriptionPushConfigOidcTokenToTerraform = exports.DataGooglePubsubSubscriptionPushConfigNoWrapperList = exports.DataGooglePubsubSubscriptionPushConfigNoWrapperOutputReference = exports.dataGooglePubsubSubscriptionPushConfigNoWrapperToHclTerraform = exports.dataGooglePubsubSubscriptionPushConfigNoWrapperToTerraform = exports.DataGooglePubsubSubscriptionExpirationPolicyList = exports.DataGooglePubsubSubscriptionExpirationPolicyOutputReference = exports.dataGooglePubsubSubscriptionExpirationPolicyToHclTerraform = exports.dataGooglePubsubSubscriptionExpirationPolicyToTerraform = exports.DataGooglePubsubSubscriptionDeadLetterPolicyList = exports.DataGooglePubsubSubscriptionDeadLetterPolicyOutputReference = exports.dataGooglePubsubSubscriptionDeadLetterPolicyToHclTerraform = exports.dataGooglePubsubSubscriptionDeadLetterPolicyToTerraform = exports.DataGooglePubsubSubscriptionCloudStorageConfigList = exports.DataGooglePubsubSubscriptionCloudStorageConfigOutputReference = exports.dataGooglePubsubSubscriptionCloudStorageConfigToHclTerraform = exports.dataGooglePubsubSubscriptionCloudStorageConfigToTerraform = exports.DataGooglePubsubSubscriptionCloudStorageConfigAvroConfigList = exports.DataGooglePubsubSubscriptionCloudStorageConfigAvroConfigOutputReference = exports.dataGooglePubsubSubscriptionCloudStorageConfigAvroConfigToHclTerraform = exports.dataGooglePubsubSubscriptionCloudStorageConfigAvroConfigToTerraform = exports.DataGooglePubsubSubscriptionBigqueryConfigList = exports.DataGooglePubsubSubscriptionBigqueryConfigOutputReference = exports.dataGooglePubsubSubscriptionBigqueryConfigToHclTerraform = exports.dataGooglePubsubSubscriptionBigqueryConfigToTerraform = void 0;
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 {};
}
exports.dataGooglePubsubSubscriptionBigqueryConfigToTerraform = dataGooglePubsubSubscriptionBigqueryConfigToTerraform;
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;
}
exports.dataGooglePubsubSubscriptionBigqueryConfigToHclTerraform = dataGooglePubsubSubscriptionBigqueryConfigToHclTerraform;
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: "14.12.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: "14.12.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 {};
}
exports.dataGooglePubsubSubscriptionCloudStorageConfigAvroConfigToTerraform = dataGooglePubsubSubscriptionCloudStorageConfigAvroConfigToTerraform;
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;
}
exports.dataGooglePubsubSubscriptionCloudStorageConfigAvroConfigToHclTerraform = dataGooglePubsubSubscriptionCloudStorageConfigAvroConfigToHclTerraform;
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: "14.12.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: "14.12.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 {};
}
exports.dataGooglePubsubSubscriptionCloudStorageConfigToTerraform = dataGooglePubsubSubscriptionCloudStorageConfigToTerraform;
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;
}
exports.dataGooglePubsubSubscriptionCloudStorageConfigToHclTerraform = dataGooglePubsubSubscriptionCloudStorageConfigToHclTerraform;
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: "14.12.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: "14.12.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 {};
}
exports.dataGooglePubsubSubscriptionDeadLetterPolicyToTerraform = dataGooglePubsubSubscriptionDeadLetterPolicyToTerraform;
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;
}
exports.dataGooglePubsubSubscriptionDeadLetterPolicyToHclTerraform = dataGooglePubsubSubscriptionDeadLetterPolicyToHclTerraform;
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: "14.12.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: "14.12.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 {};
}
exports.dataGooglePubsubSubscriptionExpirationPolicyToTerraform = dataGooglePubsubSubscriptionExpirationPolicyToTerraform;
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;
}
exports.dataGooglePubsubSubscriptionExpirationPolicyToHclTerraform = dataGooglePubsubSubscriptionExpirationPolicyToHclTerraform;
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: "14.12.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: "14.12.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 {};
}
exports.dataGooglePubsubSubscriptionPushConfigNoWrapperToTerraform = dataGooglePubsubSubscriptionPushConfigNoWrapperToTerraform;
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;
}
exports.dataGooglePubsubSubscriptionPushConfigNoWrapperToHclTerraform = dataGooglePubsubSubscriptionPushConfigNoWrapperToHclTerraform;
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;
_l = JSII_RTTI_SYMBOL_1;
DataGooglePubsubSubscriptionPushConfigNoWrapperOutputReference[_l] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionPushConfigNoWrapperOutputReference", version: "14.12.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;
_m = JSII_RTTI_SYMBOL_1;
DataGooglePubsubSubscriptionPushConfigNoWrapperList[_m] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionPushConfigNoWrapperList", version: "14.12.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 {};
}
exports.dataGooglePubsubSubscriptionPushConfigOidcTokenToTerraform = dataGooglePubsubSubscriptionPushConfigOidcTokenToTerraform;
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;
}
exports.dataGooglePubsubSubscriptionPushConfigOidcTokenToHclTerraform = dataGooglePubsubSubscriptionPushConfigOidcTokenToHclTerraform;
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;
_o = JSII_RTTI_SYMBOL_1;
DataGooglePubsubSubscriptionPushConfigOidcTokenOutputReference[_o] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionPushConfigOidcTokenOutputReference", version: "14.12.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;
_p = JSII_RTTI_SYMBOL_1;
DataGooglePubsubSubscriptionPushConfigOidcTokenList[_p] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionPushConfigOidcTokenList", version: "14.12.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 {};
}
exports.dataGooglePubsubSubscriptionPushConfigToTerraform = dataGooglePubsubSubscriptionPushConfigToTerraform;
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;
}
exports.dataGooglePubsubSubscriptionPushConfigToHclTerraform = dataGooglePubsubSubscriptionPushConfigToHclTerraform;
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;
_q = JSII_RTTI_SYMBOL_1;
DataGooglePubsubSubscriptionPushConfigOutputReference[_q] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionPushConfigOutputReference", version: "14.12.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;
_r = JSII_RTTI_SYMBOL_1;
DataGooglePubsubSubscriptionPushConfigList[_r] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionPushConfigList", version: "14.12.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 {};
}
exports.dataGooglePubsubSubscriptionRetryPolicyToTerraform = dataGooglePubsubSubscriptionRetryPolicyToTerraform;
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;
}
exports.dataGooglePubsubSubscriptionRetryPolicyToHclTerraform = dataGooglePubsubSubscriptionRetryPolicyToHclTerraform;
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;
_s = JSII_RTTI_SYMBOL_1;
DataGooglePubsubSubscriptionRetryPolicyOutputReference[_s] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionRetryPolicyOutputReference", version: "14.12.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;
_t = JSII_RTTI_SYMBOL_1;
DataGooglePubsubSubscriptionRetryPolicyList[_t] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscriptionRetryPolicyList", version: "14.12.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.13.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.13.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 the provider where the DataGooglePubsubSubscription to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "google_pubsub_subscription", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/data-sources/pubsub_subscription google_pubsub_subscription} Data Source
*
* @param scope The scope in which to define this construct
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
* @param options DataGooglePubsubSubscriptionConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'google_pubsub_subscription',
terraformGeneratorMetadata: {
providerName: 'google',
providerVersion: '6.13.0',
providerVersionConstraint: '~> 6.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle,
provisioners: config.provisioners,
connection: config.connection,
forEach: config.forEach
});
// bigquery_config - computed: true, optional: false, required: false
this._bigqueryConfig = new DataGooglePubsubSubscriptionBigqueryConfigList(this, "bigquery_config", false);
// cloud_storage_config - computed: true, optional: false, required: false
this._cloudStorageConfig = new DataGooglePubsubSubscriptionCloudStorageConfigList(this, "cloud_storage_config", false);
// dead_letter_policy - computed: true, optional: false, required: false
this._deadLetterPolicy = new DataGooglePubsubSubscriptionDeadLetterPolicyList(this, "dead_letter_policy", false);
// effective_labels - computed: true, optional: false, required: false
this._effectiveLabels = new cdktf.StringMap(this, "effective_labels");
// expiration_policy - computed: true, optional: false, required: false
this._expirationPolicy = new DataGooglePubsubSubscriptionExpirationPolicyList(this, "expiration_policy", false);
// labels - computed: true, optional: false, required: false
this._labels = new cdktf.StringMap(this, "labels");
// push_config - computed: true, optional: false, required: false
this._pushConfig = new DataGooglePubsubSubscriptionPushConfigList(this, "push_config", false);
// retry_policy - computed: true, optional: false, required: false
this._retryPolicy = new DataGooglePubsubSubscriptionRetryPolicyList(this, "retry_policy", false);
// terraform_labels - computed: true, optional: false, required: false
this._terraformLabels = new cdktf.StringMap(this, "terraform_labels");
this._id = config.id;
this._name = config.name;
this._project = config.project;
}
// ==========
// ATTRIBUTES
// ==========
// ack_deadline_seconds - computed: true, optional: false, required: false
get ackDeadlineSeconds() {
return this.getNumberAttribute('ack_deadline_seconds');
}
get bigqueryConfig() {
return this._bigqueryConfig;
}
get cloudStorageConfig() {
return this._cloudStorageConfig;
}
get deadLetterPolicy() {
return this._deadLetterPolicy;
}
get effectiveLabels() {
return this._effectiveLabels;
}
// enable_exactly_once_delivery - computed: true, optional: false, required: false
get enableExactlyOnceDelivery() {
return this.getBooleanAttribute('enable_exactly_once_delivery');
}
// enable_message_ordering - computed: true, optional: false, required: false
get enableMessageOrdering() {
return this.getBooleanAttribute('enable_message_ordering');
}
get expirationPolicy() {
return this._expirationPolicy;
}
// filter - computed: true, optional: false, required: false
get filter() {
return this.getStringAttribute('filter');
}
get id() {
return this.getStringAttribute('id');
}
set id(value) {
this._id = value;
}
resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
get idInput() {
return this._id;
}
get labels() {
return this._labels;
}
// message_retention_duration - computed: true, optional: false, required: false
get messageRetentionDuration() {
return this.getStringAttribute('message_retention_duration');
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get project() {
return this.getStringAttribute('project');
}
set project(value) {
this._project = value;
}
resetProject() {
this._project = undefined;
}
// Temporarily expose input value. Use with caution.
get projectInput() {
return this._project;
}
get pushConfig() {
return this._pushConfig;
}
// retain_acked_messages - computed: true, optional: false, required: false
get retainAckedMessages() {
return this.getBooleanAttribute('retain_acked_messages');
}
get retryPolicy() {
return this._retryPolicy;
}
get terraformLabels() {
return this._terraformLabels;
}
// topic - computed: true, optional: false, required: false
get topic() {
return this.getStringAttribute('topic');
}
// =========
// SYNTHESIS
// =========
synthesizeAttributes() {
return {
id: cdktf.stringToTerraform(this._id),
name: cdktf.stringToTerraform(this._name),
project: cdktf.stringToTerraform(this._project),
};
}
synthesizeHclAttributes() {
const attrs = {
id: {
value: cdktf.stringToHclTerraform(this._id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(this._name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
project: {
value: cdktf.stringToHclTerraform(this._project),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
}
exports.DataGooglePubsubSubscription = DataGooglePubsubSubscription;
_u = JSII_RTTI_SYMBOL_1;
DataGooglePubsubSubscription[_u] = { fqn: "@cdktf/provider-google.dataGooglePubsubSubscription.DataGooglePubsubSubscription", version: "14.12.0" };
// =================
// STATIC PROPERTIES
// =================
DataGooglePubsubSubscription.tfResourceType = "google_pubsub_subscription";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2V