Skip to content

A Simple Apex class for Salesforce to use AWS services ( S3, EC2, Lambda, Api-Gateway and more ).

License

Notifications You must be signed in to change notification settings

gmalakar/AWSForSalesForceApex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWSForSalesForceApex

A Simple Apex class for Salesforce to use AWS services ( S3, EC2, Lambda, Api-Gateway and more ).

I have just started this and looking for helping hands.

Example of invoke api:

public class AWSExamples {

public static HttpResponse invokeApi(){
    AWSConfig.APIGateway apiConfig = new AWSConfig.APIGateway('<your access key>', '<your secret key>' );
    AWSServiceClient.APIGateway apiClient = new AWSServiceClient.APIGateway( apiConfig );
    apiConfig.ApiKey = '<your api key>';
    apiConfig.Stage = '<your stage name>'; //example v1, prod, stag
    apiConfig.Region = '<your region>'; //default is 'us-east-1'
    apiConfig.HttpMethod = AWSUtils.HttpMethod.Post; // http method, default is Get
    String payload = '<your pay load>'; //request body
    return apiClient.invokeApi('<your resource path>', payload );
}

}

About

A Simple Apex class for Salesforce to use AWS services ( S3, EC2, Lambda, Api-Gateway and more ).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published