Experimental
@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
ChannelGrants Facade
Collection of grant methods for a IChannelRef.
Example
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);
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.
fromChannel(resource: IChannelRef): ChannelGrants // chainable@staticmethod def from_channel(resource: IChannelRef) -> ChannelGrantspublic static ChannelGrants fromChannel(IChannelRef resource)public static ChannelGrants FromChannel(IChannelRef resource)func FromChannel(Resource IChannelRef) ChannelGrantsstatic#Creates grants for ChannelGrants.
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 channel.
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 channel.
updateSchedule(grantee: IGrantable): Grantdef update_schedule(self, grantee: IGrantable) -> Grantpublic Grant updateSchedule(IGrantable grantee)public Grant UpdateSchedule(IGrantable grantee)func UpdateSchedule(Grantee IGrantable) Grant#Grant permissions to update the schedule of this channel.