Skip to content
v2.277.0

CfnFeedProps Struct ​

Properties for defining a CfnFeed.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elementalinference as elementalinference } from 'aws-cdk-lib';
const cfnFeedProps: elementalinference.CfnFeedProps = {
  name: 'name',
  outputs: [{
    name: 'name',
    outputConfig: {
      clipping: {
        callbackMetadata: 'callbackMetadata',
        dataSourceConfiguration: {
          fixtureId: 'fixtureId',
        },
      },
      cropping: {
        templateGroups: [{
          name: 'name',
          templateUris: ['templateUris'],
        }],
      },
      subtitling: {
        language: 'language',

        // the properties below are optional
        aspectRatio: {
          height: 123,
          width: 123,
        },
        dictionary: 'dictionary',
        profanityFilter: 'profanityFilter',
      },
    },
    status: 'status',

    // the properties below are optional
    description: 'description',
  }],

  // the properties below are optional
  accessRoleArn: 'accessRoleArn',
  tags: {
    tagsKey: 'tags',
  },
};
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_elementalinference as elementalinference

cfn_feed_props = elementalinference.CfnFeedProps(
    name="name",
    outputs=[elementalinference.CfnFeed.GetOutputProperty(
        name="name",
        output_config=elementalinference.CfnFeed.OutputConfigProperty(
            clipping=elementalinference.CfnFeed.ClippingConfigProperty(
                callback_metadata="callbackMetadata",
                data_source_configuration=elementalinference.CfnFeed.DataSourceConfigurationProperty(
                    fixture_id="fixtureId"
                )
            ),
            cropping=elementalinference.CfnFeed.CroppingConfigProperty(
                template_groups=[elementalinference.CfnFeed.TemplateGroupProperty(
                    name="name",
                    template_uris=["templateUris"]
                )]
            ),
            subtitling=elementalinference.CfnFeed.SubtitlingConfigProperty(
                language="language",

                # the properties below are optional
                aspect_ratio=elementalinference.CfnFeed.AspectRatioProperty(
                    height=123,
                    width=123
                ),
                dictionary="dictionary",
                profanity_filter="profanityFilter"
            )
        ),
        status="status",

        # the properties below are optional
        description="description"
    )],

    # the properties below are optional
    access_role_arn="accessRoleArn",
    tags={
        "tags_key": "tags"
    }
)
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.elementalinference.*;

CfnFeedProps cfnFeedProps = CfnFeedProps.builder()
        .name("name")
        .outputs(List.of(GetOutputProperty.builder()
                .name("name")
                .outputConfig(OutputConfigProperty.builder()
                        .clipping(ClippingConfigProperty.builder()
                                .callbackMetadata("callbackMetadata")
                                .dataSourceConfiguration(DataSourceConfigurationProperty.builder()
                                        .fixtureId("fixtureId")
                                        .build())
                                .build())
                        .cropping(CroppingConfigProperty.builder()
                                .templateGroups(List.of(TemplateGroupProperty.builder()
                                        .name("name")
                                        .templateUris(List.of("templateUris"))
                                        .build()))
                                .build())
                        .subtitling(SubtitlingConfigProperty.builder()
                                .language("language")

                                // the properties below are optional
                                .aspectRatio(AspectRatioProperty.builder()
                                        .height(123)
                                        .width(123)
                                        .build())
                                .dictionary("dictionary")
                                .profanityFilter("profanityFilter")
                                .build())
                        .build())
                .status("status")

                // the properties below are optional
                .description("description")
                .build()))

        // the properties below are optional
        .accessRoleArn("accessRoleArn")
        .tags(Map.of(
                "tagsKey", "tags"))
        .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.ElementalInference;

var cfnFeedProps = new CfnFeedProps {
    Name = "name",
    Outputs = new [] { new GetOutputProperty {
        Name = "name",
        OutputConfig = new OutputConfigProperty {
            Clipping = new ClippingConfigProperty {
                CallbackMetadata = "callbackMetadata",
                DataSourceConfiguration = new DataSourceConfigurationProperty {
                    FixtureId = "fixtureId"
                }
            },
            Cropping = new CroppingConfigProperty {
                TemplateGroups = new [] { new TemplateGroupProperty {
                    Name = "name",
                    TemplateUris = new [] { "templateUris" }
                } }
            },
            Subtitling = new SubtitlingConfigProperty {
                Language = "language",

                // the properties below are optional
                AspectRatio = new AspectRatioProperty {
                    Height = 123,
                    Width = 123
                },
                Dictionary = "dictionary",
                ProfanityFilter = "profanityFilter"
            }
        },
        Status = "status",

        // the properties below are optional
        Description = "description"
    } },

    // the properties below are optional
    AccessRoleArn = "accessRoleArn",
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
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"

cfnFeedProps := &CfnFeedProps{
	Name: jsii.String("name"),
	Outputs: []interface{}{
		&GetOutputProperty{
			Name: jsii.String("name"),
			OutputConfig: &OutputConfigProperty{
				Clipping: &ClippingConfigProperty{
					CallbackMetadata: jsii.String("callbackMetadata"),
					DataSourceConfiguration: &DataSourceConfigurationProperty{
						FixtureId: jsii.String("fixtureId"),
					},
				},
				Cropping: &CroppingConfigProperty{
					TemplateGroups: []interface{}{
						&TemplateGroupProperty{
							Name: jsii.String("name"),
							TemplateUris: []*string{
								jsii.String("templateUris"),
							},
						},
					},
				},
				Subtitling: &SubtitlingConfigProperty{
					Language: jsii.String("language"),

					// the properties below are optional
					AspectRatio: &AspectRatioProperty{
						Height: jsii.Number(123),
						Width: jsii.Number(123),
					},
					Dictionary: jsii.String("dictionary"),
					ProfanityFilter: jsii.String("profanityFilter"),
				},
			},
			Status: jsii.String("status"),

			// the properties below are optional
			Description: jsii.String("description"),
		},
	},

	// the properties below are optional
	AccessRoleArn: jsii.String("accessRoleArn"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}

Properties ​

accessRoleArnoptionalstringaccess_role_arnoptionalstraccessRoleArnoptionalStringAccessRoleArnoptionalstringAccessRoleArnoptional*string#
namestringnamestrnameStringNamestringName*stringrequired#
outputsIResolvable | IResolvable | CfnFeed.GetOutputProperty[]outputstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, GetOutputProperty]]]outputsIResolvableOutputsIResolvableOutputsinterface{}required#
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string#