com.pulumi.gcp.healthcare.kotlin.outputs.FhirStoreNotificationConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.healthcare.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @property pubsubTopic The Cloud Pub/Sub topic that notifications of changes are published on. Supplied by the client.
* PubsubMessage.Data will contain the resource name. PubsubMessage.MessageId is the ID of this message.
* It is guaranteed to be unique within the topic. PubsubMessage.PublishTime is the time at which the message
* was published. Notifications are only sent if the topic is non-empty. Topic names must be scoped to a
* project. [email protected] must have publisher permissions on the given
* Cloud Pub/Sub topic. Not having adequate permissions will cause the calls that send notifications to fail.
* @property sendFullResource Whether to send full FHIR resource to this Pub/Sub topic for Create and Update operation.
* Note that setting this to true does not guarantee that all resources will be sent in the format of
* full FHIR resource. When a resource change is too large or during heavy traffic, only the resource name will be
* sent. Clients should always check the "payloadType" label from a Pub/Sub message to determine whether
* it needs to fetch the full resource as a separate operation.
* @property sendPreviousResourceOnDelete Whether to send full FHIR resource to this Pub/Sub topic for deleting FHIR resource. Note that setting this to
* true does not guarantee that all previous resources will be sent in the format of full FHIR resource. When a
* resource change is too large or during heavy traffic, only the resource name will be sent. Clients should always
* check the "payloadType" label from a Pub/Sub message to determine whether it needs to fetch the full previous
* resource as a separate operation.
*/
public data class FhirStoreNotificationConfig(
public val pubsubTopic: String,
public val sendFullResource: Boolean? = null,
public val sendPreviousResourceOnDelete: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.healthcare.outputs.FhirStoreNotificationConfig): FhirStoreNotificationConfig = FhirStoreNotificationConfig(
pubsubTopic = javaType.pubsubTopic(),
sendFullResource = javaType.sendFullResource().map({ args0 -> args0 }).orElse(null),
sendPreviousResourceOnDelete = javaType.sendPreviousResourceOnDelete().map({ args0 ->
args0
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy