cdk-iam-floyd
Version:
AWS IAM policy statement generator with fluent interface for AWS CDK
1,362 lines • 129 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Medialive = void 0;
const shared_1 = require("../../shared");
/**
* Statement provider for service [medialive](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awselementalmedialive.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
class Medialive extends shared_1.PolicyStatement {
/**
* Grants permission to accept an input device transfer
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/eml-devices.html
*/
toAcceptInputDeviceTransfer() {
return this.to('AcceptInputDeviceTransfer');
}
/**
* Grants permission to delete channels, inputs, input security groups, and multiplexes
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/editing-deleting-channel.html
*/
toBatchDelete() {
return this.to('BatchDelete');
}
/**
* Grants permission to start channels and multiplexes
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/starting-stopping-deleting-a-channel.html
*/
toBatchStart() {
return this.to('BatchStart');
}
/**
* Grants permission to stop channels and multiplexes
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/starting-stopping-deleting-a-channel.html
*/
toBatchStop() {
return this.to('BatchStop');
}
/**
* Grants permission to add and remove actions from a channel's schedule
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/submitting-batch-command.html
*/
toBatchUpdateSchedule() {
return this.to('BatchUpdateSchedule');
}
/**
* Grants permission to cancel an input device transfer
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/eml-devices.html
*/
toCancelInputDeviceTransfer() {
return this.to('CancelInputDeviceTransfer');
}
/**
* Grants permission to claim an input device
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/eml-devices.html
*/
toClaimDevice() {
return this.to('ClaimDevice');
}
/**
* Grants permission to create a channel
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/medialive/latest/ug/creating-channel-scratch.html
*/
toCreateChannel() {
return this.to('CreateChannel');
}
/**
* Grants permission to create a cloudwatch alarm template
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-alarms-templates-create.html
*/
toCreateCloudWatchAlarmTemplate() {
return this.to('CreateCloudWatchAlarmTemplate');
}
/**
* Grants permission to create a cloudwatch alarm template group
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-alarms-templates-create.html
*/
toCreateCloudWatchAlarmTemplateGroup() {
return this.to('CreateCloudWatchAlarmTemplateGroup');
}
/**
* Grants permission to create a eventbridge rule template
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-notifications-template-create.html
*/
toCreateEventBridgeRuleTemplate() {
return this.to('CreateEventBridgeRuleTemplate');
}
/**
* Grants permission to create a eventbridge rule template group
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-notifications-template-create.html
*/
toCreateEventBridgeRuleTemplateGroup() {
return this.to('CreateEventBridgeRuleTemplateGroup');
}
/**
* Grants permission to create an input
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/medialive/latest/ug/creating-input.html
*/
toCreateInput() {
return this.to('CreateInput');
}
/**
* Grants permission to create an input security group
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/medialive/latest/ug/working-with-input-security-groups.html
*/
toCreateInputSecurityGroup() {
return this.to('CreateInputSecurityGroup');
}
/**
* Grants permission to create a multiplex
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/medialive/latest/ug/multiplex-create.html
*/
toCreateMultiplex() {
return this.to('CreateMultiplex');
}
/**
* Grants permission to create a multiplex program
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/multiplex-create.html
*/
toCreateMultiplexProgram() {
return this.to('CreateMultiplexProgram');
}
/**
* Grants permission to create a partner input
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/medialive/latest/ug/input-create-cdi-partners.html
*/
toCreatePartnerInput() {
return this.to('CreatePartnerInput');
}
/**
* Grants permission to create a signal map
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-signal-maps-create.html
*/
toCreateSignalMap() {
return this.to('CreateSignalMap');
}
/**
* Grants permission to create tags for channels, inputs, input security groups, multiplexes, reservations, signal maps, template groups, and templates
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/medialive/latest/ug/tagging.html
*/
toCreateTags() {
return this.to('CreateTags');
}
/**
* Grants permission to delete a channel
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/editing-deleting-channel.html
*/
toDeleteChannel() {
return this.to('DeleteChannel');
}
/**
* Grants permission to delete a cloudwatch alarm template
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-alarms.html
*/
toDeleteCloudWatchAlarmTemplate() {
return this.to('DeleteCloudWatchAlarmTemplate');
}
/**
* Grants permission to delete a cloudwatch alarm template group
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-alarms.html
*/
toDeleteCloudWatchAlarmTemplateGroup() {
return this.to('DeleteCloudWatchAlarmTemplateGroup');
}
/**
* Grants permission to delete a eventbridge rule template
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-notifications.html
*/
toDeleteEventBridgeRuleTemplate() {
return this.to('DeleteEventBridgeRuleTemplate');
}
/**
* Grants permission to delete a eventbridge rule template group
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-notifications.html
*/
toDeleteEventBridgeRuleTemplateGroup() {
return this.to('DeleteEventBridgeRuleTemplateGroup');
}
/**
* Grants permission to delete an input
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/delete-input.html
*/
toDeleteInput() {
return this.to('DeleteInput');
}
/**
* Grants permission to delete an input security group
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/delete-input-security-group.html
*/
toDeleteInputSecurityGroup() {
return this.to('DeleteInputSecurityGroup');
}
/**
* Grants permission to delete a multiplex
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/delete-multiplex-program.html
*/
toDeleteMultiplex() {
return this.to('DeleteMultiplex');
}
/**
* Grants permission to delete a multiplex program
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/delete-multiplex-program.html
*/
toDeleteMultiplexProgram() {
return this.to('DeleteMultiplexProgram');
}
/**
* Grants permission to delete an expired reservation
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/deleting-reservations.html
*/
toDeleteReservation() {
return this.to('DeleteReservation');
}
/**
* Grants permission to delete all schedule actions for a channel
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/schedule-using-console-delete.html
*/
toDeleteSchedule() {
return this.to('DeleteSchedule');
}
/**
* Grants permission to delete a signal map
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-signal-maps-delete.html
*/
toDeleteSignalMap() {
return this.to('DeleteSignalMap');
}
/**
* Grants permission to delete tags from channels, inputs, input security groups, multiplexes, reservations, signal maps, template groups, and templates
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/medialive/latest/ug/tagging.html
*/
toDeleteTags() {
return this.to('DeleteTags');
}
/**
* Grants permission to view the account configuration of the customer
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/starting-stopping-deleting-a-channel.html
*/
toDescribeAccountConfiguration() {
return this.to('DescribeAccountConfiguration');
}
/**
* Grants permission to get details about a channel
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/viewing-channel-configuration.html
*/
toDescribeChannel() {
return this.to('DescribeChannel');
}
/**
* Grants permission to describe an input
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/edit-input.html
*/
toDescribeInput() {
return this.to('DescribeInput');
}
/**
* Grants permission to describe an input device
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/device-edit.html
*/
toDescribeInputDevice() {
return this.to('DescribeInputDevice');
}
/**
* Grants permission to describe an input device thumbnail
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/device-edit.html
*/
toDescribeInputDeviceThumbnail() {
return this.to('DescribeInputDeviceThumbnail');
}
/**
* Grants permission to describe an input security group
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/edit-input-security-group.html
*/
toDescribeInputSecurityGroup() {
return this.to('DescribeInputSecurityGroup');
}
/**
* Grants permission to describe a multiplex
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/edit-multiplex-program-channel.html
*/
toDescribeMultiplex() {
return this.to('DescribeMultiplex');
}
/**
* Grants permission to describe a multiplex program
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitoring-multiplex-console.html
*/
toDescribeMultiplexProgram() {
return this.to('DescribeMultiplexProgram');
}
/**
* Grants permission to get details about a reservation offering
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/purchasing-reservations.html
*/
toDescribeOffering() {
return this.to('DescribeOffering');
}
/**
* Grants permission to get details about a reservation
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/view-reservations.html
*/
toDescribeReservation() {
return this.to('DescribeReservation');
}
/**
* Grants permission to view a list of actions scheduled on a channel
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/schedule-using-console-view.html
*/
toDescribeSchedule() {
return this.to('DescribeSchedule');
}
/**
* Grants permission to view the thumbnails for a channel
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/starting-stopping-deleting-a-channel.html
*/
toDescribeThumbnails() {
return this.to('DescribeThumbnails');
}
/**
* Grants permission to get a cloudwatch alarm template
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-alarms.html
*/
toGetCloudWatchAlarmTemplate() {
return this.to('GetCloudWatchAlarmTemplate');
}
/**
* Grants permission to get a cloudwatch alarm template group
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-alarms.html
*/
toGetCloudWatchAlarmTemplateGroup() {
return this.to('GetCloudWatchAlarmTemplateGroup');
}
/**
* Grants permission to get a eventbridge rule template
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-notifications.html
*/
toGetEventBridgeRuleTemplate() {
return this.to('GetEventBridgeRuleTemplate');
}
/**
* Grants permission to get a eventbridge rule template group
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-notifications.html
*/
toGetEventBridgeRuleTemplateGroup() {
return this.to('GetEventBridgeRuleTemplateGroup');
}
/**
* Grants permission to get a signal map
*
* Access Level: Read
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-signal-maps-view.html
*/
toGetSignalMap() {
return this.to('GetSignalMap');
}
/**
* Grants permission to list channels
*
* Access Level: List
*
* https://docs.aws.amazon.com/medialive/latest/ug/viewing-channel-configuration.html
*/
toListChannels() {
return this.to('ListChannels');
}
/**
* Grants permission to list cloudwatch alarm template groups
*
* Access Level: List
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-alarms.html
*/
toListCloudWatchAlarmTemplateGroups() {
return this.to('ListCloudWatchAlarmTemplateGroups');
}
/**
* Grants permission to list cloudwatch alarm templates
*
* Access Level: List
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-alarms.html
*/
toListCloudWatchAlarmTemplates() {
return this.to('ListCloudWatchAlarmTemplates');
}
/**
* Grants permission to list eventbridge rule template groups
*
* Access Level: List
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-notifications.html
*/
toListEventBridgeRuleTemplateGroups() {
return this.to('ListEventBridgeRuleTemplateGroups');
}
/**
* Grants permission to list eventbridge rule templates
*
* Access Level: List
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-notifications.html
*/
toListEventBridgeRuleTemplates() {
return this.to('ListEventBridgeRuleTemplates');
}
/**
* Grants permission to list input device transfers
*
* Access Level: List
*
* https://docs.aws.amazon.com/medialive/latest/ug/eml-devices.html
*/
toListInputDeviceTransfers() {
return this.to('ListInputDeviceTransfers');
}
/**
* Grants permission to list input devices
*
* Access Level: List
*
* https://docs.aws.amazon.com/medialive/latest/ug/device-edit.html
*/
toListInputDevices() {
return this.to('ListInputDevices');
}
/**
* Grants permission to list input security groups
*
* Access Level: List
*
* https://docs.aws.amazon.com/medialive/latest/ug/edit-input-security-group.html
*/
toListInputSecurityGroups() {
return this.to('ListInputSecurityGroups');
}
/**
* Grants permission to list inputs
*
* Access Level: List
*
* https://docs.aws.amazon.com/medialive/latest/ug/edit-input.html
*/
toListInputs() {
return this.to('ListInputs');
}
/**
* Grants permission to list multiplex programs
*
* Access Level: List
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitoring-multiplex-console.html
*/
toListMultiplexPrograms() {
return this.to('ListMultiplexPrograms');
}
/**
* Grants permission to list multiplexes
*
* Access Level: List
*
* https://docs.aws.amazon.com/medialive/latest/ug/edit-multiplex-program-channel.html
*/
toListMultiplexes() {
return this.to('ListMultiplexes');
}
/**
* Grants permission to list reservation offerings
*
* Access Level: List
*
* https://docs.aws.amazon.com/medialive/latest/ug/purchasing-reservations.html
*/
toListOfferings() {
return this.to('ListOfferings');
}
/**
* Grants permission to list reservations
*
* Access Level: List
*
* https://docs.aws.amazon.com/medialive/latest/ug/view-reservations.html
*/
toListReservations() {
return this.to('ListReservations');
}
/**
* Grants permission to list signal maps
*
* Access Level: List
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-signal-maps-view.html
*/
toListSignalMaps() {
return this.to('ListSignalMaps');
}
/**
* Grants permission to list tags for channels, inputs, input security groups, multiplexes, reservations, signal maps, template groups, and templates
*
* Access Level: List
*
* https://docs.aws.amazon.com/medialive/latest/ug/tagging.html
*/
toListTagsForResource() {
return this.to('ListTagsForResource');
}
/**
* Grants permission to purchase a reservation offering
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/medialive/latest/ug/purchasing-reservations.html
*/
toPurchaseOffering() {
return this.to('PurchaseOffering');
}
/**
* Grants permission to reboot an input device
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/eml-devices.html
*/
toRebootInputDevice() {
return this.to('RebootInputDevice');
}
/**
* Grants permission to reject an input device transfer
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/eml-devices.html
*/
toRejectInputDeviceTransfer() {
return this.to('RejectInputDeviceTransfer');
}
/**
* Grants permission to restart pipelines on a running channel
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/maintenance-user-initiated.html
*/
toRestartChannelPipelines() {
return this.to('RestartChannelPipelines');
}
/**
* Grants permission to start a channel
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/starting-stopping-deleting-a-channel.html
*/
toStartChannel() {
return this.to('StartChannel');
}
/**
* Grants permission to start deletion of a signal map's monitor
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-signal-maps-delete.html
*/
toStartDeleteMonitorDeployment() {
return this.to('StartDeleteMonitorDeployment');
}
/**
* Grants permission to start an input device attached to a MediaConnect flow
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/eml-devices.html
*/
toStartInputDevice() {
return this.to('StartInputDevice');
}
/**
* Grants permission to start a maintenance window for an input device
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/eml-devices.html
*/
toStartInputDeviceMaintenanceWindow() {
return this.to('StartInputDeviceMaintenanceWindow');
}
/**
* Grants permission to start a signal map monitor deployment
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-deploy.html
*/
toStartMonitorDeployment() {
return this.to('StartMonitorDeployment');
}
/**
* Grants permission to start a multiplex
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/start-multiplex.html
*/
toStartMultiplex() {
return this.to('StartMultiplex');
}
/**
* Grants permission to start a signal map update
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-signal-maps-update.html
*/
toStartUpdateSignalMap() {
return this.to('StartUpdateSignalMap');
}
/**
* Grants permission to stop a channel
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/starting-stopping-deleting-a-channel.html
*/
toStopChannel() {
return this.to('StopChannel');
}
/**
* Grants permission to stop an input device attached to a MediaConnect flow
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/eml-devices.html
*/
toStopInputDevice() {
return this.to('StopInputDevice');
}
/**
* Grants permission to stop a multiplex
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/stop-multiplex.title.html
*/
toStopMultiplex() {
return this.to('StopMultiplex');
}
/**
* Grants permission to transfer an input device
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/eml-devices.html
*/
toTransferInputDevice() {
return this.to('TransferInputDevice');
}
/**
* Grants permission to update a customer's account configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/starting-stopping-deleting-a-channel.html
*/
toUpdateAccountConfiguration() {
return this.to('UpdateAccountConfiguration');
}
/**
* Grants permission to update a channel
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/editing-deleting-channel.html
*/
toUpdateChannel() {
return this.to('UpdateChannel');
}
/**
* Grants permission to update the class of a channel
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/editing-deleting-channel.html
*/
toUpdateChannelClass() {
return this.to('UpdateChannelClass');
}
/**
* Grants permission to update a cloudwatch alarm template
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-alarms-templates-create.html
*/
toUpdateCloudWatchAlarmTemplate() {
return this.to('UpdateCloudWatchAlarmTemplate');
}
/**
* Grants permission to update a cloudwatch alarm template group
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-alarms-templates-create.html
*/
toUpdateCloudWatchAlarmTemplateGroup() {
return this.to('UpdateCloudWatchAlarmTemplateGroup');
}
/**
* Grants permission to update a eventbridge rule template
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-notifications-template-create.html
*/
toUpdateEventBridgeRuleTemplate() {
return this.to('UpdateEventBridgeRuleTemplate');
}
/**
* Grants permission to update a eventbridge rule template group
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-notifications-template-create.html
*/
toUpdateEventBridgeRuleTemplateGroup() {
return this.to('UpdateEventBridgeRuleTemplateGroup');
}
/**
* Grants permission to update an input
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/edit-input.html
*/
toUpdateInput() {
return this.to('UpdateInput');
}
/**
* Grants permission to update an input device
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/device-edit.html
*/
toUpdateInputDevice() {
return this.to('UpdateInputDevice');
}
/**
* Grants permission to update an input security group
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/medialive/latest/ug/edit-input-security-group.html
*/
toUpdateInputSecurityGroup() {
return this.to('UpdateInputSecurityGroup');
}
/**
* Grants permission to update a multiplex
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/edit-multiplex-program-channel.html
*/
toUpdateMultiplex() {
return this.to('UpdateMultiplex');
}
/**
* Grants permission to update a multiplex program
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/edit-multiplex-program-channel.html
*/
toUpdateMultiplexProgram() {
return this.to('UpdateMultiplexProgram');
}
/**
* Grants permission to update a reservation
*
* Access Level: Write
*
* https://docs.aws.amazon.com/medialive/latest/ug/reservations.html
*/
toUpdateReservation() {
return this.to('UpdateReservation');
}
/**
* Adds a resource of type channel to the statement
*
* https://docs.aws.amazon.com/medialive/latest/ug/container-channel.html
*
* @param channelId - Identifier for the channelId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onChannel(channelId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:medialive:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:channel:${channelId}`);
}
/**
* Adds a resource of type input to the statement
*
* https://docs.aws.amazon.com/medialive/latest/ug/creating-input.html
*
* @param inputId - Identifier for the inputId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onInput(inputId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:medialive:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:input:${inputId}`);
}
/**
* Adds a resource of type input-device to the statement
*
* https://docs.aws.amazon.com/medialive/latest/ug/eml-devices.html
*
* @param deviceId - Identifier for the deviceId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*/
onInputDevice(deviceId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:medialive:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:inputDevice:${deviceId}`);
}
/**
* Adds a resource of type input-security-group to the statement
*
* https://docs.aws.amazon.com/medialive/latest/ug/working-with-input-security-groups.html
*
* @param inputSecurityGroupId - Identifier for the inputSecurityGroupId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onInputSecurityGroup(inputSecurityGroupId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:medialive:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:inputSecurityGroup:${inputSecurityGroupId}`);
}
/**
* Adds a resource of type multiplex to the statement
*
* https://docs.aws.amazon.com/medialive/latest/ug/eml-multiplex.html
*
* @param multiplexId - Identifier for the multiplexId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onMultiplex(multiplexId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:medialive:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:multiplex:${multiplexId}`);
}
/**
* Adds a resource of type reservation to the statement
*
* https://docs.aws.amazon.com/medialive/latest/ug/reservations.html
*
* @param reservationId - Identifier for the reservationId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onReservation(reservationId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:medialive:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:reservation:${reservationId}`);
}
/**
* Adds a resource of type offering to the statement
*
* https://docs.aws.amazon.com/medialive/latest/ug/input-output-reservations.html
*
* @param offeringId - Identifier for the offeringId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*/
onOffering(offeringId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:medialive:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:offering:${offeringId}`);
}
/**
* Adds a resource of type signal-map to the statement
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-signal-maps-create.html
*
* @param signalMapId - Identifier for the signalMapId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onSignalMap(signalMapId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:medialive:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:signal-map:${signalMapId}`);
}
/**
* Adds a resource of type cloudwatch-alarm-template-group to the statement
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-alarms-templates-create.html
*
* @param cloudWatchAlarmTemplateGroupId - Identifier for the cloudWatchAlarmTemplateGroupId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onCloudwatchAlarmTemplateGroup(cloudWatchAlarmTemplateGroupId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:medialive:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:cloudwatch-alarm-template-group:${cloudWatchAlarmTemplateGroupId}`);
}
/**
* Adds a resource of type cloudwatch-alarm-template to the statement
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-alarms-templates-create.html
*
* @param cloudWatchAlarmTemplateId - Identifier for the cloudWatchAlarmTemplateId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onCloudwatchAlarmTemplate(cloudWatchAlarmTemplateId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:medialive:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:cloudwatch-alarm-template:${cloudWatchAlarmTemplateId}`);
}
/**
* Adds a resource of type eventbridge-rule-template-group to the statement
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-notifications-template-create.html
*
* @param eventBridgeRuleTemplateGroupId - Identifier for the eventBridgeRuleTemplateGroupId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onEventbridgeRuleTemplateGroup(eventBridgeRuleTemplateGroupId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:medialive:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:eventbridge-rule-template-group:${eventBridgeRuleTemplateGroupId}`);
}
/**
* Adds a resource of type eventbridge-rule-template to the statement
*
* https://docs.aws.amazon.com/medialive/latest/ug/monitor-with-workflow-monitor-configure-notifications-template-create.html
*
* @param eventBridgeRuleTemplateId - Identifier for the eventBridgeRuleTemplateId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onEventbridgeRuleTemplate(eventBridgeRuleTemplateId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:medialive:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:eventbridge-rule-template:${eventBridgeRuleTemplateId}`);
}
/**
* Filters access by the tags that are passed in the request
*
* https://docs.aws.amazon.com/medialive/latest/ugtagging.html
*
* Applies to actions:
* - .toCreateChannel()
* - .toCreateCloudWatchAlarmTemplate()
* - .toCreateCloudWatchAlarmTemplateGroup()
* - .toCreateEventBridgeRuleTemplate()
* - .toCreateEventBridgeRuleTemplateGroup()
* - .toCreateInput()
* - .toCreateInputSecurityGroup()
* - .toCreateMultiplex()
* - .toCreatePartnerInput()
* - .toCreateSignalMap()
* - .toCreateTags()
* - .toPurchaseOffering()
* - .toUpdateInputSecurityGroup()
*
* @param tagKey The tag key to check
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifAwsRequestTag(tagKey, value, operator) {
return this.if(`aws:RequestTag/${tagKey}`, value, operator ?? 'StringLike');
}
/**
* Filters access by the tags associated with the resource
*
* https://docs.aws.amazon.com/medialive/latest/ugtagging.html
*
* Applies to resource types:
* - channel
* - input
* - input-security-group
* - multiplex
* - reservation
* - signal-map
* - cloudwatch-alarm-template-group
* - cloudwatch-alarm-template
* - eventbridge-rule-template-group
* - eventbridge-rule-template
*
* @param tagKey The tag key to check
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifAwsResourceTag(tagKey, value, operator) {
return this.if(`aws:ResourceTag/${tagKey}`, value, operator ?? 'StringLike');
}
/**
* Filters access by the tag keys that are passed in the request
*
* https://docs.aws.amazon.com/medialive/latest/ugtagging.html
*
* Applies to actions:
* - .toCreateChannel()
* - .toCreateCloudWatchAlarmTemplate()
* - .toCreateCloudWatchAlarmTemplateGroup()
* - .toCreateEventBridgeRuleTemplate()
* - .toCreateEventBridgeRuleTemplateGroup()
* - .toCreateInput()
* - .toCreateInputSecurityGroup()
* - .toCreateMultiplex()
* - .toCreatePartnerInput()
* - .toCreateSignalMap()
* - .toCreateTags()
* - .toDeleteTags()
* - .toPurchaseOffering()
* - .toUpdateInputSecurityGroup()
*
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifAwsTagKeys(value, operator) {
return this.if(`aws:TagKeys`, value, operator ?? 'StringLike');
}
/**
* Statement provider for service [medialive](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awselementalmedialive.html).
*
*/
constructor(props) {
super(props);
this.servicePrefix = 'medialive';
this.accessLevelList = {
Write: [
'AcceptInputDeviceTransfer',
'BatchDelete',
'BatchStart',
'BatchStop',
'BatchUpdateSchedule',
'CancelInputDeviceTransfer',
'ClaimDevice',
'CreateChannel',
'CreateCloudWatchAlarmTemplate',
'CreateCloudWatchAlarmTemplateGroup',
'CreateEventBridgeRuleTemplate',
'CreateEventBridgeRuleTemplateGroup',
'CreateInput',
'CreateInputSecurityGroup',
'CreateMultiplex',
'CreateMultiplexProgram',
'CreatePartnerInput',
'CreateSignalMap',
'DeleteChannel',
'DeleteCloudWatchAlarmTemplate',
'DeleteCloudWatchAlarmTemplateGroup',
'DeleteEventBridgeRuleTemplate',
'DeleteEventBridgeRuleTemplateGroup',
'DeleteInput',
'DeleteInputSecurityGroup',
'DeleteMultiplex',
'DeleteMultiplexProgram',
'DeleteReservation',
'DeleteSchedule',
'DeleteSignalMap',
'PurchaseOffering',
'RebootInputDevice',
'RejectInputDeviceTransfer',
'RestartChannelPipelines',
'StartChannel',
'StartDeleteMonitorDeployment',
'StartInputDevice',
'StartInputDeviceMaintenanceWindow',
'StartMonitorDeployment',
'StartMultiplex',
'StartUpdateSignalMap',
'StopChannel',
'StopInputDevice',
'StopMultiplex',
'TransferInputDevice',
'UpdateAccountConfiguration',
'UpdateChannel',
'UpdateChannelClass',
'UpdateCloudWatchAlarmTemplate',
'UpdateCloudWatchAlarmTemplateGroup',
'UpdateEventBridgeRuleTemplate',
'UpdateEventBridgeRuleTemplateGroup',
'UpdateInput',
'UpdateInputDevice',
'UpdateInputSecurityGroup',
'UpdateMultiplex',
'UpdateMultiplexProgram',
'UpdateReservation'
],
Tagging: [
'CreateTags',
'DeleteTags'
],
Read: [
'DescribeAccountConfiguration',
'DescribeChannel',
'DescribeInput',
'DescribeInputDevice',
'DescribeInputDeviceThumbnail',
'DescribeInputSecurityGroup',
'DescribeMultiplex',
'DescribeMultiplexProgram',
'DescribeOffering',
'DescribeReservation',
'DescribeSchedule',
'DescribeThumbnails',
'GetCloudWatchAlarmTemplate',
'GetCloudWatchAlarmTemplateGroup',
'GetEventBridgeRuleTemplate',
'GetEventBridgeRuleTemplateGroup',
'GetSignalMap'
],
List: [
'ListChannels',
'ListCloudWatchAlarmTemplateGroups',
'ListCloudWatchAlarmTemplates',
'ListEventBridgeRuleTemplateGroups',
'ListEventBridgeRuleTemplates',
'ListInputDeviceTransfers',
'ListInputDevices',
'ListInputSecurityGroups',
'ListInputs',
'ListMultiplexPrograms',
'ListMultiplexes',
'ListOfferings',
'ListReservations',
'ListSignalMaps',
'ListTagsForResource'
]
};
}
}
exports.Medialive = Medialive;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxlbWVudGFsbWVkaWFsaXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZWxlbWVudGFsbWVkaWFsaXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLHlDQUF5RDtBQUd6RDs7OztHQUlHO0FBQ0gsTUFBYSxTQUFVLFNBQVEsd0JBQWU7SUFHNUM7Ozs7OztPQU1HO0lBQ0ksMkJBQTJCO1FBQ2hDLE9BQU8sSUFBSSxDQUFDLEVBQUUsQ0FBQywyQkFBMkIsQ0FBQyxDQUFDO0lBQzlDLENBQUM7SUFFRDs7Ozs7O09BTUc7SUFDSSxhQUFhO1FBQ2xCLE9BQU8sSUFBSSxDQUFDLEVBQUUsQ0FBQyxhQUFhLENBQUMsQ0FBQztJQUNoQyxDQUFDO0lBRUQ7Ozs7OztPQU1HO0lBQ0ksWUFBWTtRQUNqQixPQUFPLElBQUksQ0FBQyxFQUFFLENBQUMsWUFBWSxDQUFDLENBQUM7SUFDL0IsQ0FBQztJQUVEOzs7Ozs7T0FNRztJQUNJLFdBQVc7UUFDaEIsT0FBTyxJQUFJLENBQUMsRUFBRSxDQUFDLFdBQVcsQ0FBQyxDQUFDO0lBQzlCLENBQUM7SUFFRDs7Ozs7O09BTUc7SUFDSSxxQkFBcUI7UUFDMUIsT0FBTyxJQUFJLENBQUMsRUFBRSxDQUFDLHFCQUFxQixDQUFDLENBQUM7SUFDeEMsQ0FBQztJQUVEOzs7Ozs7T0FNRztJQUNJLDJCQUEyQjtRQUNoQyxPQUFPLElBQUksQ0FBQyxFQUFFLENBQUMsMkJBQTJCLENBQUMsQ0FBQztJQUM5QyxDQUFDO0lBRUQ7Ozs7OztPQU1HO0lBQ0ksYUFBYTtRQUNsQixPQUFPLElBQUksQ0FBQyxFQUFFLENBQUMsYUFBYSxDQUFDLENBQUM7SUFDaEMsQ0FBQztJQUVEOzs7Ozs7Ozs7O09BVUc7SUFDSSxlQUFlO1FBQ3BCLE9BQU8sSUFBSSxDQUFDLEVBQUUsQ0FBQyxlQUFlLENBQUMsQ0FBQztJQUNsQyxDQUFDO0lBRUQ7Ozs7Ozs7Ozs7T0FVRztJQUNJLCtCQUErQjtRQUNwQyxPQUFPLElBQUksQ0FBQyxFQUFFLENBQUMsK0JBQStCLENBQUMsQ0FBQztJQUNsRCxDQUFDO0lBRUQ7Ozs7Ozs7Ozs7T0FVRztJQUNJLG9DQUFvQztRQUN6QyxPQUFPLElBQUksQ0FBQyxFQUFFLENBQUMsb0NBQW9DLENBQUMsQ0FBQztJQUN2RCxDQUFDO0lBRUQ7Ozs7Ozs7Ozs7T0FVRztJQUNJLCtCQUErQjtRQUNwQyxPQUFPLElBQUksQ0FBQyxFQUFFLENBQUMsK0JBQStCLENBQUMsQ0FBQztJQUNsRCxDQUFDO0lBRUQ7Ozs7Ozs7Ozs7T0FVRztJQUNJLG9DQUF