cdk-iam-floyd
Version:
AWS IAM policy statement generator with fluent interface for AWS CDK
332 lines (331 loc) • 11.2 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 [voiceid](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonconnectvoiceid.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
export declare class Voiceid extends PolicyStatement {
servicePrefix: string;
/**
* Grants permission to associate a fraudster with a watchlist
*
* Access Level: Write
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_AssociateFraudster.html
*/
toAssociateFraudster(): this;
/**
* Grants permission to create a domain
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_CreateDomain.html
*/
toCreateDomain(): this;
/**
* Grants permission to create a watchlist
*
* Access Level: Write
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_CreateWatchlist.html
*/
toCreateWatchlist(): this;
/**
* Grants permission to delete a domain
*
* Access Level: Write
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_DeleteDomain.html
*/
toDeleteDomain(): this;
/**
* Grants permission to delete a fraudster
*
* Access Level: Write
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_DeleteFraudster.html
*/
toDeleteFraudster(): this;
/**
* Grants permission to delete a speaker
*
* Access Level: Write
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_DeleteSpeaker.html
*/
toDeleteSpeaker(): this;
/**
* Grants permission to delete a watchlist
*
* Access Level: Write
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_DeleteWatchlist.html
*/
toDeleteWatchlist(): this;
/**
* Grants permission to describe compliance consent
*
* Access Level: Read
*
* https://docs.aws.amazon.com/connect/latest/adminguide/enable-voiceid.html#enable-voiceid-step1
*/
toDescribeComplianceConsent(): this;
/**
* Grants permission to describe a domain
*
* Access Level: Read
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_DescribeDomain.html
*/
toDescribeDomain(): this;
/**
* Grants permission to describe a fraudster
*
* Access Level: Read
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_DescribeFraudster.html
*/
toDescribeFraudster(): this;
/**
* Grants permission to describe a fraudster registration job
*
* Access Level: Read
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_DescribeFraudsterRegistrationJob.html
*/
toDescribeFraudsterRegistrationJob(): this;
/**
* Grants permission to describe a speaker
*
* Access Level: Read
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_DescribeSpeaker.html
*/
toDescribeSpeaker(): this;
/**
* Grants permission to describe a speaker enrollment job
*
* Access Level: Read
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_DescribeSpeakerEnrollmentJob.html
*/
toDescribeSpeakerEnrollmentJob(): this;
/**
* Grants permission to describe a watchlist
*
* Access Level: Read
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_DescribeWatchlist.html
*/
toDescribeWatchlist(): this;
/**
* Grants permission to disassociate a fraudster from a watchlist
*
* Access Level: Write
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_DisassociateFraudster.html
*/
toDisassociateFraudster(): this;
/**
* Grants permission to evaluate a session
*
* Access Level: Write
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_EvaluateSession.html
*/
toEvaluateSession(): this;
/**
* Grants permission to list domains for an account
*
* Access Level: List
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_ListDomains.html
*/
toListDomains(): this;
/**
* Grants permission to list fraudster registration jobs for a domain
*
* Access Level: List
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_ListFraudsterRegistrationJobs.html
*/
toListFraudsterRegistrationJobs(): this;
/**
* Grants permission to list fraudsters for a domain or watchlist
*
* Access Level: List
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_ListFraudsters.html
*/
toListFraudsters(): this;
/**
* Grants permission to list speaker enrollment jobs for a domain
*
* Access Level: List
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_ListSpeakerEnrollmentJobs.html
*/
toListSpeakerEnrollmentJobs(): this;
/**
* Grants permission to list speakers for a domain
*
* Access Level: List
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_ListSpeakers.html
*/
toListSpeakers(): this;
/**
* Grants permission to list tags for a Voice ID resource
*
* Access Level: Read
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_ListTagsForResource.html
*/
toListTagsForResource(): this;
/**
* Grants permission to list watchlists for a domain
*
* Access Level: List
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_ListWatchlists.html
*/
toListWatchlists(): this;
/**
* Grants permission to opt out a speaker
*
* Access Level: Write
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_OptOutSpeaker.html
*/
toOptOutSpeaker(): this;
/**
* Grants permission to register compliance consent
*
* Access Level: Write
*
* https://docs.aws.amazon.com/connect/latest/adminguide/enable-voiceid.html#enable-voiceid-step1
*/
toRegisterComplianceConsent(): this;
/**
* Grants permission to start a fraudster registration job
*
* Access Level: Write
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_StartFraudsterRegistrationJob.html
*/
toStartFraudsterRegistrationJob(): this;
/**
* Grants permission to start a speaker enrollment job
*
* Access Level: Write
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_StartSpeakerEnrollmentJob.html
*/
toStartSpeakerEnrollmentJob(): this;
/**
* Grants permission to tag a Voice ID resource
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_TagResource.html
*/
toTagResource(): this;
/**
* Grants permission to remove a tag from a Voice ID resource
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_UntagResource.html
*/
toUntagResource(): this;
/**
* Grants permission to update a domain
*
* Access Level: Write
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_UpdateDomain.html
*/
toUpdateDomain(): this;
/**
* Grants permission to update a watchlist
*
* Access Level: Write
*
* https://docs.aws.amazon.com/voiceid/latest/APIReference/API_UpdateWatchlist.html
*/
toUpdateWatchlist(): this;
protected accessLevelList: AccessLevelList;
/**
* Adds a resource of type domain to the statement
*
* https://docs.aws.amazon.com/connect/latest/adminguide/enable-voiceid.html#voiceid-domain
*
* @param domainId - Identifier for the domainId.
* @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()
*/
onDomain(domainId: string, account?: string, region?: string, partition?: string): this;
/**
* Filters access by tags that are passed in the request
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag
*
* Applies to actions:
* - .toCreateDomain()
* - .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 tags associated with the resource
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag
*
* Applies to resource types:
* - domain
*
* @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 tag keys that are passed in the request
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys
*
* Applies to actions:
* - .toCreateDomain()
* - .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 [voiceid](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonconnectvoiceid.html).
*
*/
constructor(props?: iam.PolicyStatementProps);
}