cdk-iam-floyd
Version:
AWS IAM policy statement generator with fluent interface for AWS CDK
1,492 lines • 181 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SesV2 = void 0;
const shared_1 = require("../../shared");
/**
* Statement provider for service [ses-v2](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonsimpleemailservicev2.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
class SesV2 extends shared_1.PolicyStatement {
/**
* Grants permission to get metric data on your activity
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_BatchGetMetricData.html
*/
toBatchGetMetricData() {
return this.to('BatchGetMetricData');
}
/**
* Grants permission to cancel an export job
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifExportSourceType()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_CancelExportJob.html
*/
toCancelExportJob() {
return this.to('CancelExportJob');
}
/**
* Grants permission to create a new configuration set
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_CreateConfigurationSet.html
*/
toCreateConfigurationSet() {
return this.to('CreateConfigurationSet');
}
/**
* Grants permission to create a configuration set event destination
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_CreateConfigurationSetEventDestination.html
*/
toCreateConfigurationSetEventDestination() {
return this.to('CreateConfigurationSetEventDestination');
}
/**
* Grants permission to create a contact
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_CreateContact.html
*/
toCreateContact() {
return this.to('CreateContact');
}
/**
* Grants permission to create a contact list
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_CreateContactList.html
*/
toCreateContactList() {
return this.to('CreateContactList');
}
/**
* Grants permission to create a new custom verification email template
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_CreateCustomVerificationEmailTemplate.html
*/
toCreateCustomVerificationEmailTemplate() {
return this.to('CreateCustomVerificationEmailTemplate');
}
/**
* Grants permission to create a new pool of dedicated IP addresses
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_CreateDedicatedIpPool.html
*/
toCreateDedicatedIpPool() {
return this.to('CreateDedicatedIpPool');
}
/**
* Grants permission to create a new predictive inbox placement test
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_CreateDeliverabilityTestReport.html
*/
toCreateDeliverabilityTestReport() {
return this.to('CreateDeliverabilityTestReport');
}
/**
* Grants permission to start the process of verifying an email identity
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_CreateEmailIdentity.html
*/
toCreateEmailIdentity() {
return this.to('CreateEmailIdentity');
}
/**
* Grants permission to create the specified sending authorization policy for the given identity
*
* Access Level: Permissions management
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_CreateEmailIdentityPolicy.html
*/
toCreateEmailIdentityPolicy() {
return this.to('CreateEmailIdentityPolicy');
}
/**
* Grants permission to create an email template
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_CreateEmailTemplate.html
*/
toCreateEmailTemplate() {
return this.to('CreateEmailTemplate');
}
/**
* Grants permission to create an export job
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifExportSourceType()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_CreateExportJob.html
*/
toCreateExportJob() {
return this.to('CreateExportJob');
}
/**
* Grants permission to creates an import job for a data destination
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_CreateImportJob.html
*/
toCreateImportJob() {
return this.to('CreateImportJob');
}
/**
* Grants permission to create a new multi-region endpoint
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* Dependent actions:
* - iam:CreateServiceLinkedRole
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_CreateMultiRegionEndpoint.html
*/
toCreateMultiRegionEndpoint() {
return this.to('CreateMultiRegionEndpoint');
}
/**
* Grants permission to delete an existing configuration set
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_DeleteConfigurationSet.html
*/
toDeleteConfigurationSet() {
return this.to('DeleteConfigurationSet');
}
/**
* Grants permission to delete an event destination
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_DeleteConfigurationSetEventDestination.html
*/
toDeleteConfigurationSetEventDestination() {
return this.to('DeleteConfigurationSetEventDestination');
}
/**
* Grants permission to delete a contact from a contact list
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_DeleteContact.html
*/
toDeleteContact() {
return this.to('DeleteContact');
}
/**
* Grants permission to delete a contact list with all of its contacts
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_DeleteContactList.html
*/
toDeleteContactList() {
return this.to('DeleteContactList');
}
/**
* Grants permission to delete an existing custom verification email template
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_DeleteCustomVerificationEmailTemplate.html
*/
toDeleteCustomVerificationEmailTemplate() {
return this.to('DeleteCustomVerificationEmailTemplate');
}
/**
* Grants permission to delete a dedicated IP pool
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_DeleteDedicatedIpPool.html
*/
toDeleteDedicatedIpPool() {
return this.to('DeleteDedicatedIpPool');
}
/**
* Grants permission to delete an email identity
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_DeleteEmailIdentity.html
*/
toDeleteEmailIdentity() {
return this.to('DeleteEmailIdentity');
}
/**
* Grants permission to delete the specified sending authorization policy for the given identity (an email address or a domain)
*
* Access Level: Permissions management
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_DeleteEmailIdentityPolicy.html
*/
toDeleteEmailIdentityPolicy() {
return this.to('DeleteEmailIdentityPolicy');
}
/**
* Grants permission to delete an email template
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_DeleteEmailTemplate.html
*/
toDeleteEmailTemplate() {
return this.to('DeleteEmailTemplate');
}
/**
* Grants permission to delete a multi-region endpoint
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_DeleteMultiRegionEndpoint.html
*/
toDeleteMultiRegionEndpoint() {
return this.to('DeleteMultiRegionEndpoint');
}
/**
* Grants permission to remove an email address from the suppression list for your account
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_DeleteSuppressedDestination.html
*/
toDeleteSuppressedDestination() {
return this.to('DeleteSuppressedDestination');
}
/**
* Grants permission to get information about the email-sending status and capabilities for your account
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetAccount.html
*/
toGetAccount() {
return this.to('GetAccount');
}
/**
* Grants permission to retrieve a list of the deny lists on which your dedicated IP addresses or tracked domains appear
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetBlacklistReports.html
*/
toGetBlacklistReports() {
return this.to('GetBlacklistReports');
}
/**
* Grants permission to get information about an existing configuration set
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetConfigurationSet.html
*/
toGetConfigurationSet() {
return this.to('GetConfigurationSet');
}
/**
* Grants permission to retrieve a list of event destinations that are associated with a configuration set
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetConfigurationSetEventDestinations.html
*/
toGetConfigurationSetEventDestinations() {
return this.to('GetConfigurationSetEventDestinations');
}
/**
* Grants permission to return a contact from a contact list
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetContact.html
*/
toGetContact() {
return this.to('GetContact');
}
/**
* Grants permission to return contact list metadata
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetContactList.html
*/
toGetContactList() {
return this.to('GetContactList');
}
/**
* Grants permission to return the custom email verification template for the template name you specify
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetCustomVerificationEmailTemplate.html
*/
toGetCustomVerificationEmailTemplate() {
return this.to('GetCustomVerificationEmailTemplate');
}
/**
* Grants permission to get information about a dedicated IP address
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetDedicatedIp.html
*/
toGetDedicatedIp() {
return this.to('GetDedicatedIp');
}
/**
* Grants permission to get information about a dedicated IP pool
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetDedicatedIpPool.html
*/
toGetDedicatedIpPool() {
return this.to('GetDedicatedIpPool');
}
/**
* Grants permission to list the dedicated IP addresses a dedicated IP pool
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetDedicatedIps.html
*/
toGetDedicatedIps() {
return this.to('GetDedicatedIps');
}
/**
* Grants permission to get the status of the Deliverability dashboard
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetDeliverabilityDashboardOptions.html
*/
toGetDeliverabilityDashboardOptions() {
return this.to('GetDeliverabilityDashboardOptions');
}
/**
* Grants permission to retrieve the results of a predictive inbox placement test
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetDeliverabilityTestReport.html
*/
toGetDeliverabilityTestReport() {
return this.to('GetDeliverabilityTestReport');
}
/**
* Grants permission to retrieve all the deliverability data for a specific campaign
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetDomainDeliverabilityCampaign.html
*/
toGetDomainDeliverabilityCampaign() {
return this.to('GetDomainDeliverabilityCampaign');
}
/**
* Grants permission to retrieve inbox placement and engagement rates for the domains that you use to send email
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetDomainStatisticsReport.html
*/
toGetDomainStatisticsReport() {
return this.to('GetDomainStatisticsReport');
}
/**
* Grants permission to get information about a specific identity
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetEmailIdentity.html
*/
toGetEmailIdentity() {
return this.to('GetEmailIdentity');
}
/**
* Grants permission to return the requested sending authorization policies for the given identity (an email address or a domain)
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetEmailIdentityPolicies.html
*/
toGetEmailIdentityPolicies() {
return this.to('GetEmailIdentityPolicies');
}
/**
* Grants permission to return the template object, which includes the subject line, HTML part, and text part for the template you specify
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetEmailTemplate.html
*/
toGetEmailTemplate() {
return this.to('GetEmailTemplate');
}
/**
* Grants permission to get information about an export job
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
* - .ifExportSourceType()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetExportJob.html
*/
toGetExportJob() {
return this.to('GetExportJob');
}
/**
* Grants permission to provide information about an import job
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetImportJob.html
*/
toGetImportJob() {
return this.to('GetImportJob');
}
/**
* Grants permission to provide insights about a message
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetMessageInsights.html
*/
toGetMessageInsights() {
return this.to('GetMessageInsights');
}
/**
* Grants permission to get information about a multi-region endpoint
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetMultiRegionEndpoint.html
*/
toGetMultiRegionEndpoint() {
return this.to('GetMultiRegionEndpoint');
}
/**
* Grants permission to retrieve information about a specific email address that's on the suppression list for your account
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetSuppressedDestination.html
*/
toGetSuppressedDestination() {
return this.to('GetSuppressedDestination');
}
/**
* Grants permission to list all of the configuration sets for your account
*
* Access Level: List
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ListConfigurationSets.html
*/
toListConfigurationSets() {
return this.to('ListConfigurationSets');
}
/**
* Grants permission to list all of the contact lists available for your account
*
* Access Level: List
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ListContactLists.html
*/
toListContactLists() {
return this.to('ListContactLists');
}
/**
* Grants permission to list the contacts present in a specific contact list
*
* Access Level: List
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ListContacts.html
*/
toListContacts() {
return this.to('ListContacts');
}
/**
* Grants permission to list all of the existing custom verification email templates for your account
*
* Access Level: List
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ListCustomVerificationEmailTemplates.html
*/
toListCustomVerificationEmailTemplates() {
return this.to('ListCustomVerificationEmailTemplates');
}
/**
* Grants permission to list all of the dedicated IP pools for your account
*
* Access Level: List
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ListDedicatedIpPools.html
*/
toListDedicatedIpPools() {
return this.to('ListDedicatedIpPools');
}
/**
* Grants permission to retrieve the list of the predictive inbox placement tests that you've performed, regardless of their statuses, for your account
*
* Access Level: List
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ListDeliverabilityTestReports.html
*/
toListDeliverabilityTestReports() {
return this.to('ListDeliverabilityTestReports');
}
/**
* Grants permission to list deliverability data for campaigns that used a specific domain to send email during a specified time range
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ListDomainDeliverabilityCampaigns.html
*/
toListDomainDeliverabilityCampaigns() {
return this.to('ListDomainDeliverabilityCampaigns');
}
/**
* Grants permission to list the email identities for your account
*
* Access Level: List
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ListEmailIdentities.html
*/
toListEmailIdentities() {
return this.to('ListEmailIdentities');
}
/**
* Grants permission to list all of the email templates for your account
*
* Access Level: List
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ListEmailTemplates.html
*/
toListEmailTemplates() {
return this.to('ListEmailTemplates');
}
/**
* Grants permission to list all the exports jobs for your account
*
* Access Level: List
*
* Possible conditions:
* - .ifApiVersion()
* - .ifExportSourceType()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ListExportJobs.html
*/
toListExportJobs() {
return this.to('ListExportJobs');
}
/**
* Grants permission to list all of the import jobs for your account
*
* Access Level: List
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ListImportJobs.html
*/
toListImportJobs() {
return this.to('ListImportJobs');
}
/**
* Grants permission to list all of the multi-region endpoints for your account
*
* Access Level: List
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ListMultiRegionEndpoints.html
*/
toListMultiRegionEndpoints() {
return this.to('ListMultiRegionEndpoints');
}
/**
* Grants permission to list recommendations for your account
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ListRecommendations.html
*/
toListRecommendations() {
return this.to('ListRecommendations');
}
/**
* Grants permission to list email addresses that are on the suppression list for your account
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ListSuppressedDestinations.html
*/
toListSuppressedDestinations() {
return this.to('ListSuppressedDestinations');
}
/**
* Grants permission to retrieve a list of the tags (keys and values) that are associated with a specific resource for your account
*
* Access Level: Read
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ListTagsForResource.html
*/
toListTagsForResource() {
return this.to('ListTagsForResource');
}
/**
* Grants permission to enable or disable the automatic warm-up feature for dedicated IP addresses
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutAccountDedicatedIpWarmupAttributes.html
*/
toPutAccountDedicatedIpWarmupAttributes() {
return this.to('PutAccountDedicatedIpWarmupAttributes');
}
/**
* Grants permission to update your account details
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutAccountDetails.html
*/
toPutAccountDetails() {
return this.to('PutAccountDetails');
}
/**
* Grants permission to enable or disable the ability to send email for your account
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutAccountSendingAttributes.html
*/
toPutAccountSendingAttributes() {
return this.to('PutAccountSendingAttributes');
}
/**
* Grants permission to change the settings for the account-level suppression list
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutAccountSuppressionAttributes.html
*/
toPutAccountSuppressionAttributes() {
return this.to('PutAccountSuppressionAttributes');
}
/**
* Grants permission to change the settings for VDM for your account
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutAccountVdmAttributes.html
*/
toPutAccountVdmAttributes() {
return this.to('PutAccountVdmAttributes');
}
/**
* Grants permission to associate a configuration set with a Mail Manager archive
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutConfigurationSetArchivingOptions.html
*/
toPutConfigurationSetArchivingOptions() {
return this.to('PutConfigurationSetArchivingOptions');
}
/**
* Grants permission to associate a configuration set with a dedicated IP pool
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutConfigurationSetDeliveryOptions.html
*/
toPutConfigurationSetDeliveryOptions() {
return this.to('PutConfigurationSetDeliveryOptions');
}
/**
* Grants permission to enable or disable collection of reputation metrics for emails that you send using a particular configuration set
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutConfigurationSetReputationOptions.html
*/
toPutConfigurationSetReputationOptions() {
return this.to('PutConfigurationSetReputationOptions');
}
/**
* Grants permission to enable or disable email sending for messages that use a particular configuration set
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutConfigurationSetSendingOptions.html
*/
toPutConfigurationSetSendingOptions() {
return this.to('PutConfigurationSetSendingOptions');
}
/**
* Grants permission to specify the account suppression list preferences for a particular configuration set
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutConfigurationSetSuppressionOptions.html
*/
toPutConfigurationSetSuppressionOptions() {
return this.to('PutConfigurationSetSuppressionOptions');
}
/**
* Grants permission to specify a custom domain to use for open and click tracking elements in email that you send for a particular configuration set
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutConfigurationSetTrackingOptions.html
*/
toPutConfigurationSetTrackingOptions() {
return this.to('PutConfigurationSetTrackingOptions');
}
/**
* Grants permission to override account-level VDM settings for a particular configuration set
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutConfigurationSetVdmOptions.html
*/
toPutConfigurationSetVdmOptions() {
return this.to('PutConfigurationSetVdmOptions');
}
/**
* Grants permission to move a dedicated IP address to an existing dedicated IP pool
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutDedicatedIpInPool.html
*/
toPutDedicatedIpInPool() {
return this.to('PutDedicatedIpInPool');
}
/**
* Grants permission to transition a dedicated IP pool from Standard to Managed
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutDedicatedIpPoolScalingAttributes.html
*/
toPutDedicatedIpPoolScalingAttributes() {
return this.to('PutDedicatedIpPoolScalingAttributes');
}
/**
* Grants permission to put Dedicated IP warm up attributes
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutDedicatedIpWarmupAttributes.html
*/
toPutDedicatedIpWarmupAttributes() {
return this.to('PutDedicatedIpWarmupAttributes');
}
/**
* Grants permission to enable or disable the Deliverability dashboard
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutDeliverabilityDashboardOption.html
*/
toPutDeliverabilityDashboardOption() {
return this.to('PutDeliverabilityDashboardOption');
}
/**
* Grants permission to associate a configuration set with an email identity
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutEmailIdentityConfigurationSetAttributes.html
*/
toPutEmailIdentityConfigurationSetAttributes() {
return this.to('PutEmailIdentityConfigurationSetAttributes');
}
/**
* Grants permission to enable or disable DKIM authentication for an email identity
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutEmailIdentityDkimAttributes.html
*/
toPutEmailIdentityDkimAttributes() {
return this.to('PutEmailIdentityDkimAttributes');
}
/**
* Grants permission to configure or change the DKIM authentication settings for an email domain identity
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutEmailIdentityDkimSigningAttributes.html
*/
toPutEmailIdentityDkimSigningAttributes() {
return this.to('PutEmailIdentityDkimSigningAttributes');
}
/**
* Grants permission to enable or disable feedback forwarding for an email identity
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutEmailIdentityFeedbackAttributes.html
*/
toPutEmailIdentityFeedbackAttributes() {
return this.to('PutEmailIdentityFeedbackAttributes');
}
/**
* Grants permission to enable or disable the custom MAIL FROM domain configuration for an email identity
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutEmailIdentityMailFromAttributes.html
*/
toPutEmailIdentityMailFromAttributes() {
return this.to('PutEmailIdentityMailFromAttributes');
}
/**
* Grants permission to add an email address to the suppression list
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_PutSuppressedDestination.html
*/
toPutSuppressedDestination() {
return this.to('PutSuppressedDestination');
}
/**
* Grants permission to replicate email identity DKIM signing key
*
* Access Level: Permissions management
*
* Possible conditions:
* - .ifReplicaRegion()
*/
toReplicateEmailIdentityDkimSigningKey() {
return this.to('ReplicateEmailIdentityDkimSigningKey');
}
/**
* Grants permission to compose an email message to multiple destinations
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifMultiRegionEndpointId()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_SendBulkEmail.html
*/
toSendBulkEmail() {
return this.to('SendBulkEmail');
}
/**
* Grants permission to add an email address to the list of identities and attempts to verify it
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_SendCustomVerificationEmail.html
*/
toSendCustomVerificationEmail() {
return this.to('SendCustomVerificationEmail');
}
/**
* Grants permission to send an email message
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifFeedbackAddress()
* - .ifFromAddress()
* - .ifFromDisplayName()
* - .ifRecipients()
* - .ifMultiRegionEndpointId()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_SendEmail.html
*/
toSendEmail() {
return this.to('SendEmail');
}
/**
* Grants permission to add one or more tags (keys and values) to a specified resource
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_TagResource.html
*/
toTagResource() {
return this.to('TagResource');
}
/**
* Grants permission to create a preview of the MIME content of an email when provided with a template and a set of replacement data
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_TestRenderEmailTemplate.html
*/
toTestRenderEmailTemplate() {
return this.to('TestRenderEmailTemplate');
}
/**
* Grants permission to remove one or more tags (keys and values) from a specified resource
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_UntagResource.html
*/
toUntagResource() {
return this.to('UntagResource');
}
/**
* Grants permission to update the configuration of an event destination for a configuration set
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_UpdateConfigurationSetEventDestination.html
*/
toUpdateConfigurationSetEventDestination() {
return this.to('UpdateConfigurationSetEventDestination');
}
/**
* Grants permission to update a contact's preferences for a list
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_UpdateContact.html
*/
toUpdateContact() {
return this.to('UpdateContact');
}
/**
* Grants permission to update contact list metadata
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_UpdateContactList.html
*/
toUpdateContactList() {
return this.to('UpdateContactList');
}
/**
* Grants permission to update an existing custom verification email template
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_UpdateCustomVerificationEmailTemplate.html
*/
toUpdateCustomVerificationEmailTemplate() {
return this.to('UpdateCustomVerificationEmailTemplate');
}
/**
* Grants permission to update the specified sending authorization policy for the given identity (an email address or a domain)
*
* Access Level: Permissions management
*
* Possible conditions:
* - .ifApiVersion()
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_UpdateEmailIdentityPolicy.html
*/
toUpdateEmailIdentityPolicy() {
return this.to('UpdateEmailIdentityPolicy');
}
/**
* Grants permission to update an email template
*
* Access Level: Write
*
* Possible conditions:
* - .ifApiVersion()
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_UpdateEmailTemplate.html
*/
toUpdateEmailTemplate() {
return this.to('UpdateEmailTemplate');
}
/**
* Adds a resource of type configuration-set to the statement
*
* https://docs.aws.amazon.com/ses/latest/APIReference/API_ConfigurationSet.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}:ses:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:configuration-set/${configurationSetName}`);
}
/**
* Adds a resource of type contact-list to the statement
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ContactList.html
*
* @param contactListName - Identifier for the contactListName.
* @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()
*/
onContactList(contactListName, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:ses:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:contact-list/${contactListName}`);
}
/**
* Adds a resource of type custom-verification-email-template to the statement
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_CustomVerificationEmailTemplateMetadata.html
*
* @param templateName - Identifier for the templateName.
* @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.
*/
onCustomVerificationEmailTemplate(templateName, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:ses:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:custom-verification-email-template/${templateName}`);
}
/**
* Adds a resource of type dedicated-ip-pool to the statement
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_DedicatedIp.html
*
* @param dedicatedIPPool - Identifier for the dedicatedIPPool.
* @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()
*/
onDedicatedIpPool(dedicatedIPPool, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:ses:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:dedicated-ip-pool/${dedicatedIPPool}`);
}
/**
* Adds a resource of type deliverability-test-report to the statement
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_DeliverabilityTestReport.html
*
* @param reportId - Identifier for the reportId.
* @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()
*/
onDeliverabilityTestReport(reportId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:ses:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:deliverability-test-report/${reportId}`);
}
/**
* Adds a resource of type export-job to the statement
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ExportJobSummary.html
*
* @param exportJobId - Identifier for the exportJobId.
* @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.
*/
onExportJob(exportJobId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:ses:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:export-job/${exportJobId}`);
}
/**
* Adds a resource of type identity to the statement
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_IdentityInfo.html
*
* @param identityName - Identifier for the identityName.
* @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()
*/
onIdentity(identityName, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:ses:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:identity/${identityName}`);
}
/**
* Adds a resource of type import-job to the statement
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_ImportJobSummary.html
*
* @param importJobId - Identifier for the importJobId.
* @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.
*/
onImportJob(importJobId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:ses:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:import-job/${importJobId}`);
}
/**
* Adds a resource of type template to the statement
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_Template.html
*
* @param templateName - Identifier for the templateName.
* @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.
*/
onTemplate(templateName, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:ses:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:template/${templateName}`);
}
/**
* Adds a resource of type multi-region-endpoint to the statement
*
* https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_MultiRegionEndpoint.html
*
* @param endpointName - Identifier for the endpointName.
* @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