public function amAWSAuthenticated($additionalAWSConfig = [])
    {
        if (method_exists($this->client, 'setAwsAuth')) {
            $config = array_merge($this->config['aws'], $additionalAWSConfig);

            if (!isset($config['key'])) {
                throw new ConfigurationException('AWS Key is not set');
            }
            if (!isset($config['secret'])) {
                throw new ConfigurationException('AWS Secret is not set');
            }
            if (!isset($config['service'])) {
                throw new ConfigurationException('AWS Service is not set');
            }
            if (!isset($config['region'])) {
                throw new ConfigurationException('AWS Region is not set');
            }

            $this->client->setAwsAuth($config);
        }
    }
public function amAWSAuthenticated($additionalAWSConfig = [])
    {
        if (method_exists($this->client, 'setAwsAuth')) {
            $config = array_merge($this->config['aws'], $additionalAWSConfig);

            if (!isset($config['key'])) {
                throw new ConfigurationException('AWS Key is not set');
            }
            if (!isset($config['secret'])) {
                throw new ConfigurationException('AWS Secret is not set');
            }
            if (!isset($config['service'])) {
                throw new ConfigurationException('AWS Service is not set');
            }
            if (!isset($config['region'])) {
                throw new ConfigurationException('AWS Region is not set');
            }

            $this->client->setAwsAuth($config);
        }
    }
public function amAWSAuthenticated ( $ additionalAWSConfig = [ ] ) { if ( method_exists ( $ this -> client , 'setAwsAuth' ) ) { $ config = array_merge ( $ this -> config [ 'aws' ] , $ additionalAWSConfig ) ; if ( ! isset ( $ config [ 'key' ] ) ) { throw new ConfigurationException ( 'AWS Key is not set' ) ; } if ( ! isset ( $ config [ 'secret' ] ) ) { throw new ConfigurationException ( 'AWS Secret is not set' ) ; } if ( ! isset ( $ config [ 'service' ] ) ) { throw new ConfigurationException ( 'AWS Service is not set' ) ; } if ( ! isset ( $ config [ 'region' ] ) ) { throw new ConfigurationException ( 'AWS Region is not set' ) ; } $ this -> client -> setAwsAuth ( $ config ) ; } }
Allows to send REST request using AWS Authorization

Only works with PhpBrowser
Example Config:
```yml
modules:
enabled:
- REST:
aws:
key: accessKey
secret: accessSecret
service: awsService
region: awsRegion
```
Code:
```php
<?php
$I->amAWSAuthenticated();
?>
```
@param array $additionalAWSConfig
@throws ModuleException
Allows to send REST request using AWS Authorization