diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ec8b97150..9c5947ca59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ ## Next Release * `Aws\Ec2` - Added support for new VM Import APIs, `including ImportImage`. +* `Aws\Iam` - Added support for the `GetAccessKeyLastUsed` operation. +* `Aws\CloudSearchDomain` - Search responses now include the expressions requested. ## 2.8.1 - 2015-04-16 diff --git a/src/Aws/CloudSearchDomain/Resources/cloudsearchdomain-2013-01-01.php b/src/Aws/CloudSearchDomain/Resources/cloudsearchdomain-2013-01-01.php index 30dda5c6ea..846ddcbf51 100644 --- a/src/Aws/CloudSearchDomain/Resources/cloudsearchdomain-2013-01-01.php +++ b/src/Aws/CloudSearchDomain/Resources/cloudsearchdomain-2013-01-01.php @@ -191,6 +191,12 @@ ), ), ), + 'exprs' => array( + 'type' => 'object', + 'additionalProperties' => array( + 'type' => 'string', + ), + ), 'highlights' => array( 'type' => 'object', 'additionalProperties' => array( diff --git a/src/Aws/Iam/IamClient.php b/src/Aws/Iam/IamClient.php index 009d0711b1..af3ab648d6 100644 --- a/src/Aws/Iam/IamClient.php +++ b/src/Aws/Iam/IamClient.php @@ -69,6 +69,7 @@ * @method Model detachUserPolicy(array $args = array()) {@command Iam DetachUserPolicy} * @method Model enableMFADevice(array $args = array()) {@command Iam EnableMFADevice} * @method Model generateCredentialReport(array $args = array()) {@command Iam GenerateCredentialReport} + * @method Model getAccessKeyLastUsed(array $args = array()) {@command Iam GetAccessKeyLastUsed} * @method Model getAccountAuthorizationDetails(array $args = array()) {@command Iam GetAccountAuthorizationDetails} * @method Model getAccountPasswordPolicy(array $args = array()) {@command Iam GetAccountPasswordPolicy} * @method Model getAccountSummary(array $args = array()) {@command Iam GetAccountSummary} diff --git a/src/Aws/Iam/Resources/iam-2010-05-08.php b/src/Aws/Iam/Resources/iam-2010-05-08.php index 72309c4a54..b7ce5bbe1c 100644 --- a/src/Aws/Iam/Resources/iam-2010-05-08.php +++ b/src/Aws/Iam/Resources/iam-2010-05-08.php @@ -2172,6 +2172,38 @@ ), ), ), + 'GetAccessKeyLastUsed' => array( + 'httpMethod' => 'POST', + 'uri' => '/', + 'class' => 'Aws\\Common\\Command\\QueryCommand', + 'responseClass' => 'GetAccessKeyLastUsedResponse', + 'responseType' => 'model', + 'parameters' => array( + 'Action' => array( + 'static' => true, + 'location' => 'aws.query', + 'default' => 'GetAccessKeyLastUsed', + ), + 'Version' => array( + 'static' => true, + 'location' => 'aws.query', + 'default' => '2010-05-08', + ), + 'AccessKeyId' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'aws.query', + 'minLength' => 16, + 'maxLength' => 32, + ), + ), + 'errorResponses' => array( + array( + 'reason' => 'The request was rejected because it referenced an entity that does not exist. The error message describes the entity.', + 'class' => 'NoSuchEntityException', + ), + ), + ), 'GetAccountAuthorizationDetails' => array( 'httpMethod' => 'POST', 'uri' => '/', @@ -5360,6 +5392,31 @@ ), ), ), + 'GetAccessKeyLastUsedResponse' => array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'UserName' => array( + 'type' => 'string', + 'location' => 'xml', + ), + 'AccessKeyLastUsed' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'LastUsedDate' => array( + 'type' => 'string', + ), + 'ServiceName' => array( + 'type' => 'string', + ), + 'Region' => array( + 'type' => 'string', + ), + ), + ), + ), + ), 'GetAccountAuthorizationDetailsResponse' => array( 'type' => 'object', 'additionalProperties' => true, @@ -7175,13 +7232,6 @@ ), ), 'iterators' => array( - 'GetAccountAuthorizationDetails' => array( - 'input_token' => 'Marker', - 'output_token' => 'Marker', - 'more_results' => 'IsTruncated', - 'limit_key' => 'MaxItems', - 'result_key' => 'UserDetailList || GroupDetailList || RoleDetailList', - ), 'GetGroup' => array( 'input_token' => 'Marker', 'output_token' => 'Marker', @@ -7297,5 +7347,11 @@ 'limit_key' => 'MaxItems', 'result_key' => 'VirtualMFADevices', ), + 'GetAccountAuthorizationDetails' => array( + 'input_token' => 'Marker', + 'output_token' => 'Marker', + 'more_results' => 'IsTruncated', + 'limit_key' => 'MaxItems', + ), ), );