Skip to content
v2.278.0

Experimental

@aws-cdk/aws-mediapackagev2-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 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);
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_mediapackagev2_alpha as mediapackagev2_alpha
from aws_cdk.interfaces import aws_mediapackagev2 as interfaces_mediapackagev2

# channel_ref: interfaces_mediapackagev2.IChannelRef

channel_grants = mediapackagev2_alpha.ChannelGrants.from_channel(channel_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.mediapackagev2.alpha.*;
import software.amazon.awscdk.interfaces.mediapackagev2.*;

IChannelRef channelRef;

ChannelGrants channelGrants = ChannelGrants.fromChannel(channelRef);
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaPackageV2.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaPackageV2.Alpha;
using Amazon.CDK.Interfaces.MediaPackageV2;

IChannelRef channelRef;

var channelGrants = ChannelGrants.FromChannel(channelRef);
go
// Install: go get github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import mediapackagev2_alpha "github.com/aws/aws-cdk-go/awsmediapackagev2alpha"
import "github.com/aws/aws-cdk-go/awscdk"

var channelRef IChannelRef

channelGrants := mediapackagev2_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) ChannelGrants static #
Creates grants for ChannelGrants.
ingest(grantee: IGrantable): Grantdef ingest(self, grantee: IGrantable) -> Grantpublic Grant ingest(IGrantable grantee)public Grant Ingest(IGrantable grantee)func Ingest(Grantee IGrantable) Grant #
Grant permissions to ingest content into this channel.