Example usage for com.amazonaws.services.simpleemail AmazonSimpleEmailServiceClientBuilder standard

List of usage examples for com.amazonaws.services.simpleemail AmazonSimpleEmailServiceClientBuilder standard

Introduction

In this page you can find the example usage for com.amazonaws.services.simpleemail AmazonSimpleEmailServiceClientBuilder standard.

Prototype

public static AmazonSimpleEmailServiceClientBuilder standard() 

Source Link

Usage

From source file:org.wildfly.camel.test.common.aws.SESUtils.java

License:Apache License

public static AmazonSimpleEmailServiceClient createEmailClient() {
    BasicCredentialsProvider credentials = BasicCredentialsProvider.standard();
    AmazonSimpleEmailServiceClient client = !credentials.isValid() ? null
            : (AmazonSimpleEmailServiceClient) AmazonSimpleEmailServiceClientBuilder.standard()
                    .withCredentials(credentials).withRegion("eu-west-1").build();
    return client;
}