class ChannelGrants
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.ChannelGrants |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#ChannelGrants |
Java | software.amazon.awscdk.services.medialive.alpha.ChannelGrants |
Python | aws_cdk.aws_medialive_alpha.ChannelGrants |
TypeScript | @aws-cdk/aws-medialive-alpha ยป ChannelGrants |
Collection of grant methods for a IChannelRef.
Example
// 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);
Properties
| Name | Type | Description |
|---|---|---|
| resource | IChannel |
resource
Type:
IChannel
Methods
| Name | Description |
|---|---|
| actions(grantee, actions, options?) | Grant the given identity custom permissions. |
| start(grantee) | Grant permissions to start this channel. |
| stop(grantee) | Grant permissions to stop this channel. |
| update | Grant permissions to update the schedule of this channel. |
| static from | Creates grants for ChannelGrants. |
actions(grantee, actions, options?)
public actions(grantee: IGrantable, actions: string[], options?: PermissionsOptions): Grant
Parameters
- grantee
IGrantable - actions
string[] - options
PermissionsOptions
Returns
Grant the given identity custom permissions.
start(grantee)
public start(grantee: IGrantable): Grant
Parameters
- grantee
IGrantable
Returns
Grant permissions to start this channel.
stop(grantee)
public stop(grantee: IGrantable): Grant
Parameters
- grantee
IGrantable
Returns
Grant permissions to stop this channel.
updateSchedule(grantee)
public updateSchedule(grantee: IGrantable): Grant
Parameters
- grantee
IGrantable
Returns
Grant permissions to update the schedule of this channel.
static fromChannel(resource)
public static fromChannel(resource: IChannelRef): ChannelGrants
Parameters
- resource
IChannelRef
Returns
Creates grants for ChannelGrants.

.NET
Go
Java
Python
TypeScript