All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.gcp.pubsub.kotlin.outputs.GetSubscriptionResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.pubsub.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* A collection of values returned by getSubscription.
* @property ackDeadlineSeconds
* @property bigqueryConfigs
* @property cloudStorageConfigs
* @property deadLetterPolicies
* @property effectiveLabels
* @property enableExactlyOnceDelivery
* @property enableMessageOrdering
* @property expirationPolicies
* @property filter
* @property id The provider-assigned unique ID for this managed resource.
* @property labels
* @property messageRetentionDuration
* @property name
* @property project
* @property pulumiLabels
* @property pushConfigs
* @property retainAckedMessages
* @property retryPolicies
* @property topic
*/
public data class GetSubscriptionResult(
public val ackDeadlineSeconds: Int,
public val bigqueryConfigs: List,
public val cloudStorageConfigs: List,
public val deadLetterPolicies: List,
public val effectiveLabels: Map,
public val enableExactlyOnceDelivery: Boolean,
public val enableMessageOrdering: Boolean,
public val expirationPolicies: List,
public val filter: String,
public val id: String,
public val labels: Map,
public val messageRetentionDuration: String,
public val name: String,
public val project: String? = null,
public val pulumiLabels: Map,
public val pushConfigs: List,
public val retainAckedMessages: Boolean,
public val retryPolicies: List,
public val topic: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.pubsub.outputs.GetSubscriptionResult): GetSubscriptionResult = GetSubscriptionResult(
ackDeadlineSeconds = javaType.ackDeadlineSeconds(),
bigqueryConfigs = javaType.bigqueryConfigs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.pubsub.kotlin.outputs.GetSubscriptionBigqueryConfig.Companion.toKotlin(args0)
})
}),
cloudStorageConfigs = javaType.cloudStorageConfigs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.pubsub.kotlin.outputs.GetSubscriptionCloudStorageConfig.Companion.toKotlin(args0)
})
}),
deadLetterPolicies = javaType.deadLetterPolicies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.pubsub.kotlin.outputs.GetSubscriptionDeadLetterPolicy.Companion.toKotlin(args0)
})
}),
effectiveLabels = javaType.effectiveLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
enableExactlyOnceDelivery = javaType.enableExactlyOnceDelivery(),
enableMessageOrdering = javaType.enableMessageOrdering(),
expirationPolicies = javaType.expirationPolicies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.pubsub.kotlin.outputs.GetSubscriptionExpirationPolicy.Companion.toKotlin(args0)
})
}),
filter = javaType.filter(),
id = javaType.id(),
labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
messageRetentionDuration = javaType.messageRetentionDuration(),
name = javaType.name(),
project = javaType.project().map({ args0 -> args0 }).orElse(null),
pulumiLabels = javaType.pulumiLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
pushConfigs = javaType.pushConfigs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.pubsub.kotlin.outputs.GetSubscriptionPushConfig.Companion.toKotlin(args0)
})
}),
retainAckedMessages = javaType.retainAckedMessages(),
retryPolicies = javaType.retryPolicies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.pubsub.kotlin.outputs.GetSubscriptionRetryPolicy.Companion.toKotlin(args0)
})
}),
topic = javaType.topic(),
)
}
}