putChannelPolicy
Attaches an IAM policy to the specified channel. With policies, you can specify who has access to AWS resources and what actions they can perform on those resources. You can attach only one policy with each request.
Samples
fun main() {
//sampleStart
// Creating a Channel Policy
val resp = mediaPackageV2Client.putChannelPolicy {
channelGroupName = "exampleChannelGroup"
channelName = "exampleChannel"
policy = "{...}"
}
//sampleEnd
}