All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy