Skip to content
v2.277.0

CfnEncoderConfigurationProps Struct ​

Properties for defining a CfnEncoderConfiguration.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ivs as ivs } from 'aws-cdk-lib';
const cfnEncoderConfigurationProps: ivs.CfnEncoderConfigurationProps = {
  name: 'name',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  video: {
    bitrate: 123,
    framerate: 123,
    height: 123,
    width: 123,
  },
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ivs as ivs

cfn_encoder_configuration_props = ivs.CfnEncoderConfigurationProps(
    name="name",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    video=ivs.CfnEncoderConfiguration.VideoProperty(
        bitrate=123,
        framerate=123,
        height=123,
        width=123
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ivs.*;

CfnEncoderConfigurationProps cfnEncoderConfigurationProps = CfnEncoderConfigurationProps.builder()
        .name("name")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .video(VideoProperty.builder()
                .bitrate(123)
                .framerate(123)
                .height(123)
                .width(123)
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Ivs;

var cfnEncoderConfigurationProps = new CfnEncoderConfigurationProps {
    Name = "name",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    Video = new VideoProperty {
        Bitrate = 123,
        Framerate = 123,
        Height = 123,
        Width = 123
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnEncoderConfigurationProps := &CfnEncoderConfigurationProps{
	Name: jsii.String("name"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	Video: &VideoProperty{
		Bitrate: jsii.Number(123),
		Framerate: jsii.Number(123),
		Height: jsii.Number(123),
		Width: jsii.Number(123),
	},
}

Properties ​

nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
Encoder cnfiguration name.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of key-value pairs to apply to this resource.

For more information, see Tag .

videooptionalIResolvable | CfnEncoderConfiguration.VideoPropertyvideooptionaltyping.Union[IResolvable, VideoProperty]videooptionalIResolvableVideooptionalIResolvableVideooptionalinterface{} #
Video configuration.

Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps. See the Video property type for more information.