|
Amazon S3 - End session |
Declaration
<AMAWSS3 ACTIVITY="end_session" SESSION="text" />
Description
Ends an Amazon S3 session created in a previous step with the use of the Amazon S3 - Create session activity.
IMPORTANT: The Amazon S3 activities
are performed using Amazon's Simple Storage Service engine, therefore,
launching and operating Amazon S3 through Automate requires a
valid Access Key ID and Secret Access Key.
Practical Usage
Used to end an existing Amazon S3 session.
Parameters
Credentials
Property | Type | Required | Default | Markup | Description |
---|---|---|---|---|---|
Session | Text | Yes | (Empty) | SESSION="FlySession" | Specifies the name of the session to end. |
Example
NOTE:
- The sample AML code below can be copied and pasted directly into the Steps Panel of the Task Builder.
- Parameters containing user credentials, files, file paths, and/or other information specific to the task must be customized before the sample code can run successfully.
Description
This sample task populates a dataset with a list of objects contained in a specific bucket. The dataset is then looped and within each iteration, information about the current object is displayed in a dialog box.
Copy
<AMAWSS3 ACTIVITY="create_session" SESSION="mySession" ACCESSKEY="AKIAJU2LHLMG6BA6BZTA" SECRETKEY="AM1B2xUP4i/Z1KM5ySNpiipKpe+rOm+wdDFaME" />
<AMAWSS3 ACTIVITY="list_objects" PROVIDER="session_based" SESSION="S3Session1" BUCKETNAME="myBucket" RESULTDATASET="test" />
<AMLOOP ACTIVITY="dataset" DATASET="test" />
<AMSHOWDIALOG>Owner - %test.ETag%Key Name - %test.KeyName%Last Modified Date - %test.LastModified%Owner - %test.Owner%Size - %test.Size%Storage Class - %test.StorageClass%</AMSHOWDIALOG>
<AMLOOP ACTIVITY="end" />
<AMAWSS3 ACTIVITY="end_session" SESSION="mySession" />