
com.pulumi.awsnative.mediaconnect.kotlin.FlowOutput.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.mediaconnect.kotlin
import com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowOutputOutputStatus
import com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowOutputProtocol
import com.pulumi.awsnative.mediaconnect.kotlin.outputs.FlowOutputEncryption
import com.pulumi.awsnative.mediaconnect.kotlin.outputs.FlowOutputMediaStreamOutputConfiguration
import com.pulumi.awsnative.mediaconnect.kotlin.outputs.FlowOutputVpcInterfaceAttachment
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.FlowOutputOutputStatus.Companion.toKotlin as flowOutputOutputStatusToKotlin
import com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowOutputProtocol.Companion.toKotlin as flowOutputProtocolToKotlin
import com.pulumi.awsnative.mediaconnect.kotlin.outputs.FlowOutputEncryption.Companion.toKotlin as flowOutputEncryptionToKotlin
import com.pulumi.awsnative.mediaconnect.kotlin.outputs.FlowOutputMediaStreamOutputConfiguration.Companion.toKotlin as flowOutputMediaStreamOutputConfigurationToKotlin
import com.pulumi.awsnative.mediaconnect.kotlin.outputs.FlowOutputVpcInterfaceAttachment.Companion.toKotlin as flowOutputVpcInterfaceAttachmentToKotlin
/**
* Builder for [FlowOutput].
*/
@PulumiTagMarker
public class FlowOutputResourceBuilder internal constructor() {
public var name: String? = null
public var args: FlowOutputArgs = FlowOutputArgs()
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 FlowOutputArgsBuilder.() -> Unit) {
val builder = FlowOutputArgsBuilder()
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(): FlowOutput {
val builtJavaResource = com.pulumi.awsnative.mediaconnect.FlowOutput(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return FlowOutput(builtJavaResource)
}
}
/**
* Resource schema for AWS::MediaConnect::FlowOutput
*/
public class FlowOutput internal constructor(
override val javaResource: com.pulumi.awsnative.mediaconnect.FlowOutput,
) : KotlinCustomResource(javaResource, FlowOutputMapper) {
/**
* The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
*/
public val cidrAllowList: Output>?
get() = javaResource.cidrAllowList().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0 })
}).orElse(null)
})
/**
* A description of the output.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The address where you want to send the output.
*/
public val destination: Output?
get() = javaResource.destination().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
*/
public val encryption: Output?
get() = javaResource.encryption().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
flowOutputEncryptionToKotlin(args0)
})
}).orElse(null)
})
/**
* The Amazon Resource Name (ARN), a unique identifier for any AWS resource, of the flow.
*/
public val flowArn: Output
get() = javaResource.flowArn().applyValue({ args0 -> args0 })
/**
* The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams.
*/
public val maxLatency: Output?
get() = javaResource.maxLatency().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The definition for each media stream that is associated with the output.
*/
public val mediaStreamOutputConfigurations:
Output>?
get() = javaResource.mediaStreamOutputConfigurations().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
flowOutputMediaStreamOutputConfigurationToKotlin(args0)
})
})
}).orElse(null)
})
/**
* The minimum latency in milliseconds.
*/
public val minLatency: Output?
get() = javaResource.minLatency().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The name of the output. This value must be unique within the current flow.
*/
public val name: Output?
get() = javaResource.name().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The ARN of the output.
*/
public val outputArn: Output
get() = javaResource.outputArn().applyValue({ args0 -> args0 })
/**
* An indication of whether the output should transmit data or not.
*/
public val outputStatus: Output?
get() = javaResource.outputStatus().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
flowOutputOutputStatusToKotlin(args0)
})
}).orElse(null)
})
/**
* The port to use when content is distributed to this output.
*/
public val port: Output?
get() = javaResource.port().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The protocol that is used by the source or output.
*/
public val protocol: Output
get() = javaResource.protocol().applyValue({ args0 ->
args0.let({ args0 ->
flowOutputProtocolToKotlin(args0)
})
})
/**
* The remote ID for the Zixi-pull stream.
*/
public val remoteId: Output?
get() = javaResource.remoteId().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.
*/
public val smoothingLatency: Output?
get() = javaResource.smoothingLatency().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
*/
public val streamId: Output?
get() = javaResource.streamId().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The name of the VPC interface attachment to use for this output.
*/
public val vpcInterfaceAttachment: Output?
get() = javaResource.vpcInterfaceAttachment().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> flowOutputVpcInterfaceAttachmentToKotlin(args0) })
}).orElse(null)
})
}
public object FlowOutputMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.mediaconnect.FlowOutput::class == javaResource::class
override fun map(javaResource: Resource): FlowOutput = FlowOutput(
javaResource as
com.pulumi.awsnative.mediaconnect.FlowOutput,
)
}
/**
* @see [FlowOutput].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [FlowOutput].
*/
public suspend fun flowOutput(name: String, block: suspend FlowOutputResourceBuilder.() -> Unit): FlowOutput {
val builder = FlowOutputResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [FlowOutput].
* @param name The _unique_ name of the resulting resource.
*/
public fun flowOutput(name: String): FlowOutput {
val builder = FlowOutputResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy