@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,119 lines • 193 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HealthcareFhirStore = exports.HealthcareFhirStoreTimeoutsOutputReference = exports.healthcareFhirStoreTimeoutsToHclTerraform = exports.healthcareFhirStoreTimeoutsToTerraform = exports.HealthcareFhirStoreStreamConfigsList = exports.HealthcareFhirStoreStreamConfigsOutputReference = exports.healthcareFhirStoreStreamConfigsToHclTerraform = exports.healthcareFhirStoreStreamConfigsToTerraform = exports.HealthcareFhirStoreStreamConfigsBigqueryDestinationOutputReference = exports.healthcareFhirStoreStreamConfigsBigqueryDestinationToHclTerraform = exports.healthcareFhirStoreStreamConfigsBigqueryDestinationToTerraform = exports.HealthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigOutputReference = exports.healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigToHclTerraform = exports.healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigToTerraform = exports.HealthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigOutputReference = exports.healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigToHclTerraform = exports.healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigToTerraform = exports.HealthcareFhirStoreNotificationConfigsList = exports.HealthcareFhirStoreNotificationConfigsOutputReference = exports.healthcareFhirStoreNotificationConfigsToHclTerraform = exports.healthcareFhirStoreNotificationConfigsToTerraform = exports.HealthcareFhirStoreNotificationConfigOutputReference = exports.healthcareFhirStoreNotificationConfigToHclTerraform = exports.healthcareFhirStoreNotificationConfigToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function healthcareFhirStoreNotificationConfigToTerraform(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 {
pubsub_topic: cdktf.stringToTerraform(struct.pubsubTopic),
};
}
exports.healthcareFhirStoreNotificationConfigToTerraform = healthcareFhirStoreNotificationConfigToTerraform;
function healthcareFhirStoreNotificationConfigToHclTerraform(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 = {
pubsub_topic: {
value: cdktf.stringToHclTerraform(struct.pubsubTopic),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.healthcareFhirStoreNotificationConfigToHclTerraform = healthcareFhirStoreNotificationConfigToHclTerraform;
class HealthcareFhirStoreNotificationConfigOutputReference 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._pubsubTopic !== undefined) {
hasAnyValues = true;
internalValueResult.pubsubTopic = this._pubsubTopic;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._pubsubTopic = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._pubsubTopic = value.pubsubTopic;
}
}
get pubsubTopic() {
return this.getStringAttribute('pubsub_topic');
}
set pubsubTopic(value) {
this._pubsubTopic = value;
}
// Temporarily expose input value. Use with caution.
get pubsubTopicInput() {
return this._pubsubTopic;
}
}
exports.HealthcareFhirStoreNotificationConfigOutputReference = HealthcareFhirStoreNotificationConfigOutputReference;
_a = JSII_RTTI_SYMBOL_1;
HealthcareFhirStoreNotificationConfigOutputReference[_a] = { fqn: "@cdktf/provider-google.healthcareFhirStore.HealthcareFhirStoreNotificationConfigOutputReference", version: "14.12.0" };
function healthcareFhirStoreNotificationConfigsToTerraform(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 {
pubsub_topic: cdktf.stringToTerraform(struct.pubsubTopic),
send_full_resource: cdktf.booleanToTerraform(struct.sendFullResource),
send_previous_resource_on_delete: cdktf.booleanToTerraform(struct.sendPreviousResourceOnDelete),
};
}
exports.healthcareFhirStoreNotificationConfigsToTerraform = healthcareFhirStoreNotificationConfigsToTerraform;
function healthcareFhirStoreNotificationConfigsToHclTerraform(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 = {
pubsub_topic: {
value: cdktf.stringToHclTerraform(struct.pubsubTopic),
isBlock: false,
type: "simple",
storageClassType: "string",
},
send_full_resource: {
value: cdktf.booleanToHclTerraform(struct.sendFullResource),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
send_previous_resource_on_delete: {
value: cdktf.booleanToHclTerraform(struct.sendPreviousResourceOnDelete),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.healthcareFhirStoreNotificationConfigsToHclTerraform = healthcareFhirStoreNotificationConfigsToHclTerraform;
class HealthcareFhirStoreNotificationConfigsOutputReference 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() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._pubsubTopic !== undefined) {
hasAnyValues = true;
internalValueResult.pubsubTopic = this._pubsubTopic;
}
if (this._sendFullResource !== undefined) {
hasAnyValues = true;
internalValueResult.sendFullResource = this._sendFullResource;
}
if (this._sendPreviousResourceOnDelete !== undefined) {
hasAnyValues = true;
internalValueResult.sendPreviousResourceOnDelete = this._sendPreviousResourceOnDelete;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._pubsubTopic = undefined;
this._sendFullResource = undefined;
this._sendPreviousResourceOnDelete = 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._pubsubTopic = value.pubsubTopic;
this._sendFullResource = value.sendFullResource;
this._sendPreviousResourceOnDelete = value.sendPreviousResourceOnDelete;
}
}
get pubsubTopic() {
return this.getStringAttribute('pubsub_topic');
}
set pubsubTopic(value) {
this._pubsubTopic = value;
}
// Temporarily expose input value. Use with caution.
get pubsubTopicInput() {
return this._pubsubTopic;
}
get sendFullResource() {
return this.getBooleanAttribute('send_full_resource');
}
set sendFullResource(value) {
this._sendFullResource = value;
}
resetSendFullResource() {
this._sendFullResource = undefined;
}
// Temporarily expose input value. Use with caution.
get sendFullResourceInput() {
return this._sendFullResource;
}
get sendPreviousResourceOnDelete() {
return this.getBooleanAttribute('send_previous_resource_on_delete');
}
set sendPreviousResourceOnDelete(value) {
this._sendPreviousResourceOnDelete = value;
}
resetSendPreviousResourceOnDelete() {
this._sendPreviousResourceOnDelete = undefined;
}
// Temporarily expose input value. Use with caution.
get sendPreviousResourceOnDeleteInput() {
return this._sendPreviousResourceOnDelete;
}
}
exports.HealthcareFhirStoreNotificationConfigsOutputReference = HealthcareFhirStoreNotificationConfigsOutputReference;
_b = JSII_RTTI_SYMBOL_1;
HealthcareFhirStoreNotificationConfigsOutputReference[_b] = { fqn: "@cdktf/provider-google.healthcareFhirStore.HealthcareFhirStoreNotificationConfigsOutputReference", version: "14.12.0" };
class HealthcareFhirStoreNotificationConfigsList 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 HealthcareFhirStoreNotificationConfigsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.HealthcareFhirStoreNotificationConfigsList = HealthcareFhirStoreNotificationConfigsList;
_c = JSII_RTTI_SYMBOL_1;
HealthcareFhirStoreNotificationConfigsList[_c] = { fqn: "@cdktf/provider-google.healthcareFhirStore.HealthcareFhirStoreNotificationConfigsList", version: "14.12.0" };
function healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigToTerraform(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 {
expiration_ms: cdktf.stringToTerraform(struct.expirationMs),
type: cdktf.stringToTerraform(struct.type),
};
}
exports.healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigToTerraform = healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigToTerraform;
function healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigToHclTerraform(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 = {
expiration_ms: {
value: cdktf.stringToHclTerraform(struct.expirationMs),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigToHclTerraform = healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigToHclTerraform;
class HealthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigOutputReference 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._expirationMs !== undefined) {
hasAnyValues = true;
internalValueResult.expirationMs = this._expirationMs;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._expirationMs = undefined;
this._type = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._expirationMs = value.expirationMs;
this._type = value.type;
}
}
get expirationMs() {
return this.getStringAttribute('expiration_ms');
}
set expirationMs(value) {
this._expirationMs = value;
}
resetExpirationMs() {
this._expirationMs = undefined;
}
// Temporarily expose input value. Use with caution.
get expirationMsInput() {
return this._expirationMs;
}
get type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
}
exports.HealthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigOutputReference = HealthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigOutputReference;
_d = JSII_RTTI_SYMBOL_1;
HealthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigOutputReference[_d] = { fqn: "@cdktf/provider-google.healthcareFhirStore.HealthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigOutputReference", version: "14.12.0" };
function healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigToTerraform(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 {
recursive_structure_depth: cdktf.numberToTerraform(struct.recursiveStructureDepth),
schema_type: cdktf.stringToTerraform(struct.schemaType),
last_updated_partition_config: healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigToTerraform(struct.lastUpdatedPartitionConfig),
};
}
exports.healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigToTerraform = healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigToTerraform;
function healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigToHclTerraform(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 = {
recursive_structure_depth: {
value: cdktf.numberToHclTerraform(struct.recursiveStructureDepth),
isBlock: false,
type: "simple",
storageClassType: "number",
},
schema_type: {
value: cdktf.stringToHclTerraform(struct.schemaType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
last_updated_partition_config: {
value: healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigToHclTerraform(struct.lastUpdatedPartitionConfig),
isBlock: true,
type: "list",
storageClassType: "HealthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigToHclTerraform = healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigToHclTerraform;
class HealthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigOutputReference 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;
// last_updated_partition_config - computed: false, optional: true, required: false
this._lastUpdatedPartitionConfig = new HealthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigOutputReference(this, "last_updated_partition_config");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._recursiveStructureDepth !== undefined) {
hasAnyValues = true;
internalValueResult.recursiveStructureDepth = this._recursiveStructureDepth;
}
if (this._schemaType !== undefined) {
hasAnyValues = true;
internalValueResult.schemaType = this._schemaType;
}
if (this._lastUpdatedPartitionConfig?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.lastUpdatedPartitionConfig = this._lastUpdatedPartitionConfig?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._recursiveStructureDepth = undefined;
this._schemaType = undefined;
this._lastUpdatedPartitionConfig.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._recursiveStructureDepth = value.recursiveStructureDepth;
this._schemaType = value.schemaType;
this._lastUpdatedPartitionConfig.internalValue = value.lastUpdatedPartitionConfig;
}
}
get recursiveStructureDepth() {
return this.getNumberAttribute('recursive_structure_depth');
}
set recursiveStructureDepth(value) {
this._recursiveStructureDepth = value;
}
// Temporarily expose input value. Use with caution.
get recursiveStructureDepthInput() {
return this._recursiveStructureDepth;
}
get schemaType() {
return this.getStringAttribute('schema_type');
}
set schemaType(value) {
this._schemaType = value;
}
resetSchemaType() {
this._schemaType = undefined;
}
// Temporarily expose input value. Use with caution.
get schemaTypeInput() {
return this._schemaType;
}
get lastUpdatedPartitionConfig() {
return this._lastUpdatedPartitionConfig;
}
putLastUpdatedPartitionConfig(value) {
this._lastUpdatedPartitionConfig.internalValue = value;
}
resetLastUpdatedPartitionConfig() {
this._lastUpdatedPartitionConfig.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get lastUpdatedPartitionConfigInput() {
return this._lastUpdatedPartitionConfig.internalValue;
}
}
exports.HealthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigOutputReference = HealthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigOutputReference;
_e = JSII_RTTI_SYMBOL_1;
HealthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigOutputReference[_e] = { fqn: "@cdktf/provider-google.healthcareFhirStore.HealthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigOutputReference", version: "14.12.0" };
function healthcareFhirStoreStreamConfigsBigqueryDestinationToTerraform(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 {
dataset_uri: cdktf.stringToTerraform(struct.datasetUri),
schema_config: healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigToTerraform(struct.schemaConfig),
};
}
exports.healthcareFhirStoreStreamConfigsBigqueryDestinationToTerraform = healthcareFhirStoreStreamConfigsBigqueryDestinationToTerraform;
function healthcareFhirStoreStreamConfigsBigqueryDestinationToHclTerraform(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 = {
dataset_uri: {
value: cdktf.stringToHclTerraform(struct.datasetUri),
isBlock: false,
type: "simple",
storageClassType: "string",
},
schema_config: {
value: healthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigToHclTerraform(struct.schemaConfig),
isBlock: true,
type: "list",
storageClassType: "HealthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.healthcareFhirStoreStreamConfigsBigqueryDestinationToHclTerraform = healthcareFhirStoreStreamConfigsBigqueryDestinationToHclTerraform;
class HealthcareFhirStoreStreamConfigsBigqueryDestinationOutputReference 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;
// schema_config - computed: false, optional: false, required: true
this._schemaConfig = new HealthcareFhirStoreStreamConfigsBigqueryDestinationSchemaConfigOutputReference(this, "schema_config");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._datasetUri !== undefined) {
hasAnyValues = true;
internalValueResult.datasetUri = this._datasetUri;
}
if (this._schemaConfig?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.schemaConfig = this._schemaConfig?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._datasetUri = undefined;
this._schemaConfig.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._datasetUri = value.datasetUri;
this._schemaConfig.internalValue = value.schemaConfig;
}
}
get datasetUri() {
return this.getStringAttribute('dataset_uri');
}
set datasetUri(value) {
this._datasetUri = value;
}
// Temporarily expose input value. Use with caution.
get datasetUriInput() {
return this._datasetUri;
}
get schemaConfig() {
return this._schemaConfig;
}
putSchemaConfig(value) {
this._schemaConfig.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get schemaConfigInput() {
return this._schemaConfig.internalValue;
}
}
exports.HealthcareFhirStoreStreamConfigsBigqueryDestinationOutputReference = HealthcareFhirStoreStreamConfigsBigqueryDestinationOutputReference;
_f = JSII_RTTI_SYMBOL_1;
HealthcareFhirStoreStreamConfigsBigqueryDestinationOutputReference[_f] = { fqn: "@cdktf/provider-google.healthcareFhirStore.HealthcareFhirStoreStreamConfigsBigqueryDestinationOutputReference", version: "14.12.0" };
function healthcareFhirStoreStreamConfigsToTerraform(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 {
resource_types: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.resourceTypes),
bigquery_destination: healthcareFhirStoreStreamConfigsBigqueryDestinationToTerraform(struct.bigqueryDestination),
};
}
exports.healthcareFhirStoreStreamConfigsToTerraform = healthcareFhirStoreStreamConfigsToTerraform;
function healthcareFhirStoreStreamConfigsToHclTerraform(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 = {
resource_types: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.resourceTypes),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
bigquery_destination: {
value: healthcareFhirStoreStreamConfigsBigqueryDestinationToHclTerraform(struct.bigqueryDestination),
isBlock: true,
type: "list",
storageClassType: "HealthcareFhirStoreStreamConfigsBigqueryDestinationList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.healthcareFhirStoreStreamConfigsToHclTerraform = healthcareFhirStoreStreamConfigsToHclTerraform;
class HealthcareFhirStoreStreamConfigsOutputReference 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;
// bigquery_destination - computed: false, optional: false, required: true
this._bigqueryDestination = new HealthcareFhirStoreStreamConfigsBigqueryDestinationOutputReference(this, "bigquery_destination");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._resourceTypes !== undefined) {
hasAnyValues = true;
internalValueResult.resourceTypes = this._resourceTypes;
}
if (this._bigqueryDestination?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.bigqueryDestination = this._bigqueryDestination?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._resourceTypes = undefined;
this._bigqueryDestination.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._resourceTypes = value.resourceTypes;
this._bigqueryDestination.internalValue = value.bigqueryDestination;
}
}
get resourceTypes() {
return this.getListAttribute('resource_types');
}
set resourceTypes(value) {
this._resourceTypes = value;
}
resetResourceTypes() {
this._resourceTypes = undefined;
}
// Temporarily expose input value. Use with caution.
get resourceTypesInput() {
return this._resourceTypes;
}
get bigqueryDestination() {
return this._bigqueryDestination;
}
putBigqueryDestination(value) {
this._bigqueryDestination.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get bigqueryDestinationInput() {
return this._bigqueryDestination.internalValue;
}
}
exports.HealthcareFhirStoreStreamConfigsOutputReference = HealthcareFhirStoreStreamConfigsOutputReference;
_g = JSII_RTTI_SYMBOL_1;
HealthcareFhirStoreStreamConfigsOutputReference[_g] = { fqn: "@cdktf/provider-google.healthcareFhirStore.HealthcareFhirStoreStreamConfigsOutputReference", version: "14.12.0" };
class HealthcareFhirStoreStreamConfigsList 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 HealthcareFhirStoreStreamConfigsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.HealthcareFhirStoreStreamConfigsList = HealthcareFhirStoreStreamConfigsList;
_h = JSII_RTTI_SYMBOL_1;
HealthcareFhirStoreStreamConfigsList[_h] = { fqn: "@cdktf/provider-google.healthcareFhirStore.HealthcareFhirStoreStreamConfigsList", version: "14.12.0" };
function healthcareFhirStoreTimeoutsToTerraform(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 {
create: cdktf.stringToTerraform(struct.create),
delete: cdktf.stringToTerraform(struct.delete),
update: cdktf.stringToTerraform(struct.update),
};
}
exports.healthcareFhirStoreTimeoutsToTerraform = healthcareFhirStoreTimeoutsToTerraform;
function healthcareFhirStoreTimeoutsToHclTerraform(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 = {
create: {
value: cdktf.stringToHclTerraform(struct.create),
isBlock: false,
type: "simple",
storageClassType: "string",
},
delete: {
value: cdktf.stringToHclTerraform(struct.delete),
isBlock: false,
type: "simple",
storageClassType: "string",
},
update: {
value: cdktf.stringToHclTerraform(struct.update),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.healthcareFhirStoreTimeoutsToHclTerraform = healthcareFhirStoreTimeoutsToHclTerraform;
class HealthcareFhirStoreTimeoutsOutputReference 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);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._create !== undefined) {
hasAnyValues = true;
internalValueResult.create = this._create;
}
if (this._delete !== undefined) {
hasAnyValues = true;
internalValueResult.delete = this._delete;
}
if (this._update !== undefined) {
hasAnyValues = true;
internalValueResult.update = this._update;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._create = undefined;
this._delete = undefined;
this._update = 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._create = value.create;
this._delete = value.delete;
this._update = value.update;
}
}
get create() {
return this.getStringAttribute('create');
}
set create(value) {
this._create = value;
}
resetCreate() {
this._create = undefined;
}
// Temporarily expose input value. Use with caution.
get createInput() {
return this._create;
}
get delete() {
return this.getStringAttribute('delete');
}
set delete(value) {
this._delete = value;
}
resetDelete() {
this._delete = undefined;
}
// Temporarily expose input value. Use with caution.
get deleteInput() {
return this._delete;
}
get update() {
return this.getStringAttribute('update');
}
set update(value) {
this._update = value;
}
resetUpdate() {
this._update = undefined;
}
// Temporarily expose input value. Use with caution.
get updateInput() {
return this._update;
}
}
exports.HealthcareFhirStoreTimeoutsOutputReference = HealthcareFhirStoreTimeoutsOutputReference;
_j = JSII_RTTI_SYMBOL_1;
HealthcareFhirStoreTimeoutsOutputReference[_j] = { fqn: "@cdktf/provider-google.healthcareFhirStore.HealthcareFhirStoreTimeoutsOutputReference", version: "14.12.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/healthcare_fhir_store google_healthcare_fhir_store}
*/
class HealthcareFhirStore extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a HealthcareFhirStore 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 HealthcareFhirStore to import
* @param importFromId The id of the existing HealthcareFhirStore that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/healthcare_fhir_store#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the HealthcareFhirStore to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "google_healthcare_fhir_store", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/healthcare_fhir_store google_healthcare_fhir_store} Resource
*
* @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 HealthcareFhirStoreConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'google_healthcare_fhir_store',
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
});
// effective_labels - computed: true, optional: false, required: false
this._effectiveLabels = new cdktf.StringMap(this, "effective_labels");
// terraform_labels - computed: true, optional: false, required: false
this._terraformLabels = new cdktf.StringMap(this, "terraform_labels");
// notification_config - computed: false, optional: true, required: false
this._notificationConfig = new HealthcareFhirStoreNotificationConfigOutputReference(this, "notification_config");
// notification_configs - computed: false, optional: true, required: false
this._notificationConfigs = new HealthcareFhirStoreNotificationConfigsList(this, "notification_configs", false);
// stream_configs - computed: false, optional: true, required: false
this._streamConfigs = new HealthcareFhirStoreStreamConfigsList(this, "stream_configs", false);
// timeouts - computed: false, optional: true, required: false
this._timeouts = new HealthcareFhirStoreTimeoutsOutputReference(this, "timeouts");
this._complexDataTypeReferenceParsing = config.complexDataTypeReferenceParsing;
this._dataset = config.dataset;
this._defaultSearchHandlingStrict = config.defaultSearchHandlingStrict;
this._disableReferentialIntegrity = config.disableReferentialIntegrity;
this._disableResourceVersioning = config.disableResourceVersioning;
this._enableHistoryImport = config.enableHistoryImport;
this._enableUpdateCreate = config.enableUpdateCreate;
this._id = config.id;
this._labels = config.labels;
this._name = config.name;
this._version = config.version;
this._notificationConfig.internalValue = config.notificationConfig;
this._notificationConfigs.internalValue = config.notificationConfigs;
this._streamConfigs.internalValue = config.streamConfigs;
this._timeouts.internalValue = config.timeouts;
}
get complexDataTypeReferenceParsing() {
return this.getStringAttribute('complex_data_type_reference_parsing');
}
set complexDataTypeReferenceParsing(value) {
this._complexDataTypeReferenceParsing = value;
}
resetComplexDataTypeReferenceParsing() {
this._complexDataTypeReferenceParsing = undefined;
}
// Temporarily expose input value. Use with caution.
get complexDataTypeReferenceParsingInput() {
return this._complexDataTypeReferenceParsing;
}
get dataset() {
return this.getStringAttribute('dataset');
}
set dataset(value) {
this._dataset = value;
}
// Temporarily expose input value. Use with caution.
get datasetInput() {
return this._dataset;
}
get defaultSearchHandlingStrict() {
return this.getBooleanAttribute('default_search_handling_strict');
}
set defaultSearchHandlingStrict(value) {
this._defaultSearchHandlingStrict = value;
}
resetDefaultSearchHandlingStrict() {
this._defaultSearchHandlingStrict = undefined;
}
// Temporarily expose input value. Use with caution.
get defaultSearchHandlingStrictInput() {
return this._defaultSearchHandlingStrict;
}
get disableReferentialIntegrity() {
return this.getBooleanAttribute('disable_referential_integrity');
}
set disableReferentialIntegrity(value) {
this._disableReferentialIntegrity = value;
}
resetDisableReferentialIntegrity() {
this._disableReferentialIntegrity = undefined;
}
// Temporarily expose input value. Use with caution.
get disableReferentialIntegrityInput() {
return this._disableReferentialIntegrity;
}
get disableResourceVersioning() {
return this.getBooleanAttribute('disable_resource_versioning');
}
set disableResourceVersioning(value) {
this._disableResourceVersioning = value;
}
resetDisableResourceVersioning() {
this._disableResourceVersioning = undefined;
}
// Temporarily expose input value. Use with caution.
get disableResourceVersioningInput() {
return this._disableResourceVersioning;
}
get effectiveLabels() {
return this._effectiveLabels;
}
get enableHistoryImport() {
return this.getBooleanAttribute('enable_history_import');
}
set enableHistoryImport(value) {
this._enableHistoryImport = value;
}
resetEnableHistoryImport() {
this._enableHistoryImport = undefined;
}
// Temporarily expose input value. Use with caution.
get enableHistoryImportInput() {
return this._enableHistoryImport;
}
get enableUpdateCreate() {
return this.getBooleanAttribute('enable_update_create');
}
set enableUpdateCreate(value) {
this._enableUpdateCreate = value;
}
resetEnableUpdateCreate() {
this._enableUpdateCreate = undefined;
}
// Temporarily expose input value. Use with caution.
get enableUpdateCreateInput() {
return this._enableUpdateCreate;
}
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.getStringMapAttribute('labels');
}
set labels(value) {
this._labels = value;
}
resetLabels() {
this._labels = undefined;
}
// Temporarily expose input value. Use with caution.
get labelsInput() {
return this._labels;
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
// self_link - computed: true, optional: false, required: false
get selfLink() {
return this.getStringAttribute('self_link');
}
get terraformLabels() {
return this._terraformLabels;
}
get version() {
return this.getStringAttribute('version');
}
set version(value) {
this._version = value;
}
// Temporarily expose input value. Use with caution.
get versionInput() {
return this._version;
}
get notificationConfig() {
return this._notificationConfig;
}
putNotificationConfig(value) {
this._notificationConfig.internalValue = value;
}
resetNotificationConfig() {
this._notificationConfig.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get notificationConfigInput() {
return this._notificationConfig.internalValue;
}
get notificationConfigs() {
return this._notificationConfigs;
}
putNotificationConfigs(value) {
this._notificationConfigs.internalValue = value;
}
resetNotificationConfigs() {
this._notificationConfigs.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get notificationConfigsInput() {
return this._notificationConfigs.internalValue;
}
get streamConfigs() {
return this._streamConfigs;
}
putStreamConfigs(value) {
this._streamConfigs.internalValue = value;
}
resetStreamConfigs() {
this._streamConfigs.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get streamConfigsInput() {
return this._streamConfigs.internalValue;
}
get timeouts() {
return this._timeouts;
}
putTimeouts(value) {
this._timeouts.internalValue = value;
}
resetTimeouts() {
this._timeouts.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get timeoutsInput() {
return this._timeouts.internalValue;
}
// =========
// SYNTHESIS
// =========
synthesizeAttributes() {
return {
complex_data_type_reference_parsing: cdktf.stringToTerraform(this._complexDataTypeReferenceParsing),
dataset: cdktf.stringToTerraform(this._dataset),
default_search_handling_strict: cdktf.booleanToTerraform(this._defaultSearchHandlingStrict),
disable_referential_integrity: cdktf.booleanToTerraform(this._disableReferentialIntegrity),
disable_resource_versioning: cdktf.booleanToTerraform(this._disableResourceVersioning),
enable_history_import: cdktf.booleanToTerraform(this._enableHistoryImport),
enable_update_create: cdktf.booleanToTerraform(this._enableUpdateCreate),
id: cdktf.stringToTerraform(this._id),
labels: cdktf.hashMapper(cdktf.stringToTerraform)(this._labels),
name: cdktf.stringToTerraform(this._name),
version: cdktf.stringToTerraform(this._version),
notification_config: healthcareFhirStoreNotificationConfigToTerraform(this._notificationConfig.internalValue),
notification_configs: cdktf.listMapper(healthcareFhirStoreNotificationConfigsToTerraform, true)(this._notificationConfigs.internalValue),
stream_configs: cdktf.listMapper(healthcareFhirStoreStreamConfigsToTerraform, true)(this._streamConfigs.internalValue),
timeouts: healthcareFhirStoreTimeoutsToTer