Skip to content

Commit

Permalink
Adding a Cognito alias to the service builder
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdowling committed Jul 10, 2014
1 parent 881f023 commit 2153f73
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Aws/Common/Resources/aws-config.php
Expand Up @@ -84,12 +84,16 @@
'class' => 'Aws\CognitoIdentity\CognitoIdentityClient'
),

'cognitoidentity' => array('extends' => 'cognito-identity'),

'cognito-sync' => array(
'alias' => 'CognitoSync',
'extends' => 'default_settings',
'class' => 'Aws\CognitoSync\CognitoSyncClient'
),

'cognitosync' => array('extends' => 'cognito-sync'),

'cloudwatchlogs' => array(
'alias' => 'CloudWatchLogs',
'extends' => 'default_settings',
Expand Down
Expand Up @@ -21,6 +21,14 @@ public function setUp()
$this->client = $this->getServiceBuilder()->get('cognito-identity');
}

public function testHasAliasName()
{
$this->assertSame(
get_class($this->getServiceBuilder()->get('cognito-identity')),
get_class($this->getServiceBuilder()->get('cognitoidentity'))
);
}

public function testListIdentityPools()
{
$result = $this->client->listIdentityPools(array(
Expand Down

0 comments on commit 2153f73

Please sign in to comment.