Creates an IAM policy for the channel. IAM policies are used to control access to your channel.
Use a bare-bones client and the command you need to make an API call.
import { MediaTailorClient, PutChannelPolicyCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import // const { MediaTailorClient, PutChannelPolicyCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import const client = new MediaTailorClient(config); const command = new PutChannelPolicyCommand(input); const response = await client.send(command);
PutChannelPolicyCommandInput for command's input shape.
input
PutChannelPolicyCommandOutput for command's response shape.
response
config for MediaTailorClient's config shape.
config
Creates an IAM policy for the channel. IAM policies are used to control access to your channel.
Use a bare-bones client and the command you need to make an API call.
import { MediaTailorClient, PutChannelPolicyCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import // const { MediaTailorClient, PutChannelPolicyCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import const client = new MediaTailorClient(config); const command = new PutChannelPolicyCommand(input); const response = await client.send(command);
PutChannelPolicyCommandInput for command's
input
shape.PutChannelPolicyCommandOutput for command's
response
shape.config for MediaTailorClient's
config
shape.