cdk-iam-floyd
Version:
AWS IAM policy statement generator with fluent interface for AWS CDK
1,324 lines • 163 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SmsVoiceV2 = void 0;
const shared_1 = require("../../shared");
/**
* Statement provider for service [sms-voice-v2](https://docs.aws.amazon.com/service-authorization/latest/reference/list_pinpoint-sms-voice-v2.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
class SmsVoiceV2 extends shared_1.PolicyStatement {
/**
* Grants permission to associate an origination phone number or sender ID to a pool
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_AssociateOriginationIdentity.html
*/
toAssociateOriginationIdentity() {
return this.to('AssociateOriginationIdentity');
}
/**
* Grants permission to associate a protect configuration to a configuration set
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_AssociateProtectConfiguration.html
*/
toAssociateProtectConfiguration() {
return this.to('AssociateProtectConfiguration');
}
/**
* Grants permission to look up carrier information for a phone number
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CarrierLookup.html
*/
toCarrierLookup() {
return this.to('CarrierLookup');
}
/**
* Grants permission to create a configuration set
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreateConfigurationSet.html
*/
toCreateConfigurationSet() {
return this.to('CreateConfigurationSet');
}
/**
* Grants permission to create an event destination within a configuration set
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreateEventDestination.html
*/
toCreateEventDestination() {
return this.to('CreateEventDestination');
}
/**
* Grants permission to create a notify configuration
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreateNotifyConfiguration.html
*/
toCreateNotifyConfiguration() {
return this.to('CreateNotifyConfiguration');
}
/**
* Grants permission to create an opt-out list
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreateOptOutList.html
*/
toCreateOptOutList() {
return this.to('CreateOptOutList');
}
/**
* Grants permission to create a pool
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreatePool.html
*/
toCreatePool() {
return this.to('CreatePool');
}
/**
* Grants permission to create a protect configuration
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreateProtectConfiguration.html
*/
toCreateProtectConfiguration() {
return this.to('CreateProtectConfiguration');
}
/**
* Grants permission to create an RCS agent
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreateRcsAgent.html
*/
toCreateRcsAgent() {
return this.to('CreateRcsAgent');
}
/**
* Grants permission to create a registration
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreateRegistration.html
*/
toCreateRegistration() {
return this.to('CreateRegistration');
}
/**
* Grants permission to associate a registration with a phone number or another registration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreateRegistrationAssociation.html
*/
toCreateRegistrationAssociation() {
return this.to('CreateRegistrationAssociation');
}
/**
* Grants permission to create a registration attachment
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreateRegistrationAttachment.html
*/
toCreateRegistrationAttachment() {
return this.to('CreateRegistrationAttachment');
}
/**
* Grants permission to create a registration version
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreateRegistrationVersion.html
*/
toCreateRegistrationVersion() {
return this.to('CreateRegistrationVersion');
}
/**
* Grants permission to create a verified destination number
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreateVerifiedDestinationNumber.html
*/
toCreateVerifiedDestinationNumber() {
return this.to('CreateVerifiedDestinationNumber');
}
/**
* Grants permission to delete the account default protect configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteAccountDefaultProtectConfiguration.html
*/
toDeleteAccountDefaultProtectConfiguration() {
return this.to('DeleteAccountDefaultProtectConfiguration');
}
/**
* Grants permission to delete a configuration set
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteConfigurationSet.html
*/
toDeleteConfigurationSet() {
return this.to('DeleteConfigurationSet');
}
/**
* Grants permission to delete the default message type for a configuration set
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteDefaultMessageType.html
*/
toDeleteDefaultMessageType() {
return this.to('DeleteDefaultMessageType');
}
/**
* Grants permission to delete the default sender ID for a configuration set
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteDefaultSenderId.html
*/
toDeleteDefaultSenderId() {
return this.to('DeleteDefaultSenderId');
}
/**
* Grants permission to delete an event destination within a configuration set
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteEventDestination.html
*/
toDeleteEventDestination() {
return this.to('DeleteEventDestination');
}
/**
* Grants permission to delete a keyword for a pool or origination phone number
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteKeyword.html
*/
toDeleteKeyword() {
return this.to('DeleteKeyword');
}
/**
* Grants permission to delete an override for your account's media messaging monthly spend limit
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteMediaMessageSpendLimitOverride.html
*/
toDeleteMediaMessageSpendLimitOverride() {
return this.to('DeleteMediaMessageSpendLimitOverride');
}
/**
* Grants permission to delete a notify configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteNotifyConfiguration.html
*/
toDeleteNotifyConfiguration() {
return this.to('DeleteNotifyConfiguration');
}
/**
* Grants permission to delete an override for your account's notify messaging monthly spend limit
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteNotifyMessageSpendLimitOverride.html
*/
toDeleteNotifyMessageSpendLimitOverride() {
return this.to('DeleteNotifyMessageSpendLimitOverride');
}
/**
* Grants permission to delete an opt-out list
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteOptOutList.html
*/
toDeleteOptOutList() {
return this.to('DeleteOptOutList');
}
/**
* Grants permission to delete a destination phone number from an opt-out list
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteOptedOutNumber.html
*/
toDeleteOptedOutNumber() {
return this.to('DeleteOptedOutNumber');
}
/**
* Grants permission to delete a pool
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeletePool.html
*/
toDeletePool() {
return this.to('DeletePool');
}
/**
* Grants permission to delete a protect configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteProtectConfiguration.html
*/
toDeleteProtectConfiguration() {
return this.to('DeleteProtectConfiguration');
}
/**
* Grants permission to delete a phone number override for a protect configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteProtectConfigurationRuleSetNumberOverride.html
*/
toDeleteProtectConfigurationRuleSetNumberOverride() {
return this.to('DeleteProtectConfigurationRuleSetNumberOverride');
}
/**
* Grants permission to delete an RCS agent
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteRcsAgent.html
*/
toDeleteRcsAgent() {
return this.to('DeleteRcsAgent');
}
/**
* Grants permission to delete an override for your account's RCS messaging monthly spend limit
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteRcsMessageSpendLimitOverride.html
*/
toDeleteRcsMessageSpendLimitOverride() {
return this.to('DeleteRcsMessageSpendLimitOverride');
}
/**
* Grants permission to delete a registration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteRegistration.html
*/
toDeleteRegistration() {
return this.to('DeleteRegistration');
}
/**
* Grants permission to delete a registration attachment
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteRegistrationAttachment.html
*/
toDeleteRegistrationAttachment() {
return this.to('DeleteRegistrationAttachment');
}
/**
* Grants permission to delete an optional registration field value
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteRegistrationFieldValue.html
*/
toDeleteRegistrationFieldValue() {
return this.to('DeleteRegistrationFieldValue');
}
/**
* Grants permission to delete a resource policy
*
* Access Level: Permissions management, Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteResourcePolicy.html
*/
toDeleteResourcePolicy() {
return this.to('DeleteResourcePolicy');
}
/**
* Grants permission to delete an override for your account's text messaging monthly spend limit
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteTextMessageSpendLimitOverride.html
*/
toDeleteTextMessageSpendLimitOverride() {
return this.to('DeleteTextMessageSpendLimitOverride');
}
/**
* Grants permission to delete a verified destination number
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteVerifiedDestinationNumber.html
*/
toDeleteVerifiedDestinationNumber() {
return this.to('DeleteVerifiedDestinationNumber');
}
/**
* Grants permission to delete an override for your account's voice messaging monthly spend limit
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DeleteVoiceMessageSpendLimitOverride.html
*/
toDeleteVoiceMessageSpendLimitOverride() {
return this.to('DeleteVoiceMessageSpendLimitOverride');
}
/**
* Grants permission to describe the attributes of your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeAccountAttributes.html
*/
toDescribeAccountAttributes() {
return this.to('DescribeAccountAttributes');
}
/**
* Grants permission to describe the service quotas for your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeAccountLimits.html
*/
toDescribeAccountLimits() {
return this.to('DescribeAccountLimits');
}
/**
* Grants permission to describe the configuration sets in your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeConfigurationSets.html
*/
toDescribeConfigurationSets() {
return this.to('DescribeConfigurationSets');
}
/**
* Grants permission to describe the keywords for a pool or origination phone number
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeKeywords.html
*/
toDescribeKeywords() {
return this.to('DescribeKeywords');
}
/**
* Grants permission to describe the notify configurations in your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeNotifyConfigurations.html
*/
toDescribeNotifyConfigurations() {
return this.to('DescribeNotifyConfigurations');
}
/**
* Grants permission to describe the notify templates available
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeNotifyTemplates.html
*/
toDescribeNotifyTemplates() {
return this.to('DescribeNotifyTemplates');
}
/**
* Grants permission to describe the opt-out lists in your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeOptOutLists.html
*/
toDescribeOptOutLists() {
return this.to('DescribeOptOutLists');
}
/**
* Grants permission to describe the destination phone numbers in an opt-out list
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeOptedOutNumbers.html
*/
toDescribeOptedOutNumbers() {
return this.to('DescribeOptedOutNumbers');
}
/**
* Grants permission to describe the origination phone numbers in your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribePhoneNumbers.html
*/
toDescribePhoneNumbers() {
return this.to('DescribePhoneNumbers');
}
/**
* Grants permission to describe the pools in your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribePools.html
*/
toDescribePools() {
return this.to('DescribePools');
}
/**
* Grants permission to describe the protect configurations in your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeProtectConfigurations.html
*/
toDescribeProtectConfigurations() {
return this.to('DescribeProtectConfigurations');
}
/**
* Grants permission to describe the country launch status for an RCS agent
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeRcsAgentCountryLaunchStatus.html
*/
toDescribeRcsAgentCountryLaunchStatus() {
return this.to('DescribeRcsAgentCountryLaunchStatus');
}
/**
* Grants permission to describe the RCS agents in your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeRcsAgents.html
*/
toDescribeRcsAgents() {
return this.to('DescribeRcsAgents');
}
/**
* Grants permission to describe the registration attachments in your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeRegistrationAttachments.html
*/
toDescribeRegistrationAttachments() {
return this.to('DescribeRegistrationAttachments');
}
/**
* Grants permission to describe the field definitions for a given registration type
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeRegistrationFieldDefinitions.html
*/
toDescribeRegistrationFieldDefinitions() {
return this.to('DescribeRegistrationFieldDefinitions');
}
/**
* Grants permission to describe the field values for a given registration
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeRegistrationFieldValues.html
*/
toDescribeRegistrationFieldValues() {
return this.to('DescribeRegistrationFieldValues');
}
/**
* Grants permission to describe the section definitions for a given registration type
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeRegistrationSectionDefinitions.html
*/
toDescribeRegistrationSectionDefinitions() {
return this.to('DescribeRegistrationSectionDefinitions');
}
/**
* Grants permission to describe the registration types supported by the service
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeRegistrationTypeDefinitions.html
*/
toDescribeRegistrationTypeDefinitions() {
return this.to('DescribeRegistrationTypeDefinitions');
}
/**
* Grants permission to describe the versions for a given registration
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeRegistrationVersions.html
*/
toDescribeRegistrationVersions() {
return this.to('DescribeRegistrationVersions');
}
/**
* Grants permission to describe the registrations in your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeRegistrations.html
*/
toDescribeRegistrations() {
return this.to('DescribeRegistrations');
}
/**
* Grants permission to describe the sender IDs in your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeSenderIds.html
*/
toDescribeSenderIds() {
return this.to('DescribeSenderIds');
}
/**
* Grants permission to describe the monthly spend limits for your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeSpendLimits.html
*/
toDescribeSpendLimits() {
return this.to('DescribeSpendLimits');
}
/**
* Grants permission to describe the verified destination numbers in your account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeVerifiedDestinationNumbers.html
*/
toDescribeVerifiedDestinationNumbers() {
return this.to('DescribeVerifiedDestinationNumbers');
}
/**
* Grants permission to disassociate an origination phone number or sender ID from a pool
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DisassociateOriginationIdentity.html
*/
toDisassociateOriginationIdentity() {
return this.to('DisassociateOriginationIdentity');
}
/**
* Grants permission to disassociate a protect configuration from a configuration set
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DisassociateProtectConfiguration.html
*/
toDisassociateProtectConfiguration() {
return this.to('DisassociateProtectConfiguration');
}
/**
* Grants permission to discard the latest version of a given registration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DiscardRegistrationVersion.html
*/
toDiscardRegistrationVersion() {
return this.to('DiscardRegistrationVersion');
}
/**
* Grants permission to get the country rule set for a protect configuration
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_GetProtectConfigurationCountryRuleSet.html
*/
toGetProtectConfigurationCountryRuleSet() {
return this.to('GetProtectConfigurationCountryRuleSet');
}
/**
* Grants permission to get a resource policy
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_GetResourcePolicy.html
*/
toGetResourcePolicy() {
return this.to('GetResourcePolicy');
}
/**
* Grants permission to list countries that support notify messaging
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_ListNotifyCountries.html
*/
toListNotifyCountries() {
return this.to('ListNotifyCountries');
}
/**
* Grants permission to list all origination phone numbers and sender IDs associated to a pool
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_ListPoolOriginationIdentities.html
*/
toListPoolOriginationIdentities() {
return this.to('ListPoolOriginationIdentities');
}
/**
* Grants permission to list all phone number overrides for a protect configuration
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_ListProtectConfigurationRuleSetNumberOverrides.html
*/
toListProtectConfigurationRuleSetNumberOverrides() {
return this.to('ListProtectConfigurationRuleSetNumberOverrides');
}
/**
* Grants permission to list all resources associated to a registration
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_ListRegistrationAssociations.html
*/
toListRegistrationAssociations() {
return this.to('ListRegistrationAssociations');
}
/**
* Grants permission to list the tags for a resource
*
* Access Level: Read
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_ListTagsForResource.html
*/
toListTagsForResource() {
return this.to('ListTagsForResource');
}
/**
* Grants permission to create or update a keyword for a pool or origination phone number
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_PutKeyword.html
*/
toPutKeyword() {
return this.to('PutKeyword');
}
/**
* Grants permission to put feedback for a text, voice, or media message
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_PutMessageFeedback.html
*/
toPutMessageFeedback() {
return this.to('PutMessageFeedback');
}
/**
* Grants permission to put a destination phone number into an opt-out list
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_PutOptedOutNumber.html
*/
toPutOptedOutNumber() {
return this.to('PutOptedOutNumber');
}
/**
* Grants permission to put a phone number override for a protect configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_PutProtectConfigurationRuleSetNumberOverride.html
*/
toPutProtectConfigurationRuleSetNumberOverride() {
return this.to('PutProtectConfigurationRuleSetNumberOverride');
}
/**
* Grants permission to put a registration field value
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_PutRegistrationFieldValue.html
*/
toPutRegistrationFieldValue() {
return this.to('PutRegistrationFieldValue');
}
/**
* Grants permission to put a resource policy
*
* Access Level: Permissions management, Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_PutResourcePolicy.html
*/
toPutResourcePolicy() {
return this.to('PutResourcePolicy');
}
/**
* Grants permission to release an origination phone number
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_ReleasePhoneNumber.html
*/
toReleasePhoneNumber() {
return this.to('ReleasePhoneNumber');
}
/**
* Grants permission to release a sender ID
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_ReleaseSenderId.html
*/
toReleaseSenderId() {
return this.to('ReleaseSenderId');
}
/**
* Grants permission to request an origination phone number
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_RequestPhoneNumber.html
*/
toRequestPhoneNumber() {
return this.to('RequestPhoneNumber');
}
/**
* Grants permission to request an unregistered sender ID
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_RequestSenderId.html
*/
toRequestSenderId() {
return this.to('RequestSenderId');
}
/**
* Grants permission to send a text or voice message containing a verification code to a destination phone number
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SendDestinationNumberVerificationCode.html
*/
toSendDestinationNumberVerificationCode() {
return this.to('SendDestinationNumberVerificationCode');
}
/**
* Grants permission to send a media message to a destination phone number
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SendMediaMessage.html
*/
toSendMediaMessage() {
return this.to('SendMediaMessage');
}
/**
* Grants permission to send a notify text message to a destination phone number
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SendNotifyTextMessage.html
*/
toSendNotifyTextMessage() {
return this.to('SendNotifyTextMessage');
}
/**
* Grants permission to send a notify voice message to a destination phone number
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SendNotifyVoiceMessage.html
*/
toSendNotifyVoiceMessage() {
return this.to('SendNotifyVoiceMessage');
}
/**
* Grants permission to send an RCS message to a destination phone number
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SendRcsMessage.html
*/
toSendRcsMessage() {
return this.to('SendRcsMessage');
}
/**
* Grants permission to send a text message to a destination phone number
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SendTextMessage.html
*/
toSendTextMessage() {
return this.to('SendTextMessage');
}
/**
* Grants permission to send a voice message to a destination phone number
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SendVoiceMessage.html
*/
toSendVoiceMessage() {
return this.to('SendVoiceMessage');
}
/**
* Grants permission to set a default protect configuration for the account
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SetAccountDefaultProtectConfiguration.html
*/
toSetAccountDefaultProtectConfiguration() {
return this.to('SetAccountDefaultProtectConfiguration');
}
/**
* Grants permission to set the default message feedback for a configuration set
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SetDefaultMessageFeedbackEnabled.html
*/
toSetDefaultMessageFeedbackEnabled() {
return this.to('SetDefaultMessageFeedbackEnabled');
}
/**
* Grants permission to set the default message type for a configuration set
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SetDefaultMessageType.html
*/
toSetDefaultMessageType() {
return this.to('SetDefaultMessageType');
}
/**
* Grants permission to set the default sender ID for a configuration set
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SetDefaultSenderId.html
*/
toSetDefaultSenderId() {
return this.to('SetDefaultSenderId');
}
/**
* Grants permission to set an override for your account's media messaging monthly spend limit
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SetMediaMessageSpendLimitOverride.html
*/
toSetMediaMessageSpendLimitOverride() {
return this.to('SetMediaMessageSpendLimitOverride');
}
/**
* Grants permission to set an override for your account's notify messaging monthly spend limit
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SetNotifyMessageSpendLimitOverride.html
*/
toSetNotifyMessageSpendLimitOverride() {
return this.to('SetNotifyMessageSpendLimitOverride');
}
/**
* Grants permission to set an override for your account's RCS messaging monthly spend limit
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SetRcsMessageSpendLimitOverride.html
*/
toSetRcsMessageSpendLimitOverride() {
return this.to('SetRcsMessageSpendLimitOverride');
}
/**
* Grants permission to set an override for your account's text messaging monthly spend limit
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SetTextMessageSpendLimitOverride.html
*/
toSetTextMessageSpendLimitOverride() {
return this.to('SetTextMessageSpendLimitOverride');
}
/**
* Grants permission to set an override for your account's voice messaging monthly spend limit
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SetVoiceMessageSpendLimitOverride.html
*/
toSetVoiceMessageSpendLimitOverride() {
return this.to('SetVoiceMessageSpendLimitOverride');
}
/**
* Grants permission to submit the latest version of a given registration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_SubmitRegistrationVersion.html
*/
toSubmitRegistrationVersion() {
return this.to('SubmitRegistrationVersion');
}
/**
* Grants permission to add tags to a resource
*
* Access Level: Tagging, Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_TagResource.html
*/
toTagResource() {
return this.to('TagResource');
}
/**
* Grants permission to remove tags from a resource
*
* Access Level: Tagging, Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_UntagResource.html
*/
toUntagResource() {
return this.to('UntagResource');
}
/**
* Grants permission to update an event destination within a configuration set
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_UpdateEventDestination.html
*/
toUpdateEventDestination() {
return this.to('UpdateEventDestination');
}
/**
* Grants permission to update a notify configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_UpdateNotifyConfiguration.html
*/
toUpdateNotifyConfiguration() {
return this.to('UpdateNotifyConfiguration');
}
/**
* Grants permission to update an origination phone number's configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_UpdatePhoneNumber.html
*/
toUpdatePhoneNumber() {
return this.to('UpdatePhoneNumber');
}
/**
* Grants permission to update a pool's configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_UpdatePool.html
*/
toUpdatePool() {
return this.to('UpdatePool');
}
/**
* Grants permission to update a protect configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_UpdateProtectConfiguration.html
*/
toUpdateProtectConfiguration() {
return this.to('UpdateProtectConfiguration');
}
/**
* Grants permission to update a country rule set for a protect configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_UpdateProtectConfigurationCountryRuleSet.html
*/
toUpdateProtectConfigurationCountryRuleSet() {
return this.to('UpdateProtectConfigurationCountryRuleSet');
}
/**
* Grants permission to update an RCS agent's configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_UpdateRcsAgent.html
*/
toUpdateRcsAgent() {
return this.to('UpdateRcsAgent');
}
/**
* Grants permission to update a sender ID's configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_UpdateSenderId.html
*/
toUpdateSenderId() {
return this.to('UpdateSenderId');
}
/**
* Grants permission to verify a destination phone number
*
* Access Level: Write
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_VerifyDestinationNumber.html
*/
toVerifyDestinationNumber() {
return this.to('VerifyDestinationNumber');
}
/**
* Adds a resource of type ConfigurationSet to the statement
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreateConfigurationSet.html
*
* @param configurationSetName - Identifier for the configurationSetName.
* @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()
*/
onConfigurationSet(configurationSetName, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:sms-voice:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:configuration-set/${configurationSetName}`);
}
/**
* Adds a resource of type Message to the statement
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_PutMessageFeedback.html
*
* @param messageId - Identifier for the messageId.
* @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.
*/
onMessage(messageId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:sms-voice:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:message/${messageId}`);
}
/**
* Adds a resource of type NotifyConfiguration to the statement
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreateNotifyConfiguration.html
*
* @param notifyConfigurationId - Identifier for the notifyConfigurationId.
* @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()
*/
onNotifyConfiguration(notifyConfigurationId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:sms-voice:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:notify-configuration/${notifyConfigurationId}`);
}
/**
* Adds a resource of type OptOutList to the statement
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreateOptOutList.html
*
* @param optOutListName - Identifier for the optOutListName.
* @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()
*/
onOptOutList(optOutListName, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:sms-voice:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:opt-out-list/${optOutListName}`);
}
/**
* Adds a resource of type PhoneNumber to the statement
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_RequestPhoneNumber.html
*
* @param phoneNumberId - Identifier for the phoneNumberId.
* @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()
*/
onPhoneNumber(phoneNumberId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:sms-voice:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:phone-number/${phoneNumberId}`);
}
/**
* Adds a resource of type Pool to the statement
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreatePool.html
*
* @param poolId - Identifier for the poolId.
* @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()
*/
onPool(poolId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:sms-voice:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:pool/${poolId}`);
}
/**
* Adds a resource of type ProtectConfiguration to the statement
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreateProtectConfiguration.html
*
* @param protectConfigurationId - Identifier for the protectConfigurationId.
* @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()
*/
onProtectConfiguration(protectConfigurationId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:sms-voice:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:protect-configuration/${protectConfigurationId}`);
}
/**
* Adds a resource of type RcsAgent to the statement
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_CreateRcsAgent.html
*
* @param rcsAgentId - Identifier for the rcsAgentId.
* @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()
*/
onRcsAgent(rcsAgentId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:sms-voice:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:rcs-agent/${rcsAgentId}`);
}
/**
* Adds a resource of type Registration to the statement
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeRegistrations.html
*
* @param registrationId - Identifier for the registrationId.
* @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()
*/
onRegistration(registrationId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:sms-voice:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:registration/${registrationId}`);
}
/**
* Adds a resource of type RegistrationAttachment to the statement
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeRegistrationAttachments.html
*
* @param registrationAttachmentId - Identifier for the registrationAttachmentId.
* @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()
*/
onRegistrationAttachment(registrationAttachmentId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:sms-voice:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:registration-attachment/${registrationAttachmentId}`);
}
/**
* Adds a resource of type SenderId to the statement
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeSenderIds.html
*
* @param senderId - Identifier for the senderId.
* @param isoCountryCode - Identifier for the isoCountryCode.
* @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()
*/
onSenderId(senderId, isoCountryCode, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:sms-voice:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:sender-id/${senderId}/${isoCountryCode}`);
}
/**
* Adds a resource of type VerifiedDestinationNumber to the statement
*
* https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribeVerifiedDestinationNumbers.html
*
* @param verifiedDestinationNumberId - Identifier for the verifiedDestinationNumberId.
* @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()
*/
onVerifiedDestinationNumber(verifiedDesti