Skip to content
v2.277.0

Experimental

@aws-cdk/aws-mediaconnect-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

RouterInputGrants Facade ​

Collection of grant methods for a IRouterInputRef.

Example ​

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
# 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
// 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);
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);
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): Grantdef actions(self, grantee: IGrantable, actions: typing.List[str], options: typing.Optional[PermissionsOptions] = None) -> Grantpublic Grant actions(IGrantable grantee, List<String> actions, PermissionsOptions options)public Grant Actions(IGrantable grantee, string[] actions, PermissionsOptions? options = null)func Actions(Grantee IGrantable, Actions *[]*string, Options PermissionsOptions) Grant#
Grant the given identity custom permissions.
fromRouterInput(resource: IRouterInputRef): RouterInputGrants // chainable@staticmethod def from_router_input(resource: IRouterInputRef) -> RouterInputGrantspublic static RouterInputGrants fromRouterInput(IRouterInputRef resource)public static RouterInputGrants FromRouterInput(IRouterInputRef resource)func FromRouterInput(Resource IRouterInputRef) RouterInputGrantsstatic#
Creates grants for RouterInputGrants.
restart(grantee: IGrantable): Grantdef restart(self, grantee: IGrantable) -> Grantpublic Grant restart(IGrantable grantee)public Grant Restart(IGrantable grantee)func Restart(Grantee IGrantable) Grant#
Grant permissions to restart this router input.
start(grantee: IGrantable): Grantdef start(self, grantee: IGrantable) -> Grantpublic Grant start(IGrantable grantee)public Grant Start(IGrantable grantee)func Start(Grantee IGrantable) Grant#
Grant permissions to start this router input.
stop(grantee: IGrantable): Grantdef stop(self, grantee: IGrantable) -> Grantpublic Grant stop(IGrantable grantee)public Grant Stop(IGrantable grantee)func Stop(Grantee IGrantable) Grant#
Grant permissions to stop this router input.