package org.xmlsh.aws.clients;
import org.xmlsh.aws.util.AWSClient;
import org.xmlsh.aws.util.AWSCommandCredentialsProviderChain;
import org.xmlsh.core.InvalidArgumentException;
import org.xmlsh.core.Options;
import org.xmlsh.sh.shell.Shell;
import com.amazonaws.regions.Region;
import com.amazonaws.services.sqs.AmazonSQSClient;
public final class SQSClient extends AWSClient<AmazonSQSClient> {
public SQSClient(Shell shell,Options opts) throws InvalidArgumentException {
super( new AmazonSQSClient(new AWSCommandCredentialsProviderChain( shell , opts ) ));
setRegion(shell,opts);
setEndpoint(shell,opts);
}
@Override
public void setEndpoint( String endpoint )
{
mClient.setEndpoint( endpoint );
}
@Override
public void setRegion(Region region) {
mClient.setRegion(region);
}
}