Example usage for com.amazonaws.services.simpleworkflow AmazonSimpleWorkflowClientBuilder standard

List of usage examples for com.amazonaws.services.simpleworkflow AmazonSimpleWorkflowClientBuilder standard

Introduction

In this page you can find the example usage for com.amazonaws.services.simpleworkflow AmazonSimpleWorkflowClientBuilder standard.

Prototype

public static AmazonSimpleWorkflowClientBuilder standard() 

Source Link

Usage

From source file:CreateSwfDomain.java

License:Open Source License

/**
 * Run the app./*from  w  w w  .ja va2  s .  c  o m*/
 */
public static void main(String[] args) {
    CreateSwfDomain app = new CreateSwfDomain();

    AmazonSimpleWorkflow swf = AmazonSimpleWorkflowClientBuilder.standard().withRegion(Regions.US_WEST_2)
            .build();

    // List the SWF domains in this region.
    app.listSwfDomains(swf);

    // Create a new domain (or retrieve the existing one);
    app.RegisterSwfDomain(swf, "ExampleDomain");
}

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

License:Apache License

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