cdk-iam-floyd
Version:
AWS IAM policy statement generator with fluent interface for AWS CDK
281 lines (280 loc) • 11.5 kB
TypeScript
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](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awselementalmediapackage.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
export declare class Mediapackage extends PolicyStatement {
servicePrefix: string;
/**
* Grants permission to configure access logs for a Channel
*
* Access Level: Write
*
* Dependent actions:
* - iam:CreateServiceLinkedRole
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/channels-id-configure_logs.html#channels-id-configure_logsput
*/
toConfigureLogs(): this;
/**
* Grants permission to create a channel in AWS Elemental MediaPackage
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/channels.html#channelspost
*/
toCreateChannel(): this;
/**
* Grants permission to create a harvest job in AWS Elemental MediaPackage
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/harvest_jobs.html#harvest_jobspost
*/
toCreateHarvestJob(): this;
/**
* Grants permission to create an endpoint in AWS Elemental MediaPackage
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/origin_endpoints.html#origin_endpointspost
*/
toCreateOriginEndpoint(): this;
/**
* Grants permission to delete a channel in AWS Elemental MediaPackage
*
* Access Level: Write
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/channels-id.html#channels-iddelete
*/
toDeleteChannel(): this;
/**
* Grants permission to delete an endpoint in AWS Elemental MediaPackage
*
* Access Level: Write
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/origin_endpoints-id.html#origin_endpoints-iddelete
*/
toDeleteOriginEndpoint(): this;
/**
* Grants permission to view the details of a channel in AWS Elemental MediaPackage
*
* Access Level: Read
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/channels-id.html#channels-idget
*/
toDescribeChannel(): this;
/**
* Grants permission to view the details of a harvest job in AWS Elemental MediaPackage
*
* Access Level: Read
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/harvest_jobs-id.html#harvest_jobs-idget
*/
toDescribeHarvestJob(): this;
/**
* Grants permission to view the details of an endpoint in AWS Elemental MediaPackage
*
* Access Level: Read
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/origin_endpoints-id.html#origin_endpoints-idget
*/
toDescribeOriginEndpoint(): this;
/**
* Grants permission to view a list of channels in AWS Elemental MediaPackage
*
* Access Level: Read
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/channels.html#channelsget
*/
toListChannels(): this;
/**
* Grants permission to view a list of harvest jobs in AWS Elemental MediaPackage
*
* Access Level: Read
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/harvest_jobs.html#harvest_jobsget
*/
toListHarvestJobs(): this;
/**
* Grants permission to view a list of endpoints in AWS Elemental MediaPackage
*
* Access Level: Read
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/origin_endpoints.html#origin_endpointsget
*/
toListOriginEndpoints(): this;
/**
* Grants permission to list the tags assigned to a Channel or OriginEndpoint
*
* Access Level: Read
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/tags-resource-arn.html#tags-resource-arnget
*/
toListTagsForResource(): this;
/**
* Grants permission to rotate credentials for the first IngestEndpoint of a Channel in AWS Elemental MediaPackage
*
* Access Level: Write
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/channels-id-credentials.html#channels-id-credentialsput
*/
toRotateChannelCredentials(): this;
/**
* Grants permission to rotate IngestEndpoint credentials for a Channel in AWS Elemental MediaPackage
*
* Access Level: Write
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/channels-id-ingest_endpoints-ingest_endpoint_id-credentials.html#channels-id-ingest_endpoints-ingest_endpoint_id-credentialsput
*/
toRotateIngestEndpointCredentials(): this;
/**
* Grants permission to tag a MediaPackage resource
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/hj-create.html
*/
toTagResource(): this;
/**
* Grants permission to delete tags to a Channel or OriginEndpoint
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/tags-resource-arn.html#tags-resource-arndelete
*/
toUntagResource(): this;
/**
* Grants permission to make changes to a channel in AWS Elemental MediaPackage
*
* Access Level: Write
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/channels-id.html#channels-idput
*/
toUpdateChannel(): this;
/**
* Grants permission to make changes to an endpoint in AWS Elemental MediaPackage
*
* Access Level: Write
*
* https://docs.aws.amazon.com/mediapackage/latest/apireference/origin_endpoints-id.html#origin_endpoints-idput
*/
toUpdateOriginEndpoint(): this;
protected accessLevelList: AccessLevelList;
/**
* Adds a resource of type channels to the statement
*
* https://docs.aws.amazon.com/mediapackage/latest/ug/channels.html
*
* @param channelIdentifier - Identifier for the channelIdentifier.
* @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()
*/
onChannels(channelIdentifier: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type origin_endpoints to the statement
*
* https://docs.aws.amazon.com/mediapackage/latest/ug/endpoints.html
*
* @param originEndpointIdentifier - Identifier for the originEndpointIdentifier.
* @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()
*/
onOriginEndpoints(originEndpointIdentifier: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type harvest_jobs to the statement
*
* https://docs.aws.amazon.com/mediapackage/latest/ug/harvest-jobs.html
*
* @param harvestJobIdentifier - Identifier for the harvestJobIdentifier.
* @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()
*/
onHarvestJobs(harvestJobIdentifier: string, account?: string, region?: string, partition?: string): this;
/**
* Filters access by the tag for a MediaPackage request
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag
*
* Applies to actions:
* - .toCreateChannel()
* - .toCreateHarvestJob()
* - .toCreateOriginEndpoint()
* - .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 access by the tag for a MediaPackage resource
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag
*
* Applies to resource types:
* - channels
* - origin_endpoints
* - harvest_jobs
*
* @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 access by the tag keys for a MediaPackage resource or request
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys
*
* Applies to actions:
* - .toCreateChannel()
* - .toCreateHarvestJob()
* - .toCreateOriginEndpoint()
* - .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](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awselementalmediapackage.html).
*
*/
constructor(props?: iam.PolicyStatementProps);
}