# ChannelSpecificationProperty

- Source: Generated at build time
- Type last changed: v2.262.0 · 22 Jul 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const channelSpecificationProperty: sagemaker.CfnAlgorithm.ChannelSpecificationProperty = {
  name: 'name',
  supportedContentTypes: ['supportedContentTypes'],
  supportedInputModes: ['supportedInputModes'],

  // the properties below are optional
  description: 'description',
  isRequired: false,
  supportedCompressionTypes: ['supportedCompressionTypes'],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

channel_specification_property = sagemaker.CfnAlgorithm.ChannelSpecificationProperty(
    name="name",
    supported_content_types=["supportedContentTypes"],
    supported_input_modes=["supportedInputModes"],

    # the properties below are optional
    description="description",
    is_required=False,
    supported_compression_types=["supportedCompressionTypes"]
)
```

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.sagemaker.*;

ChannelSpecificationProperty channelSpecificationProperty = ChannelSpecificationProperty.builder()
        .name("name")
        .supportedContentTypes(List.of("supportedContentTypes"))
        .supportedInputModes(List.of("supportedInputModes"))

        // the properties below are optional
        .description("description")
        .isRequired(false)
        .supportedCompressionTypes(List.of("supportedCompressionTypes"))
        .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.Sagemaker;

var channelSpecificationProperty = new ChannelSpecificationProperty {
    Name = "name",
    SupportedContentTypes = new [] { "supportedContentTypes" },
    SupportedInputModes = new [] { "supportedInputModes" },

    // the properties below are optional
    Description = "description",
    IsRequired = false,
    SupportedCompressionTypes = new [] { "supportedCompressionTypes" }
};
```

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"

channelSpecificationProperty := &ChannelSpecificationProperty{
	Name: jsii.String("name"),
	SupportedContentTypes: []*string{
		jsii.String("supportedContentTypes"),
	},
	SupportedInputModes: []*string{
		jsii.String("supportedInputModes"),
	},

	// the properties below are optional
	Description: jsii.String("description"),
	IsRequired: jsii.Boolean(false),
	SupportedCompressionTypes: []*string{
		jsii.String("supportedCompressionTypes"),
	},
}
```

## Properties

- `description`: string

- `isRequired`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html)

- `name`: string (required)

- `supportedCompressionTypes`: string[]

- `supportedContentTypes`: string[] (required)

- `supportedInputModes`: string[] (required)
