import { AccessLevelList } from '../../shared/access-level'; import { PolicyStatement, Operator } from '../../shared'; /** * Statement provider for service [social-messaging](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsendusermessagingsocial.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class SocialMessaging extends PolicyStatement { servicePrefix: string; /** * Statement provider for service [social-messaging](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsendusermessagingsocial.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ constructor(sid?: string); /** * Grants permission to associate a WhatsApp Business Account with your AWS account * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsResourceTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_AssociateWhatsAppBusinessAccount.html */ toAssociateWhatsAppBusinessAccount(): this; /** * Grants permission to create a new WhatsApp Flow * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_CreateWhatsAppFlow.html */ toCreateWhatsAppFlow(): this; /** * Grants permission to create a WhatsApp message template * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_CreateWhatsAppMessageTemplate.html */ toCreateWhatsAppMessageTemplate(): this; /** * Grants permission to create a WhatsApp message template from Meta's template library * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_CreateWhatsAppMessageTemplateFromLibrary.html */ toCreateWhatsAppMessageTemplateFromLibrary(): this; /** * Grants permission to create media for WhatsApp message templates * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_CreateWhatsAppMessageTemplateMedia.html */ toCreateWhatsAppMessageTemplateMedia(): this; /** * Grants permission to delete a WhatsApp Flow * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_DeleteWhatsAppFlow.html */ toDeleteWhatsAppFlow(): this; /** * Grants permission to delete a media object from WhatsApp * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_DeleteWhatsAppMessageMedia.html */ toDeleteWhatsAppMessageMedia(): this; /** * Grants permission to delete a WhatsApp message template * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_DeleteWhatsAppMessageTemplate.html */ toDeleteWhatsAppMessageTemplate(): this; /** * Grants permission to deprecate a published WhatsApp Flow * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_DeprecateWhatsAppFlow.html */ toDeprecateWhatsAppFlow(): this; /** * Grants permission to disassociate a WhatsApp Business Account from your AWS account * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_DisassociateWhatsAppBusinessAccount.html */ toDisassociateWhatsAppBusinessAccount(): this; /** * Grants permission to view the details of a WhatsApp Business Account * * Access Level: Read * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_GetLinkedWhatsAppBusinessAccount.html */ toGetLinkedWhatsAppBusinessAccount(): this; /** * Grants permission to view the details of a phone number * * Access Level: Read * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_GetLinkedWhatsAppBusinessAccountPhoneNumber.html */ toGetLinkedWhatsAppBusinessAccountPhoneNumber(): this; /** * Grants permission to retrieve the metadata and status of a WhatsApp Flow * * Access Level: Read * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_GetWhatsAppFlow.html */ toGetWhatsAppFlow(): this; /** * Grants permission to generate a web preview URL for testing a WhatsApp Flow * * Access Level: Read * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_GetWhatsAppFlowPreview.html */ toGetWhatsAppFlowPreview(): this; /** * Grants permission to get a media object from WhatsApp * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_GetWhatsAppMessageMedia.html */ toGetWhatsAppMessageMedia(): this; /** * Grants permission to get details of a WhatsApp message template * * Access Level: Read * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_GetWhatsAppMessageTemplate.html */ toGetWhatsAppMessageTemplate(): this; /** * Grants permission to view all of your WhatsApp Business Accounts * * Access Level: List * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_ListLinkedWhatsAppBusinessAccounts.html */ toListLinkedWhatsAppBusinessAccounts(): this; /** * Grants permission to list tags for a resource * * Access Level: Read * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_ListTagsForResource.html */ toListTagsForResource(): this; /** * Grants permission to list the assets of a WhatsApp Flow * * Access Level: List * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_ListWhatsAppFlowAssets.html */ toListWhatsAppFlowAssets(): this; /** * Grants permission to list all WhatsApp Flows for a WhatsApp Business Account * * Access Level: List * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_ListWhatsAppFlows.html */ toListWhatsAppFlows(): this; /** * Grants permission to list WhatsApp message templates * * Access Level: List * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_ListWhatsAppMessageTemplates.html */ toListWhatsAppMessageTemplates(): this; /** * Grants permission to list available templates from Meta's template library * * Access Level: List * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_ListWhatsAppTemplateLibrary.html */ toListWhatsAppTemplateLibrary(): this; /** * Grants permission to upload a media object to WhatsApp * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_PostWhatsAppMessageMedia.html */ toPostWhatsAppMessageMedia(): this; /** * Grants permission to publish a WhatsApp Flow * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_PublishWhatsAppFlow.html */ toPublishWhatsAppFlow(): this; /** * Grants permission to update a WhatsApp Business Accounts event destination * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_PutWhatsAppBusinessAccountEventDestinations.html */ toPutWhatsAppBusinessAccountEventDestinations(): this; /** * Grants permission to send a message through WhatsApp * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_SendWhatsAppMessage.html */ toSendWhatsAppMessage(): this; /** * Grants permission to add a tag to a resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsResourceTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_TagResource.html */ toTagResource(): this; /** * Grants permission to remove a tag from a resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsResourceTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_UntagResource.html */ toUntagResource(): this; /** * Grants permission to update the metadata of a WhatsApp Flow * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_UpdateWhatsAppFlow.html */ toUpdateWhatsAppFlow(): this; /** * Grants permission to update the Flow JSON definition of a WhatsApp Flow * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_UpdateWhatsAppFlowAssets.html */ toUpdateWhatsAppFlowAssets(): this; /** * Grants permission to update a WhatsApp message template * * Access Level: Write * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_UpdateWhatsAppMessageTemplate.html */ toUpdateWhatsAppMessageTemplate(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type phone-number-id to the statement * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_WhatsAppPhoneNumberDetail.html * * @param originationPhoneNumberId - Identifier for the originationPhoneNumberId. * @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() */ onPhoneNumberId(originationPhoneNumberId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type waba to the statement * * https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_LinkedWhatsAppBusinessAccountSummary.html * * @param wabaId - Identifier for the wabaId. * @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() */ onWaba(wabaId: string, account?: string, region?: string, partition?: string): this; /** * Filters access by the 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: * - .toAssociateWhatsAppBusinessAccount() * - .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 tags associated with the resource * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag * * Applies to actions: * - .toAssociateWhatsAppBusinessAccount() * - .toTagResource() * - .toUntagResource() * * Applies to resource types: * - phone-number-id * - waba * * @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 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: * - .toAssociateWhatsAppBusinessAccount() * - .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; }