# MediaResourceProperty

An Amazon Web Services resource used in media workflows.

- Source: Generated at build time
- Type last changed: v2.159.0 · 19 Sep 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_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:

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

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

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

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"

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

- `destinations`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSignalMap.MediaResourceNeighborProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_medialive.CfnSignalMap.MediaResourceNeighborProperty.html)[] — A direct destination neighbor to an Amazon Web Services media resource.

- `name`: string — The logical name of an Amazon Web Services media resource.

- `sources`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSignalMap.MediaResourceNeighborProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_medialive.CfnSignalMap.MediaResourceNeighborProperty.html)[] — A direct source neighbor to an Amazon Web Services media resource.
