# CfnEncoderConfigurationProps

Properties for defining a `CfnEncoderConfiguration`.

Used as props by: [CfnEncoderConfiguration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ivs.CfnEncoderConfiguration.html)

- Source: Generated at build time
- Type last changed: v2.138.0 · 18 Apr 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
    }
};
```

Golang:

```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

- `name`: string — Encoder cnfiguration name.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.

  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-encoderconfiguration-tag.html) .

- `video`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEncoderConfiguration.VideoProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ivs.CfnEncoderConfiguration.VideoProperty.html) — Video configuration.

  Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps. See the [Video](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-encoderconfiguration-video.html) property type for more information.
