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

com.pulumi.awsnative.mediaconnect.kotlin.FlowEntitlementArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.mediaconnect.kotlin

import com.pulumi.awsnative.mediaconnect.FlowEntitlementArgs.builder
import com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowEntitlementEntitlementStatus
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.FlowEntitlementEncryptionArgs
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.FlowEntitlementEncryptionArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::MediaConnect::FlowEntitlement
 * @property dataTransferSubscriberFeePercent Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
 * @property description A description of the entitlement.
 * @property encryption The type of encryption that will be used on the output that is associated with this entitlement.
 * @property entitlementStatus  An indication of whether the entitlement is enabled.
 * @property flowArn The ARN of the flow.
 * @property name The name of the entitlement.
 * @property subscribers The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.
 */
public data class FlowEntitlementArgs(
    public val dataTransferSubscriberFeePercent: Output? = null,
    public val description: Output? = null,
    public val encryption: Output? = null,
    public val entitlementStatus: Output? = null,
    public val flowArn: Output? = null,
    public val name: Output? = null,
    public val subscribers: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediaconnect.FlowEntitlementArgs =
        com.pulumi.awsnative.mediaconnect.FlowEntitlementArgs.builder()
            .dataTransferSubscriberFeePercent(dataTransferSubscriberFeePercent?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .encryption(encryption?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .entitlementStatus(entitlementStatus?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .flowArn(flowArn?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .subscribers(subscribers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [FlowEntitlementArgs].
 */
@PulumiTagMarker
public class FlowEntitlementArgsBuilder internal constructor() {
    private var dataTransferSubscriberFeePercent: Output? = null

    private var description: Output? = null

    private var encryption: Output? = null

    private var entitlementStatus: Output? = null

    private var flowArn: Output? = null

    private var name: Output? = null

    private var subscribers: Output>? = null

    /**
     * @param value Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
     */
    @JvmName("jnjldobnegbkkadl")
    public suspend fun dataTransferSubscriberFeePercent(`value`: Output) {
        this.dataTransferSubscriberFeePercent = value
    }

    /**
     * @param value A description of the entitlement.
     */
    @JvmName("xkxfgcvvxeabmdlg")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The type of encryption that will be used on the output that is associated with this entitlement.
     */
    @JvmName("lbkidjqluuturshb")
    public suspend fun encryption(`value`: Output) {
        this.encryption = value
    }

    /**
     * @param value  An indication of whether the entitlement is enabled.
     */
    @JvmName("ewnqsldgdmqmjnnb")
    public suspend fun entitlementStatus(`value`: Output) {
        this.entitlementStatus = value
    }

    /**
     * @param value The ARN of the flow.
     */
    @JvmName("fbukofnlbubrsyip")
    public suspend fun flowArn(`value`: Output) {
        this.flowArn = value
    }

    /**
     * @param value The name of the entitlement.
     */
    @JvmName("opeihpeikgkhqjux")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.
     */
    @JvmName("gwjuprfccqfkdosi")
    public suspend fun subscribers(`value`: Output>) {
        this.subscribers = value
    }

    @JvmName("umrmblohmjdeaipd")
    public suspend fun subscribers(vararg values: Output) {
        this.subscribers = Output.all(values.asList())
    }

    /**
     * @param values The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.
     */
    @JvmName("sbsclqlnmfcxgmkm")
    public suspend fun subscribers(values: List>) {
        this.subscribers = Output.all(values)
    }

    /**
     * @param value Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
     */
    @JvmName("lganscalirammigp")
    public suspend fun dataTransferSubscriberFeePercent(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataTransferSubscriberFeePercent = mapped
    }

    /**
     * @param value A description of the entitlement.
     */
    @JvmName("idtprchnytrmxgdd")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The type of encryption that will be used on the output that is associated with this entitlement.
     */
    @JvmName("ylelyxuiublybssh")
    public suspend fun encryption(`value`: FlowEntitlementEncryptionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryption = mapped
    }

    /**
     * @param argument The type of encryption that will be used on the output that is associated with this entitlement.
     */
    @JvmName("qogdmoktryqpjnaq")
    public suspend fun encryption(argument: suspend FlowEntitlementEncryptionArgsBuilder.() -> Unit) {
        val toBeMapped = FlowEntitlementEncryptionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.encryption = mapped
    }

    /**
     * @param value  An indication of whether the entitlement is enabled.
     */
    @JvmName("odnyrprbcrjjmmrr")
    public suspend fun entitlementStatus(`value`: FlowEntitlementEntitlementStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.entitlementStatus = mapped
    }

    /**
     * @param value The ARN of the flow.
     */
    @JvmName("qqssndljceomombv")
    public suspend fun flowArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.flowArn = mapped
    }

    /**
     * @param value The name of the entitlement.
     */
    @JvmName("sipmovlchhrvwhlt")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.
     */
    @JvmName("clnxsdhtblnghtsj")
    public suspend fun subscribers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subscribers = mapped
    }

    /**
     * @param values The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.
     */
    @JvmName("royikpiyvchbamwy")
    public suspend fun subscribers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subscribers = mapped
    }

    internal fun build(): FlowEntitlementArgs = FlowEntitlementArgs(
        dataTransferSubscriberFeePercent = dataTransferSubscriberFeePercent,
        description = description,
        encryption = encryption,
        entitlementStatus = entitlementStatus,
        flowArn = flowArn,
        name = name,
        subscribers = subscribers,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy