+ All Categories
Home > Technology > Mule amazon s3 connector

Mule amazon s3 connector

Date post: 13-Apr-2017
Category:
Upload: cong-thanh-nguyen
View: 190 times
Download: 1 times
Share this document with a friend
21
Mule Amazon S3 Connector Thanh Nguyen
Transcript
Page 1: Mule amazon s3 connector

Mule Amazon S3 Connector

Thanh Nguyen

Page 2: Mule amazon s3 connector

Introduction

• Amazon Simple Storage Service (Amazon S3) is storage for the Internet

• Store and retrieve any amount of data at any time, from anywhere on the web

• The AWS SDK for Java provides a Java API for AWS infrastructure services

Page 3: Mule amazon s3 connector

Prerequisites

• To use the Amazon S3 connector, you must have the following:– Access to Amazon Web Services– To access AWS with the connector, you need the

credentials in the form of IAM– Anypoint Studio Enterprise edition

Page 4: Mule amazon s3 connector

Compatibility

• Amazon S3 connector is compatible with:– Mule Runtime: 3.5.0 or later– AWS SDK for Java: 1.11.21

Page 5: Mule amazon s3 connector

Installing the Connector

• Updating from an Older Version– Click the popup and check for the available

updates– Select the Amazon S3 connector version 3.0.0

check box and click Next.– Follow the instructions provided by the user

interface

Page 6: Mule amazon s3 connector

Installing the Connector

• Updating from an Older Version– Restart Studio when prompted. After restarting, if

you have several versions of the connector installed, Mule asks you for the version of the connector to use

Page 7: Mule amazon s3 connector

Configuring the Connector Global Element

• Click the Global Elements tab at the base of the canvas, then click Create

• In the Choose Global Type window, expand Connector Configuration, and click Amazon S3: Configuration

Page 8: Mule amazon s3 connector

Configuring the Connector Global Element

Page 9: Mule amazon s3 connector

Configuring the Connector Global Element

• Click Ok• Enter the global element properties:

Page 10: Mule amazon s3 connector

Connecting to S3 Compatible Storage

• If you need to connect to a different storage than the default AWS S3, you must specify its URL in the S3 Compatible Storage URL field

Page 11: Mule amazon s3 connector

Using the Connector• Abort Multipart Upload

• Complete Multipart Upload

• Copy Object

• Create Bucket

• Create Object

• Create Object Presigned URI

• Delete Bucket

• Delete Bucket Cross Origin Configuration

• Delete Buckt Lifecycle Configuration,...

Page 12: Mule amazon s3 connector

Using the Connector• Get Bucket Tagging Configuration

• Get Bucket Versioning Configuration

• Get Bucket Website Configuration

• Get Object

• Get Object ACL

• Get Object Content

• Get Object Metadata

• Initiate Multipart Upload

• List Buckets

• List Multipart Uploads

• List Next Batch of Objects

• List Next Batch of Versions

Page 13: Mule amazon s3 connector

Using the Connector• Delete Bucket Policy

• Delete Bucket Tagging Configuration

• Delete Bucket Website Configuration

• Delete Object

• Delete Objects

• Get Bucket ACL

• Get Bucket Cross Origin Configuration

• Get Bucket Lifecycle Configuration

• Get Bucket Location

• Get Bucket Logging Configuration

• Get Bucket Notification Configuration

• Get Bucket Policy

Page 14: Mule amazon s3 connector

Using the Connector• List Objects

• List Parts

• List Versions

• Set Bucket ACL

• Set Bucket Cross Origin Configuration

• Set Bucket Lifecycle Configuration

• Set Bucket Logging Configuration

• Set Bucket Notification Configuration

• Set Bucket Policy

• Set Bucket tagging Configuration

• Set Bucket Versioning Configuration

• Set Bucket Website Configuration

• Set Object ACL

• Set Object Storage Class

• Upload Part

• Upload Part Copy

Page 15: Mule amazon s3 connector

Connector Namespace and Schema

• Namespace: http://www.mulesoft.org/schema/mule/connector

• Schema Location: http://www.mulesoft.org/schema/mule/s3/current/mule-connector.xsd

Page 16: Mule amazon s3 connector

Connector Namespace and Schema

Page 17: Mule amazon s3 connector

Using the Connector in a Mavenized Mule App

Page 18: Mule amazon s3 connector

Use Cases

• The following are the common use cases for the Amazon S3 connector:– Store an image from a URL on Amazon S3, then

retrieve and display the image.– Create an image link in Amazon S3 and update the

status in twitter along with the image link.

Page 19: Mule amazon s3 connector

Adding the Connector to a Mule Flow

• Create a new Mule project in Anypoint Studio.• Drag the Amazon S3 connector onto the

canvas, then select it to open the properties editor

• Configure the connector’s parameters:

Page 20: Mule amazon s3 connector

Adding the Connector to a Mule Flow

Page 21: Mule amazon s3 connector

Question and answer


Recommended