publish
plugins.it2be_aws info


Servoy Properties Summary
String build
Date buildDate
String component
String licensee
String typeLicensed
Number version
String versionLicensed


Servoy Methods Summary
String invokeLambda( String, String, String )
AWSS3 newS3( String )
Boolean register( String )
void setCredentials( )
void setCredentials( String, String )


Servoy Properties Details


build
String  build
Returns the current version (major, minor, build)
Returns
String  build String

Supported Clients
SmartClient, WebClient, NGClient


buildDate
Date  buildDate
Returns date release date
Returns
Date  date Date

Supported Clients
SmartClient, WebClient, NGClient


component
String  component
Returns the component name
Returns
String  name String

Supported Clients
SmartClient, WebClient, NGClient


licensee
String  licensee
Returns the licensee
Returns
String  licensee String

Supported Clients
SmartClient, WebClient, NGClient


typeLicensed
String  typeLicensed
Returns the type that is valid for this license
Returns
String  type String

Supported Clients
SmartClient, WebClient, NGClient


version
Number  version
Returns the current version (major, minor)
Returns
Number  version Double

Supported Clients
SmartClient, WebClient, NGClient


versionLicensed
String  versionLicensed
Returns the version that is valid for this license
Returns
String  license String

Supported Clients
SmartClient, WebClient, NGClient

Servoy Methods Details


invokeLambda
String  invokeLambda( String, String, String )
Invoke a Lambda function
Parameters
String  region  AWS region
String  functionName  function name
String  payLoad  json string arguments

Returns
String  String of the response

Supported Clients
SmartClient, WebClient, NGClient

Sample
plugins.it2be_aws.setCredentials();
var payload = {"hello": "world", "multiple": "args"}
var response = plugins.it2be_aws.invokeLambda(plugins.it2be_aws.AWS_REGIONS.US_EAST_N_VIRGINIA, "helloWorld", JSON.stringify(payload));


newS3
AWSS3  newS3( String )
Create an S3 client using the configured credentials in the given region.
Parameters
String  region  AWS region

Returns
AWSS3  S3 client

Supported Clients
SmartClient, WebClient, NGClient

Sample
plugins.it2be_aws.setCredentials();
var s3Client = plugins.it2be_aws.newS3(plugins.it2be_aws.AWS_REGIONS.US_EAST_N_VIRGINIA);
// or
var s3Client = plugins.it2be_aws.newS3("us-east-1");


register
Boolean  register( String )
Register your runtime license (use the Components Manager to request your license string)
Parameters
String  license  the license

Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// You have to register your plug-in(s) and beans before you start using them
// One way to do so is create an 'onOpenSolution' method and add the 'register(.)' method(s) there
plugins.it2be_aws.register("Insert the license string(s) from your '*_runtime_license.txt' file here!");


setCredentials
void  setCredentials( )
Authenticate with AWS using the default credentials provider. AWS credentials provider chain that looks for credentials in this order: Java System Properties - aws.accessKeyId and aws.secretKey Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI Credentials delivered through the Amazon EC2 container service if AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" environment variable is set and security manager has permission to access the variable, AInstance profile credentials delivered through the Amazon EC2 metadata service
Returns
void  

Supported Clients
SmartClient, WebClient, NGClient


setCredentials
void  setCredentials( String, String )
Authenticate with AWS using an access key and secret key. NOTE: If you use this method, please store the access key and secret key securely.
Parameters
String  accessKey  AWS access key
String  secretKey  AWS secret key

Returns
void  

Supported Clients
SmartClient, WebClient, NGClient