Skip to content

Commit

Permalink
Adding events to CognitoSyncClient
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdowling committed Apr 16, 2015
1 parent 1c8850b commit 0ad6f89
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/Aws/CognitoSync/CognitoSyncClient.php
@@ -1,5 +1,4 @@
<?php

namespace Aws\CognitoSync;

use Aws\Common\Client\AbstractClient;
Expand All @@ -18,11 +17,13 @@
* @method Model describeIdentityPoolUsage(array $args = array()) {@command CognitoSync DescribeIdentityPoolUsage}
* @method Model describeIdentityUsage(array $args = array()) {@command CognitoSync DescribeIdentityUsage}
* @method Model getBulkPublishDetails(array $args = array()) {@command CognitoSync GetBulkPublishDetails}
* @method Model getCognitoEvents(array $args = array()) {@command CognitoSync GetCognitoEvents}
* @method Model getIdentityPoolConfiguration(array $args = array()) {@command CognitoSync GetIdentityPoolConfiguration}
* @method Model listDatasets(array $args = array()) {@command CognitoSync ListDatasets}
* @method Model listIdentityPoolUsage(array $args = array()) {@command CognitoSync ListIdentityPoolUsage}
* @method Model listRecords(array $args = array()) {@command CognitoSync ListRecords}
* @method Model registerDevice(array $args = array()) {@command CognitoSync RegisterDevice}
* @method Model setCognitoEvents(array $args = array()) {@command CognitoSync SetCognitoEvents}
* @method Model setIdentityPoolConfiguration(array $args = array()) {@command CognitoSync SetIdentityPoolConfiguration}
* @method Model subscribeToDataset(array $args = array()) {@command CognitoSync SubscribeToDataset}
* @method Model unsubscribeFromDataset(array $args = array()) {@command CognitoSync UnsubscribeFromDataset}
Expand Down
120 changes: 116 additions & 4 deletions src/Aws/CognitoSync/Resources/cognitosync-2014-06-30.php
Expand Up @@ -115,6 +115,10 @@
'reason' => 'Thrown if the request is throttled.',
'class' => 'TooManyRequestsException',
),
array(
'reason' => 'Thrown if an update can\'t be applied because the resource was changed by another call and this would result in a conflict.',
'class' => 'ResourceConflictException',
),
),
),
'DescribeDataset' => array(
Expand Down Expand Up @@ -286,6 +290,44 @@
),
),
),
'GetCognitoEvents' => array(
'httpMethod' => 'GET',
'uri' => '/identitypools/{IdentityPoolId}/events',
'class' => 'Guzzle\\Service\\Command\\OperationCommand',
'responseClass' => 'GetCognitoEventsResponse',
'responseType' => 'model',
'parameters' => array(
'IdentityPoolId' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
'minLength' => 1,
'maxLength' => 50,
),
),
'errorResponses' => array(
array(
'reason' => 'Thrown when a request parameter does not comply with the associated constraints.',
'class' => 'InvalidParameterException',
),
array(
'reason' => 'Thrown if the resource doesn\'t exist.',
'class' => 'ResourceNotFoundException',
),
array(
'reason' => 'Thrown when a user is not authorized to access the requested resource.',
'class' => 'NotAuthorizedException',
),
array(
'reason' => 'Indicates an internal service error.',
'class' => 'InternalErrorException',
),
array(
'reason' => 'Thrown if the request is throttled.',
'class' => 'TooManyRequestsException',
),
),
),
'GetIdentityPoolConfiguration' => array(
'httpMethod' => 'GET',
'uri' => '/identitypools/{IdentityPoolId}/configuration',
Expand Down Expand Up @@ -538,6 +580,55 @@
),
),
),
'SetCognitoEvents' => array(
'httpMethod' => 'POST',
'uri' => '/identitypools/{IdentityPoolId}/events',
'class' => 'Guzzle\\Service\\Command\\OperationCommand',
'responseClass' => 'EmptyOutput',
'responseType' => 'model',
'parameters' => array(
'IdentityPoolId' => array(
'required' => true,
'type' => 'string',
'location' => 'uri',
'minLength' => 1,
'maxLength' => 50,
),
'Events' => array(
'required' => true,
'type' => 'object',
'location' => 'json',
'additionalProperties' => array(
'type' => 'string',
'data' => array(
'shape_name' => 'CognitoEventType',
),
),
),
),
'errorResponses' => array(
array(
'reason' => 'Thrown when a request parameter does not comply with the associated constraints.',
'class' => 'InvalidParameterException',
),
array(
'reason' => 'Thrown if the resource doesn\'t exist.',
'class' => 'ResourceNotFoundException',
),
array(
'reason' => 'Thrown when a user is not authorized to access the requested resource.',
'class' => 'NotAuthorizedException',
),
array(
'reason' => 'Indicates an internal service error.',
'class' => 'InternalErrorException',
),
array(
'reason' => 'Thrown if the request is throttled.',
'class' => 'TooManyRequestsException',
),
),
),
'SetIdentityPoolConfiguration' => array(
'httpMethod' => 'POST',
'uri' => '/identitypools/{IdentityPoolId}/configuration',
Expand Down Expand Up @@ -839,6 +930,14 @@
'reason' => 'Thrown if an update can\'t be applied because the resource was changed by another call and this would result in a conflict.',
'class' => 'ResourceConflictException',
),
array(
'reason' => 'The AWS Lambda function returned invalid output or an exception.',
'class' => 'InvalidLambdaFunctionOutputException',
),
array(
'reason' => 'AWS Lambda throttled your account, please contact AWS Support',
'class' => 'LambdaThrottledException',
),
array(
'reason' => 'Thrown if the request is throttled.',
'class' => 'TooManyRequestsException',
Expand Down Expand Up @@ -1004,6 +1103,19 @@
),
),
),
'GetCognitoEventsResponse' => array(
'type' => 'object',
'additionalProperties' => true,
'properties' => array(
'Events' => array(
'type' => 'object',
'location' => 'json',
'additionalProperties' => array(
'type' => 'string',
),
),
),
),
'GetIdentityPoolConfigurationResponse' => array(
'type' => 'object',
'additionalProperties' => true,
Expand Down Expand Up @@ -1210,6 +1322,10 @@
),
),
),
'EmptyOutput' => array(
'type' => 'object',
'additionalProperties' => true,
),
'SetIdentityPoolConfigurationResponse' => array(
'type' => 'object',
'additionalProperties' => true,
Expand Down Expand Up @@ -1251,10 +1367,6 @@
),
),
),
'EmptyOutput' => array(
'type' => 'object',
'additionalProperties' => true,
),
'UpdateRecordsResponse' => array(
'type' => 'object',
'additionalProperties' => true,
Expand Down

0 comments on commit 0ad6f89

Please sign in to comment.