![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.mediaconnect.kotlin.FlowEntitlement.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.mediaconnect.kotlin
import com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowEntitlementEntitlementStatus
import com.pulumi.awsnative.mediaconnect.kotlin.outputs.FlowEntitlementEncryption
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowEntitlementEntitlementStatus.Companion.toKotlin as flowEntitlementEntitlementStatusToKotlin
import com.pulumi.awsnative.mediaconnect.kotlin.outputs.FlowEntitlementEncryption.Companion.toKotlin as flowEntitlementEncryptionToKotlin
/**
* Builder for [FlowEntitlement].
*/
@PulumiTagMarker
public class FlowEntitlementResourceBuilder internal constructor() {
public var name: String? = null
public var args: FlowEntitlementArgs = FlowEntitlementArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend FlowEntitlementArgsBuilder.() -> Unit) {
val builder = FlowEntitlementArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): FlowEntitlement {
val builtJavaResource =
com.pulumi.awsnative.mediaconnect.FlowEntitlement(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return FlowEntitlement(builtJavaResource)
}
}
/**
* Resource schema for AWS::MediaConnect::FlowEntitlement
*/
public class FlowEntitlement internal constructor(
override val javaResource: com.pulumi.awsnative.mediaconnect.FlowEntitlement,
) : KotlinCustomResource(javaResource, FlowEntitlementMapper) {
/**
* Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
*/
public val dataTransferSubscriberFeePercent: Output?
get() = javaResource.dataTransferSubscriberFeePercent().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* A description of the entitlement.
*/
public val description: Output
get() = javaResource.description().applyValue({ args0 -> args0 })
/**
* The type of encryption that will be used on the output that is associated with this entitlement.
*/
public val encryption: Output?
get() = javaResource.encryption().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
flowEntitlementEncryptionToKotlin(args0)
})
}).orElse(null)
})
/**
* The ARN of the entitlement.
*/
public val entitlementArn: Output
get() = javaResource.entitlementArn().applyValue({ args0 -> args0 })
/**
* An indication of whether the entitlement is enabled.
*/
public val entitlementStatus: Output?
get() = javaResource.entitlementStatus().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> flowEntitlementEntitlementStatusToKotlin(args0) })
}).orElse(null)
})
/**
* The ARN of the flow.
*/
public val flowArn: Output
get() = javaResource.flowArn().applyValue({ args0 -> args0 })
/**
* The name of the entitlement.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* 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 val subscribers: Output>
get() = javaResource.subscribers().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
}
public object FlowEntitlementMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.mediaconnect.FlowEntitlement::class == javaResource::class
override fun map(javaResource: Resource): FlowEntitlement = FlowEntitlement(
javaResource as
com.pulumi.awsnative.mediaconnect.FlowEntitlement,
)
}
/**
* @see [FlowEntitlement].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [FlowEntitlement].
*/
public suspend fun flowEntitlement(
name: String,
block: suspend FlowEntitlementResourceBuilder.() -> Unit,
): FlowEntitlement {
val builder = FlowEntitlementResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [FlowEntitlement].
* @param name The _unique_ name of the resulting resource.
*/
public fun flowEntitlement(name: String): FlowEntitlement {
val builder = FlowEntitlementResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy