Amazon SES - End session

Declaration

<AMAWSSES ACTIVITY="end_session" SESSION="text" />

Related Topics     

Description

Ends an Amazon SES session.

IMPORTANT: The Amazon SES activities are performed using Amazon's Simple Email Service engine, therefore, launching and operating Amazon SES through Automate Desktop requires a valid Access Key ID and Secret Access Key.

Practical usage

Ends an Amazon SES session created and started in a previous step by the Amazon SES - Create session activity.

Parameters

Credentials

Property Type Required Default Markup Description
Session Text Yes (Empty) SESSION="session_name" The name of the session to end.

Description

Error Causes

On Error

Example

NOTE:
  • Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
  • To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.

Description

This sample task populates a dataset with a list of identities. The dataset is looped and within each iteration, the current identity is verified.  Once the loop is finished, the session is ended.

Copy
<!-- Create AWS SES session "SESVerify". Access key is "AKIAJ25JAKOPAC7GSQ7A". -->
<AMAWSSES ACTIVITY="create_session" SESSION="SESVerify" ACCESSKEY="AKIAJ25JAKOPAC7GSQ7A" SECRETKEY="AM3i6P77pVEBOw=aME" />
<!-- List identity information into automate 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" />