Amazon SES - End session |
<AMAWSSES ACTIVITY="end_session" SESSION="text" /> |
Description:
Ends an SES session.
IMPORTANT: The AWS SES activities are performed using Amazon's Simple Email Service engine, therefore, launching and operating Amazon SES through requires a valid Access Key ID and Secret Access Key. |
Ends an SES session created and started in a previous step by the Create session activity.
Credentials
Property |
Type |
Required |
Default |
Markup |
Description |
Session |
Text |
Yes |
(Empty) |
SESSION="session_name" |
The name of the session to end. |
NOTE: The sample AML code below can be copied and pasted directly into the Steps panel of the Task Builder. |
Description: This task populates a dataset with a list of identities. The dataset is looped and within each iteration, the current identity is verified.
<!-- Create AWS SES session "SESVerify". Access key is "AKIAJ25JAKOPAC7GSQ7A". --> <AMAWSSES ACTIVITY="create_session" SESSION="SESVerify" ACCESSKEY="AKIAJ25JAKOPAC7GSQ7A" SECRETKEY="AM3i6P77pVEBOw=aME" /> <!-- List identity information into dataset "IDList". Session is "SESVerify". --> <AMAWSSES ACTIVITY="list_identities" PROVIDER="session_based" SESSION="SESVerify" RESULTDATSET="IDList" /> <!-- Loop through dataset "IDList". --> <AMLOOP ACTIVITY="dataset" DATASET="IDList"> <!-- If "%IDList.Type% = EmailAddress", then... --> <AMIF EXPRESSION="%IDList.Type% = EmailAddress"> <!-- Verify identity "%IDList.Identity%" of type EmailAddress. Session is "SESVerify". --> <AMAWSSES ACTIVITY="verify_identity" PROVIDER="session_based" SESSION="SESVerify" IDENTITY="%IDList.Identity%" /> <!-- End if. --> </AMIF> <!-- End loop. --> </AMLOOP> <!-- End AWS SES session "SESVerify". --> <AMAWSSES ACTIVITY="end_session" SESSION="SESVerify" /> |