UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

265 lines (264 loc) 11.3 kB
import { AccessLevelList } from '../../shared/access-level'; import { PolicyStatement, Operator } from '../../shared'; import { aws_iam as iam } from "aws-cdk-lib"; /** * Statement provider for service [mediapackage-vod](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awselementalmediapackagevod.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class MediapackageVod extends PolicyStatement { servicePrefix: string; /** * Grants permission to configure egress access logs for a PackagingGroup * * Access Level: Write * * Dependent actions: * - iam:CreateServiceLinkedRole * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/packaging_groups-id-configure_logs.html#packaging_groups-id-configure_logsput */ toConfigureLogs(): this; /** * Grants permission to create an asset in AWS Elemental MediaPackage * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/assets.html#assetspost */ toCreateAsset(): this; /** * Grants permission to create a packaging configuration in AWS Elemental MediaPackage * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/packaging_configurations.html#packaging_configurationspost */ toCreatePackagingConfiguration(): this; /** * Grants permission to create a packaging group in AWS Elemental MediaPackage * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/packaging_groups.html#packaging_groupspost */ toCreatePackagingGroup(): this; /** * Grants permission to delete an asset in AWS Elemental MediaPackage * * Access Level: Write * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/assets-id.html#assets-iddelete */ toDeleteAsset(): this; /** * Grants permission to delete a packaging configuration in AWS Elemental MediaPackage * * Access Level: Write * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/packaging_configurations-id.html#packaging_configurations-iddelete */ toDeletePackagingConfiguration(): this; /** * Grants permission to delete a packaging group in AWS Elemental MediaPackage * * Access Level: Write * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/packaging_groups-id.html#packaging_groups-iddelete */ toDeletePackagingGroup(): this; /** * Grants permission to view the details of an asset in AWS Elemental MediaPackage * * Access Level: Read * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/assets-id.html#assets-idget */ toDescribeAsset(): this; /** * Grants permission to view the details of a packaging configuration in AWS Elemental MediaPackage * * Access Level: Read * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/packaging_configurations-id.html#packaging_configurations-idget */ toDescribePackagingConfiguration(): this; /** * Grants permission to view the details of a packaging group in AWS Elemental MediaPackage * * Access Level: Read * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/packaging_groups-id.html#packaging_groups-idget */ toDescribePackagingGroup(): this; /** * Grants permission to view a list of assets in AWS Elemental MediaPackage * * Access Level: List * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/assets.html#assetsget */ toListAssets(): this; /** * Grants permission to view a list of packaging configurations in AWS Elemental MediaPackage * * Access Level: List * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/packaging_configurations.html#packaging_configurationsget */ toListPackagingConfigurations(): this; /** * Grants permission to view a list of packaging groups in AWS Elemental MediaPackage * * Access Level: List * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/packaging_groups.html#packaging_groupsget */ toListPackagingGroups(): this; /** * Grants permission to list the tags assigned to a PackagingGroup, PackagingConfiguration, or Asset * * Access Level: Read * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/tags-resource-arn.html#tags-resource-arnget */ toListTagsForResource(): this; /** * Grants permission to assign tags to a PackagingGroup, PackagingConfiguration, or Asset * * Access Level: Tagging * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/tags-resource-arn.html#tags-resource-arnpost */ toTagResource(): this; /** * Grants permission to delete tags from a PackagingGroup, PackagingConfiguration, or Asset * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/tags-resource-arn.html#tags-resource-arndelete */ toUntagResource(): this; /** * Grants permission to update a packaging group in AWS Elemental MediaPackage * * Access Level: Write * * https://docs.aws.amazon.com/mediapackage-vod/latest/apireference/packaging_groups-id.html#packaging_groups-idput */ toUpdatePackagingGroup(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type assets to the statement * * https://docs.aws.amazon.com/mediapackage/latest/ug/asset.html * * @param assetIdentifier - Identifier for the assetIdentifier. * @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() */ onAssets(assetIdentifier: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type packaging-configurations to the statement * * https://docs.aws.amazon.com/mediapackage/latest/ug/pkg-cfig.html * * @param packagingConfigurationIdentifier - Identifier for the packagingConfigurationIdentifier. * @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() */ onPackagingConfigurations(packagingConfigurationIdentifier: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type packaging-groups to the statement * * https://docs.aws.amazon.com/mediapackage/latest/ug/pkg-group.html * * @param packagingGroupIdentifier - Identifier for the packagingGroupIdentifier. * @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() */ onPackagingGroups(packagingGroupIdentifier: string, account?: string, region?: string, partition?: string): this; /** * Filters actions based on the presence of tag key-value pairs in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag * * Applies to actions: * - .toCreateAsset() * - .toCreatePackagingConfiguration() * - .toCreatePackagingGroup() * - .toTagResource() * * @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: string, value: string | string[], operator?: Operator | string): this; /** * Filters actions based on tag key-value pairs attached to the resource * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag * * Applies to resource types: * - assets * - packaging-configurations * - packaging-groups * * @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: string, value: string | string[], operator?: Operator | string): this; /** * Filters actions based on the presence of tag keys in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys * * Applies to actions: * - .toCreateAsset() * - .toCreatePackagingConfiguration() * - .toCreatePackagingGroup() * - .toTagResource() * - .toUntagResource() * * @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: string | string[], operator?: Operator | string): this; /** * Statement provider for service [mediapackage-vod](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awselementalmediapackagevod.html). * */ constructor(props?: iam.PolicyStatementProps); }