Manage Email Folders
Allow your users the flexibility to manage their email address with email folders
Email Folders
Folder
Function
Retrieving Email Folders
// Obtain the input email address id however makes sense for your implementation.
const emailAddressId = emailAddress.id
try {
const listOutput = await emailClient.listEmailFoldersForEmailAddressId({
emailAddressId,
cachePolicy: CachePolicy.RemoteOnly,
nextToken,
})
// `listOutput` contains the list of items matching the input.
// Page through the results if listOutput.nextToken != nil.
} catch (e) {
// Handle/notify user of errors
}// Obtain the input email address id however makes sense for your implementation.
let emailAddressId = emailAddress.id
let input = ListEmailFoldersForEmailAddressIdInput(
emailAddressId: emailAddressId,
limit: 10,
nextToken: nil
)
do {
let output = try await emailClient.listEmailFoldersForEmailAddressId(
withInput: input
)
// `output` contains the `ListOutput` of items matching the input.
// `output.items` contains an array of `EmailFolder`
// Page through the results if output.nextToken != undefined.
} catch {
// Handle/notify user of errors
}Move Email Messages between Folders
Creating Custom Email Folders
Deleting Custom Email Folders
Updating Custom Email Folders
Deleting All Messages In A Folder
`hardDelete` value
Behaviour
Last updated