cdk-iam-floyd
Version:
AWS IAM policy statement generator with fluent interface for AWS CDK
112 lines (111 loc) • 4.09 kB
TypeScript
import { AccessLevelList } from '../../shared/access-level';
import { PolicyStatement } from '../../shared';
import { aws_iam as iam } from "aws-cdk-lib";
/**
* Statement provider for service [polly](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonpolly.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
export declare class Polly extends PolicyStatement {
servicePrefix: string;
/**
* Grants permission to delete the specified pronunciation lexicon stored in an AWS Region
*
* Access Level: Write
*
* https://docs.aws.amazon.com/polly/latest/dg/API_DeleteLexicon.html
*/
toDeleteLexicon(): this;
/**
* Grants permission to describe the list of voices that are available for use when requesting speech synthesis
*
* Access Level: List
*
* https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
*/
toDescribeVoices(): this;
/**
* Grants permission to retrieve the content of the specified pronunciation lexicon stored in an AWS Region
*
* Access Level: Read
*
* https://docs.aws.amazon.com/polly/latest/dg/API_GetLexicon.html
*/
toGetLexicon(): this;
/**
* Grants permission to get information about specific speech synthesis task
*
* Access Level: Read
*
* https://docs.aws.amazon.com/polly/latest/dg/API_GetSpeechSynthesisTask.html
*/
toGetSpeechSynthesisTask(): this;
/**
* Grants permission to list the pronunciation lexicons stored in an AWS Region
*
* Access Level: List
*
* https://docs.aws.amazon.com/polly/latest/dg/API_ListLexicons.html
*/
toListLexicons(): this;
/**
* Grants permission to list requested speech synthesis tasks
*
* Access Level: List
*
* https://docs.aws.amazon.com/polly/latest/dg/API_ListSpeechSynthesisTasks.html
*/
toListSpeechSynthesisTasks(): this;
/**
* Grants permission to store a pronunciation lexicon in an AWS Region
*
* Access Level: Write
*
* https://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html
*/
toPutLexicon(): this;
/**
* Grants permission to perform synthesis with bidirectional streaming
*
* Access Level: Read
*
* https://docs.aws.amazon.com/polly/latest/dg/API_StartSpeechSynthesisStream.html
*/
toStartSpeechSynthesisStream(): this;
/**
* Grants permission to synthesize long inputs to the provided S3 location
*
* Access Level: Write
*
* Dependent actions:
* - s3:PutObject
*
* https://docs.aws.amazon.com/polly/latest/dg/API_StartSpeechSynthesisTask.html
*/
toStartSpeechSynthesisTask(): this;
/**
* Grants permission to synthesize speech
*
* Access Level: Read
*
* https://docs.aws.amazon.com/polly/latest/dg/API_SynthesizeSpeech.html
*/
toSynthesizeSpeech(): this;
protected accessLevelList: AccessLevelList;
/**
* Adds a resource of type lexicon to the statement
*
* https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
*
* @param lexiconName - Identifier for the lexiconName.
* @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.
*/
onLexicon(lexiconName: string, account?: string, region?: string, partition?: string): this;
/**
* Statement provider for service [polly](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonpolly.html).
*
*/
constructor(props?: iam.PolicyStatementProps);
}