MediaResourceProperty Struct
An Amazon Web Services resource used in media workflows.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_medialive as medialive } from 'aws-cdk-lib';
const mediaResourceProperty: medialive.CfnSignalMap.MediaResourceProperty = {
destinations: [{
arn: 'arn',
// the properties below are optional
name: 'name',
}],
name: 'name',
sources: [{
arn: 'arn',
// the properties below are optional
name: 'name',
}],
};
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_medialive as medialive
media_resource_property = medialive.CfnSignalMap.MediaResourceProperty(
destinations=[medialive.CfnSignalMap.MediaResourceNeighborProperty(
arn="arn",
# the properties below are optional
name="name"
)],
name="name",
sources=[medialive.CfnSignalMap.MediaResourceNeighborProperty(
arn="arn",
# the properties below are optional
name="name"
)]
)
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.medialive.*;
MediaResourceProperty mediaResourceProperty = MediaResourceProperty.builder()
.destinations(List.of(MediaResourceNeighborProperty.builder()
.arn("arn")
// the properties below are optional
.name("name")
.build()))
.name("name")
.sources(List.of(MediaResourceNeighborProperty.builder()
.arn("arn")
// the properties below are optional
.name("name")
.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.MediaLive;
var mediaResourceProperty = new MediaResourceProperty {
Destinations = new [] { new MediaResourceNeighborProperty {
Arn = "arn",
// the properties below are optional
Name = "name"
} },
Name = "name",
Sources = new [] { new MediaResourceNeighborProperty {
Arn = "arn",
// the properties below are optional
Name = "name"
} }
};
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"
mediaResourceProperty := &MediaResourceProperty{
Destinations: []interface{}{
&MediaResourceNeighborProperty{
Arn: jsii.String("arn"),
// the properties below are optional
Name: jsii.String("name"),
},
},
Name: jsii.String("name"),
Sources: []interface{}{
&MediaResourceNeighborProperty{
Arn: jsii.String("arn"),
// the properties below are optional
Name: jsii.String("name"),
},
},
}
Properties
destinationsoptionalIResolvable | IResolvable | CfnSignalMap.destinationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MediaResourceNeighborProperty]]]destinationsoptionalIResolvableDestinationsoptionalIResolvableDestinationsoptionalinterface{} #A direct destination neighbor to an Amazon Web Services media resource.
The logical name of an Amazon Web Services media resource.
sourcesoptionalIResolvable | IResolvable | CfnSignalMap.sourcesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MediaResourceNeighborProperty]]]sourcesoptionalIResolvableSourcesoptionalIResolvableSourcesoptionalinterface{} #A direct source neighbor to an Amazon Web Services media resource.