> **Experimental**
>
> `@aws-cdk/aws-medialive-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# ChannelGrants

Collection of grant methods for a IChannelRef.

Obtainable from: ChannelGrants.fromChannel

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: Generated at build time

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';
import { aws_medialive as interfaces_medialive } from 'aws-cdk-lib/interfaces';

declare const channelRef: interfaces_medialive.IChannelRef;
const channelGrants = medialive_alpha.ChannelGrants.fromChannel(channelRef);
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_medialive_alpha as medialive_alpha
from aws_cdk.interfaces import aws_medialive as interfaces_medialive

# channel_ref: interfaces_medialive.IChannelRef

channel_grants = medialive_alpha.ChannelGrants.from_channel(channel_ref)
```

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.alpha.*;
import software.amazon.awscdk.interfaces.medialive.*;

IChannelRef channelRef;

ChannelGrants channelGrants = ChannelGrants.fromChannel(channelRef);
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive.Alpha;
using Amazon.CDK.Interfaces.MediaLive;

IChannelRef channelRef;

var channelGrants = ChannelGrants.FromChannel(channelRef);
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import medialive_alpha "github.com/aws/aws-cdk-go/awsmedialivealpha"
import "github.com/aws/aws-cdk-go/awscdk"

var channelRef IChannelRef

channelGrants := medialive_alpha.ChannelGrants_FromChannel(channelRef)
```

## Methods

- `actions(grantee: IGrantable, actions: string[], options?: PermissionsOptions): Grant` — Grant the given identity custom permissions.

- `fromChannel(resource: IChannelRef): ChannelGrants // chainable` (static) — Creates grants for ChannelGrants.

- `start(grantee: IGrantable): Grant` — Grant permissions to start this channel.

- `stop(grantee: IGrantable): Grant` — Grant permissions to stop this channel.

- `updateSchedule(grantee: IGrantable): Grant` — Grant permissions to update the schedule of this channel.
