/api/vendor/aws/aws-sdk-php/src/Aws/Rds/RdsClient.php

https://gitlab.com/x33n/respond · PHP · 128 lines · 22 code · 4 blank · 102 comment · 0 complexity · bd413c0a5cff6a05c447e6677a4d073b MD5 · raw file

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