/usr/share/php/Aws/Rds/RdsClient.php is in php-aws-sdk 2.7.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | <?php
/**
* Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
namespace Aws\Rds;
use Aws\Common\Client\AbstractClient;
use Aws\Common\Client\ClientBuilder;
use Aws\Common\Enum\ClientOptions as Options;
use Guzzle\Common\Collection;
use Guzzle\Service\Resource\Model;
use Guzzle\Service\Resource\ResourceIteratorInterface;
/**
* Client to interact with Amazon Relational Database Service
*
* @method Model addSourceIdentifierToSubscription(array $args = array()) {@command Rds AddSourceIdentifierToSubscription}
* @method Model addTagsToResource(array $args = array()) {@command Rds AddTagsToResource}
* @method Model authorizeDBSecurityGroupIngress(array $args = array()) {@command Rds AuthorizeDBSecurityGroupIngress}
* @method Model copyDBParameterGroup(array $args = array()) {@command Rds CopyDBParameterGroup}
* @method Model copyDBSnapshot(array $args = array()) {@command Rds CopyDBSnapshot}
* @method Model copyOptionGroup(array $args = array()) {@command Rds CopyOptionGroup}
* @method Model createDBInstance(array $args = array()) {@command Rds CreateDBInstance}
* @method Model createDBInstanceReadReplica(array $args = array()) {@command Rds CreateDBInstanceReadReplica}
* @method Model createDBParameterGroup(array $args = array()) {@command Rds CreateDBParameterGroup}
* @method Model createDBSecurityGroup(array $args = array()) {@command Rds CreateDBSecurityGroup}
* @method Model createDBSnapshot(array $args = array()) {@command Rds CreateDBSnapshot}
* @method Model createDBSubnetGroup(array $args = array()) {@command Rds CreateDBSubnetGroup}
* @method Model createEventSubscription(array $args = array()) {@command Rds CreateEventSubscription}
* @method Model createOptionGroup(array $args = array()) {@command Rds CreateOptionGroup}
* @method Model deleteDBInstance(array $args = array()) {@command Rds DeleteDBInstance}
* @method Model deleteDBParameterGroup(array $args = array()) {@command Rds DeleteDBParameterGroup}
* @method Model deleteDBSecurityGroup(array $args = array()) {@command Rds DeleteDBSecurityGroup}
* @method Model deleteDBSnapshot(array $args = array()) {@command Rds DeleteDBSnapshot}
* @method Model deleteDBSubnetGroup(array $args = array()) {@command Rds DeleteDBSubnetGroup}
* @method Model deleteEventSubscription(array $args = array()) {@command Rds DeleteEventSubscription}
* @method Model deleteOptionGroup(array $args = array()) {@command Rds DeleteOptionGroup}
* @method Model describeDBEngineVersions(array $args = array()) {@command Rds DescribeDBEngineVersions}
* @method Model describeDBInstances(array $args = array()) {@command Rds DescribeDBInstances}
* @method Model describeDBLogFiles(array $args = array()) {@command Rds DescribeDBLogFiles}
* @method Model describeDBParameterGroups(array $args = array()) {@command Rds DescribeDBParameterGroups}
* @method Model describeDBParameters(array $args = array()) {@command Rds DescribeDBParameters}
* @method Model describeDBSecurityGroups(array $args = array()) {@command Rds DescribeDBSecurityGroups}
* @method Model describeDBSnapshots(array $args = array()) {@command Rds DescribeDBSnapshots}
* @method Model describeDBSubnetGroups(array $args = array()) {@command Rds DescribeDBSubnetGroups}
* @method Model describeEngineDefaultParameters(array $args = array()) {@command Rds DescribeEngineDefaultParameters}
* @method Model describeEventCategories(array $args = array()) {@command Rds DescribeEventCategories}
* @method Model describeEventSubscriptions(array $args = array()) {@command Rds DescribeEventSubscriptions}
* @method Model describeEvents(array $args = array()) {@command Rds DescribeEvents}
* @method Model describeOptionGroupOptions(array $args = array()) {@command Rds DescribeOptionGroupOptions}
* @method Model describeOptionGroups(array $args = array()) {@command Rds DescribeOptionGroups}
* @method Model describeOrderableDBInstanceOptions(array $args = array()) {@command Rds DescribeOrderableDBInstanceOptions}
* @method Model describeReservedDBInstances(array $args = array()) {@command Rds DescribeReservedDBInstances}
* @method Model describeReservedDBInstancesOfferings(array $args = array()) {@command Rds DescribeReservedDBInstancesOfferings}
* @method Model downloadDBLogFilePortion(array $args = array()) {@command Rds DownloadDBLogFilePortion}
* @method Model listTagsForResource(array $args = array()) {@command Rds ListTagsForResource}
* @method Model modifyDBInstance(array $args = array()) {@command Rds ModifyDBInstance}
* @method Model modifyDBParameterGroup(array $args = array()) {@command Rds ModifyDBParameterGroup}
* @method Model modifyDBSubnetGroup(array $args = array()) {@command Rds ModifyDBSubnetGroup}
* @method Model modifyEventSubscription(array $args = array()) {@command Rds ModifyEventSubscription}
* @method Model modifyOptionGroup(array $args = array()) {@command Rds ModifyOptionGroup}
* @method Model promoteReadReplica(array $args = array()) {@command Rds PromoteReadReplica}
* @method Model purchaseReservedDBInstancesOffering(array $args = array()) {@command Rds PurchaseReservedDBInstancesOffering}
* @method Model rebootDBInstance(array $args = array()) {@command Rds RebootDBInstance}
* @method Model removeSourceIdentifierFromSubscription(array $args = array()) {@command Rds RemoveSourceIdentifierFromSubscription}
* @method Model removeTagsFromResource(array $args = array()) {@command Rds RemoveTagsFromResource}
* @method Model resetDBParameterGroup(array $args = array()) {@command Rds ResetDBParameterGroup}
* @method Model restoreDBInstanceFromDBSnapshot(array $args = array()) {@command Rds RestoreDBInstanceFromDBSnapshot}
* @method Model restoreDBInstanceToPointInTime(array $args = array()) {@command Rds RestoreDBInstanceToPointInTime}
* @method Model revokeDBSecurityGroupIngress(array $args = array()) {@command Rds RevokeDBSecurityGroupIngress}
* @method waitUntilDBInstanceAvailable(array $input) The input array uses the parameters of the DescribeDBInstances operation and waiter specific settings
* @method waitUntilDBInstanceDeleted(array $input) The input array uses the parameters of the DescribeDBInstances operation and waiter specific settings
* @method ResourceIteratorInterface getDescribeDBEngineVersionsIterator(array $args = array()) The input array uses the parameters of the DescribeDBEngineVersions operation
* @method ResourceIteratorInterface getDescribeDBInstancesIterator(array $args = array()) The input array uses the parameters of the DescribeDBInstances operation
* @method ResourceIteratorInterface getDescribeDBLogFilesIterator(array $args = array()) The input array uses the parameters of the DescribeDBLogFiles operation
* @method ResourceIteratorInterface getDescribeDBParameterGroupsIterator(array $args = array()) The input array uses the parameters of the DescribeDBParameterGroups operation
* @method ResourceIteratorInterface getDescribeDBParametersIterator(array $args = array()) The input array uses the parameters of the DescribeDBParameters operation
* @method ResourceIteratorInterface getDescribeDBSecurityGroupsIterator(array $args = array()) The input array uses the parameters of the DescribeDBSecurityGroups operation
* @method ResourceIteratorInterface getDescribeDBSnapshotsIterator(array $args = array()) The input array uses the parameters of the DescribeDBSnapshots operation
* @method ResourceIteratorInterface getDescribeDBSubnetGroupsIterator(array $args = array()) The input array uses the parameters of the DescribeDBSubnetGroups operation
* @method ResourceIteratorInterface getDescribeEngineDefaultParametersIterator(array $args = array()) The input array uses the parameters of the DescribeEngineDefaultParameters operation
* @method ResourceIteratorInterface getDescribeEventSubscriptionsIterator(array $args = array()) The input array uses the parameters of the DescribeEventSubscriptions operation
* @method ResourceIteratorInterface getDescribeEventsIterator(array $args = array()) The input array uses the parameters of the DescribeEvents operation
* @method ResourceIteratorInterface getDescribeOptionGroupOptionsIterator(array $args = array()) The input array uses the parameters of the DescribeOptionGroupOptions operation
* @method ResourceIteratorInterface getDescribeOptionGroupsIterator(array $args = array()) The input array uses the parameters of the DescribeOptionGroups operation
* @method ResourceIteratorInterface getDescribeOrderableDBInstanceOptionsIterator(array $args = array()) The input array uses the parameters of the DescribeOrderableDBInstanceOptions operation
* @method ResourceIteratorInterface getDescribeReservedDBInstancesIterator(array $args = array()) The input array uses the parameters of the DescribeReservedDBInstances operation
* @method ResourceIteratorInterface getDescribeReservedDBInstancesOfferingsIterator(array $args = array()) The input array uses the parameters of the DescribeReservedDBInstancesOfferings operation
* @method ResourceIteratorInterface getListTagsForResourceIterator(array $args = array()) The input array uses the parameters of the ListTagsForResource operation
*
* @link http://docs.aws.amazon.com/aws-sdk-php/guide/latest/service-rds.html User guide
* @link http://docs.aws.amazon.com/aws-sdk-php/latest/class-Aws.Rds.RdsClient.html API docs
*/
class RdsClient extends AbstractClient
{
const LATEST_API_VERSION = '2014-09-01';
/**
* Factory method to create a new Amazon Relational Database Service client using an array of configuration options.
*
* @param array|Collection $config Client configuration data
*
* @return self
* @link http://docs.aws.amazon.com/aws-sdk-php/guide/latest/configuration.html#client-configuration-options
*/
public static function factory($config = array())
{
return ClientBuilder::factory(__NAMESPACE__)
->setConfig($config)
->setConfigDefaults(array(
Options::VERSION => self::LATEST_API_VERSION,
Options::SERVICE_DESCRIPTION => __DIR__ . '/Resources/rds-%s.php'
))
->build();
}
}
|