> **Experimental**
>
> `@aws-cdk/aws-mediaconnect-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.
# RouterInputGrants

Collection of grant methods for a IRouterInputRef.

Obtainable from: RouterInputGrants.fromRouterInput

- 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 mediaconnect_alpha from '@aws-cdk/aws-mediaconnect-alpha';
import { aws_mediaconnect as interfaces_mediaconnect } from 'aws-cdk-lib/interfaces';

declare const routerInputRef: interfaces_mediaconnect.IRouterInputRef;
const routerInputGrants = mediaconnect_alpha.RouterInputGrants.fromRouterInput(routerInputRef);
```

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_mediaconnect_alpha as mediaconnect_alpha
from aws_cdk.interfaces import aws_mediaconnect as interfaces_mediaconnect

# router_input_ref: interfaces_mediaconnect.IRouterInputRef

router_input_grants = mediaconnect_alpha.RouterInputGrants.from_router_input(router_input_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.mediaconnect.alpha.*;
import software.amazon.awscdk.interfaces.mediaconnect.*;

IRouterInputRef routerInputRef;

RouterInputGrants routerInputGrants = RouterInputGrants.fromRouterInput(routerInputRef);
```

C# / .NET:

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

IRouterInputRef routerInputRef;

var routerInputGrants = RouterInputGrants.FromRouterInput(routerInputRef);
```

Golang:

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

var routerInputRef IRouterInputRef

routerInputGrants := mediaconnect_alpha.RouterInputGrants_FromRouterInput(routerInputRef)
```

## Methods

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

- `fromRouterInput(resource: IRouterInputRef): RouterInputGrants // chainable` (static) — Creates grants for RouterInputGrants.

- `restart(grantee: IGrantable): Grant` — Grant permissions to restart this router input.

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

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