![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.videoanalyzer.kotlin.LivePipelineArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.azurenative.videoanalyzer.kotlin
import com.pulumi.azurenative.videoanalyzer.LivePipelineArgs.builder
import com.pulumi.azurenative.videoanalyzer.kotlin.inputs.ParameterDefinitionArgs
import com.pulumi.azurenative.videoanalyzer.kotlin.inputs.ParameterDefinitionArgsBuilder
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
/**
* Live pipeline represents a unique instance of a live topology, used for real-time ingestion, archiving and publishing of content for a unique RTSP camera.
* Azure REST API version: 2021-11-01-preview. Prior API version in Azure Native 1.x: 2021-11-01-preview.
* ## Example Usage
* ### Create or update a live pipeline
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var livePipeline = new AzureNative.VideoAnalyzer.LivePipeline("livePipeline", new()
* {
* AccountName = "testaccount2",
* BitrateKbps = 500,
* Description = "Live Pipeline 1 Description",
* LivePipelineName = "livePipeline1",
* Parameters = new[]
* {
* new AzureNative.VideoAnalyzer.Inputs.ParameterDefinitionArgs
* {
* Name = "rtspUrlParameter",
* Value = "rtsp://contoso.com/stream",
* },
* },
* ResourceGroupName = "testrg",
* TopologyName = "pipelinetopology1",
* });
* });
* ```
* ```go
* package main
* import (
* videoanalyzer "github.com/pulumi/pulumi-azure-native-sdk/videoanalyzer/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := videoanalyzer.NewLivePipeline(ctx, "livePipeline", &videoanalyzer.LivePipelineArgs{
* AccountName: pulumi.String("testaccount2"),
* BitrateKbps: pulumi.Int(500),
* Description: pulumi.String("Live Pipeline 1 Description"),
* LivePipelineName: pulumi.String("livePipeline1"),
* Parameters: videoanalyzer.ParameterDefinitionArray{
* &videoanalyzer.ParameterDefinitionArgs{
* Name: pulumi.String("rtspUrlParameter"),
* Value: pulumi.String("rtsp://contoso.com/stream"),
* },
* },
* ResourceGroupName: pulumi.String("testrg"),
* TopologyName: pulumi.String("pipelinetopology1"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.videoanalyzer.LivePipeline;
* import com.pulumi.azurenative.videoanalyzer.LivePipelineArgs;
* import com.pulumi.azurenative.videoanalyzer.inputs.ParameterDefinitionArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var livePipeline = new LivePipeline("livePipeline", LivePipelineArgs.builder()
* .accountName("testaccount2")
* .bitrateKbps(500)
* .description("Live Pipeline 1 Description")
* .livePipelineName("livePipeline1")
* .parameters(ParameterDefinitionArgs.builder()
* .name("rtspUrlParameter")
* .value("rtsp://contoso.com/stream")
* .build())
* .resourceGroupName("testrg")
* .topologyName("pipelinetopology1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:videoanalyzer:LivePipeline livePipeline1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/videoAnalyzers/{accountName}/livePipelines/{livePipelineName}
* ```
* @property accountName The Azure Video Analyzer account name.
* @property bitrateKbps Maximum bitrate capacity in Kbps reserved for the live pipeline. The allowed range is from 500 to 3000 Kbps in increments of 100 Kbps. If the RTSP camera exceeds this capacity, then the service will disconnect temporarily from the camera. It will retry to re-establish connection (with exponential backoff), checking to see if the camera bitrate is now below the reserved capacity. Doing so will ensure that one 'noisy neighbor' does not affect other live pipelines in your account.
* @property description An optional description for the pipeline.
* @property livePipelineName Live pipeline unique identifier.
* @property parameters List of the instance level parameter values for the user-defined topology parameters. A pipeline can only define or override parameters values for parameters which have been declared in the referenced topology. Topology parameters without a default value must be defined. Topology parameters with a default value can be optionally be overridden.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property topologyName The reference to an existing pipeline topology defined for real-time content processing. When activated, this live pipeline will process content according to the pipeline topology definition.
*/
public data class LivePipelineArgs(
public val accountName: Output? = null,
public val bitrateKbps: Output? = null,
public val description: Output? = null,
public val livePipelineName: Output? = null,
public val parameters: Output>? = null,
public val resourceGroupName: Output? = null,
public val topologyName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.videoanalyzer.LivePipelineArgs =
com.pulumi.azurenative.videoanalyzer.LivePipelineArgs.builder()
.accountName(accountName?.applyValue({ args0 -> args0 }))
.bitrateKbps(bitrateKbps?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.livePipelineName(livePipelineName?.applyValue({ args0 -> args0 }))
.parameters(
parameters?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.topologyName(topologyName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LivePipelineArgs].
*/
@PulumiTagMarker
public class LivePipelineArgsBuilder internal constructor() {
private var accountName: Output? = null
private var bitrateKbps: Output? = null
private var description: Output? = null
private var livePipelineName: Output? = null
private var parameters: Output>? = null
private var resourceGroupName: Output? = null
private var topologyName: Output? = null
/**
* @param value The Azure Video Analyzer account name.
*/
@JvmName("whtbmnhsxgmqbrys")
public suspend fun accountName(`value`: Output) {
this.accountName = value
}
/**
* @param value Maximum bitrate capacity in Kbps reserved for the live pipeline. The allowed range is from 500 to 3000 Kbps in increments of 100 Kbps. If the RTSP camera exceeds this capacity, then the service will disconnect temporarily from the camera. It will retry to re-establish connection (with exponential backoff), checking to see if the camera bitrate is now below the reserved capacity. Doing so will ensure that one 'noisy neighbor' does not affect other live pipelines in your account.
*/
@JvmName("unrsbqxecyfqnnvh")
public suspend fun bitrateKbps(`value`: Output) {
this.bitrateKbps = value
}
/**
* @param value An optional description for the pipeline.
*/
@JvmName("nxhsbfeikeptsjql")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Live pipeline unique identifier.
*/
@JvmName("svxpuohcmercyksr")
public suspend fun livePipelineName(`value`: Output) {
this.livePipelineName = value
}
/**
* @param value List of the instance level parameter values for the user-defined topology parameters. A pipeline can only define or override parameters values for parameters which have been declared in the referenced topology. Topology parameters without a default value must be defined. Topology parameters with a default value can be optionally be overridden.
*/
@JvmName("tijmdsrydennpmrl")
public suspend fun parameters(`value`: Output>) {
this.parameters = value
}
@JvmName("kcpnwwoqkygrttut")
public suspend fun parameters(vararg values: Output) {
this.parameters = Output.all(values.asList())
}
/**
* @param values List of the instance level parameter values for the user-defined topology parameters. A pipeline can only define or override parameters values for parameters which have been declared in the referenced topology. Topology parameters without a default value must be defined. Topology parameters with a default value can be optionally be overridden.
*/
@JvmName("qdnwenbevqkddgxy")
public suspend fun parameters(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy