class ChannelGrants
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaPackageV2.Alpha.ChannelGrants |
Go | github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2#ChannelGrants |
Java | software.amazon.awscdk.services.mediapackagev2.alpha.ChannelGrants |
Python | aws_cdk.aws_mediapackagev2_alpha.ChannelGrants |
TypeScript | @aws-cdk/aws-mediapackagev2-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 mediapackagev2_alpha from '@aws-cdk/aws-mediapackagev2-alpha';
import { aws_mediapackagev2 as interfaces_mediapackagev2 } from 'aws-cdk-lib/interfaces';
declare const channelRef: interfaces_mediapackagev2.IChannelRef;
const channelGrants = mediapackagev2_alpha.ChannelGrants.fromChannel(channelRef);
Properties
| Name | Type | Description |
|---|---|---|
| resource | IChannel | |
| policy | IResource |
resource
Type:
IChannel
policyResource?
Type:
IResource
(optional)
Methods
| Name | Description |
|---|---|
| actions(grantee, actions, options?) | Grant the given identity custom permissions. |
| ingest(grantee) | Grant permissions to ingest content into 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.
ingest(grantee)
public ingest(grantee: IGrantable): Grant
Parameters
- grantee
IGrantable
Returns
Grant permissions to ingest content into this channel.
static fromChannel(resource)
public static fromChannel(resource: IChannelRef): ChannelGrants
Parameters
- resource
IChannelRef
Returns
Creates grants for ChannelGrants.

.NET
Go
Java
Python
TypeScript