Amazon SES - End session
Declaration
<AMAWSSES ACTIVITY="end_session" SESSION="text" />
Description: Ends an SES session.
Practical Usage
Ends an SES session created and started in a previous step by the Create session activity.
Credentials Parameters
Property |
Type |
Required |
Default |
Markup |
Description |
---|---|---|---|---|---|
Session |
Text |
Yes |
(Empty) |
SESSION="session_name" |
The name of the session to end. |
Description tab - A custom description can be provided on the Description tab to convey additional information or share special notes about a task step.
Error Causes tab - Specify how this step should behave upon the occurrence of an error. (Refer to Task Builder > Error Causes Tab for details.)
On Error tab - Specify what AWE should do if this step encounters an error as defined on the Error Causes tab. (Refer to Task Builder > On Error Tab for details.)
Example
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" />